cassis.gui.plot.triple
public class GalleryNavigationModel extends ListenerManager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COLS_UPDATE |
static java.lang.String |
CURRENT_GALLERY_UPDATE |
static java.lang.String |
FILTER_UPDATE |
static java.lang.String |
GALLERY_NUMBER_UPDATE |
static java.lang.String |
PLOT_NUMBER_UPDATE |
static java.lang.String |
ROWS_UPDATE |
static java.lang.String |
SELECTED_GALLERY_OPTION_UPDATE |
static java.lang.String |
TRIGGER_REFRESH |
| Constructor and Description |
|---|
GalleryNavigationModel()
Constructor with defaults parameters.
|
GalleryNavigationModel(GalleryOption[] optionsAllowed,
boolean sortingComboboxEnabled)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCols()
Return the number of columns in the gallery.
|
int |
getCurrentGallery()
Return the number of the current gallery.
|
java.util.List<java.lang.Integer> |
getFilter()
Return the list of numbers of the plots displayed (number starting by 0; one less than the view).
|
int |
getNumberOfGalleries()
Return the number of galleries.
|
GalleryOption[] |
getOptionsAllowed()
Return the list of allowed GalleryOption.
|
int |
getPlotNumber()
Return the number of plot without filter.
|
int |
getRows()
Return the number of rows in the gallery.
|
GalleryOption |
getSelectedOption()
Return the current selected GalleryOption.
|
boolean |
isSortingComboboxEnabled()
Return if sorting combobox is enabled.
|
void |
setCols(int cols)
Change the number of columns in the gallery.
|
void |
setCurrentGallery(int currentGallery)
Change the number of the current gallery.
|
void |
setFilter(java.util.List<java.lang.Integer> filter,
boolean updateListView,
boolean updateGallery)
Change the list of plots displayed.
|
void |
setPlotNumber(int number)
Change the number of plot without filter.
|
void |
setRows(int rows)
Change the number of rows in the gallery.
|
void |
setSelectedOption(GalleryOption selectedOption)
Change the selected GalleryOption.
|
void |
triggerRefresh()
Send a event for refreshing the view if there is one.
|
addModelListener, clone, fireDataChanged, removeAllListener, removeModelListenerpublic static final java.lang.String CURRENT_GALLERY_UPDATE
public static final java.lang.String GALLERY_NUMBER_UPDATE
public static final java.lang.String ROWS_UPDATE
public static final java.lang.String COLS_UPDATE
public static final java.lang.String PLOT_NUMBER_UPDATE
public static final java.lang.String FILTER_UPDATE
public static final java.lang.String SELECTED_GALLERY_OPTION_UPDATE
public static final java.lang.String TRIGGER_REFRESH
public GalleryNavigationModel()
public GalleryNavigationModel(GalleryOption[] optionsAllowed, boolean sortingComboboxEnabled)
optionsAllowed - The GalleryOptions allowed.sortingComboboxEnabled - If the sorting combobox is enabled.public int getCurrentGallery()
public void setCurrentGallery(int currentGallery)
currentGallery - The new number of the current gallery.public int getNumberOfGalleries()
public int getRows()
public void setRows(int rows)
rows - The new number of rows.public int getCols()
public void setCols(int cols)
cols - The new number of columns.public int getPlotNumber()
public void setPlotNumber(int number)
number - The new number of plot.public GalleryOption[] getOptionsAllowed()
public java.util.List<java.lang.Integer> getFilter()
public void setFilter(java.util.List<java.lang.Integer> filter,
boolean updateListView,
boolean updateGallery)
filter - The numbers of displayed plots (numbers starting by 0; one less than the view).updateListView - If it is needed to update the list of plots in the view.updateGallery - If it is needed to update the gallery.public boolean isSortingComboboxEnabled()
public GalleryOption getSelectedOption()
public void setSelectedOption(GalleryOption selectedOption)
selectedOption - The new GalleryOption selected.public void triggerRefresh()