public class DefaultGradientEditorModel extends AbstractBoundedTableModelWithSelection implements MarkerMutationModel
AbstractBoundedTableModelWithSelection and
MarkerMutationModel. Used by default by GradientEditor as a
color model, color selection model and color mutation model.
This implementation is mutable.
| Modifier and Type | Field and Description |
|---|---|
static int |
COLOR_COLUMN |
static int |
POSITION_COLUMN |
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTIONPROPERTY_LOWER_BOUND, PROPERTY_UPPER_BOUND| Constructor and Description |
|---|
DefaultGradientEditorModel() |
| Modifier and Type | Method and Description |
|---|---|
int |
addMarkAtPosition(int pos)
Called when the user requests a mark to be inserted into
JMarkerBar. |
java.lang.Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
int |
getLowerBound()
Returns some lower bound, further describing the data.
|
int |
getRowCount() |
int |
getUpperBound()
Returns some upper bound, further describing the data.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeMarkerAtIndex(int index)
Called when the user requests a mark to be removed from
JMarkerBar. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex) |
addListSelectionListener, addSelectionInterval, clearSelection, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionInterval, setSelectionMode, setValueIsAdjustingaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListeneraddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getTableModelListeners, removeTableModelListenerpublic static final int POSITION_COLUMN
public static final int COLOR_COLUMN
public void removeMarkerAtIndex(int index)
MarkerMutationModelJMarkerBar.removeMarkerAtIndex in interface MarkerMutationModelindex - index of the mark to be removed.public int addMarkAtPosition(int pos)
MarkerMutationModelJMarkerBar.addMarkAtPosition in interface MarkerMutationModelpos - position at which to insert the mark.public int getLowerBound()
BoundedTableModelgetLowerBound in interface BoundedTableModelpublic int getUpperBound()
BoundedTableModelgetUpperBound in interface BoundedTableModelpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic java.lang.Class getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelpublic java.lang.Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface javax.swing.table.TableModelpublic void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModel