com.michaelbaranov.microba.gradienteditor
Class DefaultGradientEditorModel
AbstractBoundedTableModelWithSelection
com.michaelbaranov.microba.gradienteditor.DefaultGradientEditorModel
- MarkerMutationModel
public class DefaultGradientEditorModel
extends AbstractBoundedTableModelWithSelection
implements MarkerMutationModel
A basic implementation of
AbstractBoundedTableModelWithSelection
and
MarkerMutationModel
. Used by default by
GradientEditor
as a
color model, color selection model and color mutation model.
This implementation is mutable.
COLOR_COLUMN
public static final int COLOR_COLUMN
POSITION_COLUMN
public static final int POSITION_COLUMN
DefaultGradientEditorModel
public DefaultGradientEditorModel()
addMarkAtPosition
public int addMarkAtPosition(int pos)
getColumnClass
public Class getColumnClass(int columnIndex)
getColumnCount
public int getColumnCount()
getLowerBound
public int getLowerBound()
getRowCount
public int getRowCount()
getUpperBound
public int getUpperBound()
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
removeMarkerAtIndex
public void removeMarkerAtIndex(int index)
setValueAt
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)