public class DefaultGradientModel extends AbstractBoundedTableModel
AbstractBoundedTableModel
used by
default by GradientBar
. This implementation has bounds 0 - 100 and
is mutable.PROPERTY_LOWER_BOUND, PROPERTY_UPPER_BOUND
Constructor and Description |
---|
DefaultGradientModel()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.awt.Color color,
int position)
Adds a color point.
|
void |
clear()
Removes all color points.
|
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) |
void |
remove(int index)
Removes a color point at specified index.
|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public int getLowerBound()
BoundedTableModel
public int getUpperBound()
BoundedTableModel
public int getRowCount()
public int getColumnCount()
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)
public void add(java.awt.Color color, int position)
color
- position
- public void remove(int index)
index
- public void clear()