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_SELECTION
PROPERTY_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, setValueIsAdjusting
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getTableModelListeners, removeTableModelListener
public static final int POSITION_COLUMN
public static final int COLOR_COLUMN
public void removeMarkerAtIndex(int index)
MarkerMutationModel
JMarkerBar
.removeMarkerAtIndex
in interface MarkerMutationModel
index
- index of the mark to be removed.public int addMarkAtPosition(int pos)
MarkerMutationModel
JMarkerBar
.addMarkAtPosition
in interface MarkerMutationModel
pos
- position at which to insert the mark.public int getLowerBound()
BoundedTableModel
getLowerBound
in interface BoundedTableModel
public int getUpperBound()
BoundedTableModel
getUpperBound
in interface BoundedTableModel
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.Class getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel