|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
com.michaelbaranov.microba.common.AbstractBoundedTableModel
com.michaelbaranov.microba.gradient.DefaultGradientModel
public class DefaultGradientModel
A very basic implementation of AbstractBoundedTableModel
used by
default by GradientBar
. This implementation has bounds 0 - 100 and
is mutable.
Field Summary |
---|
Fields inherited from interface com.michaelbaranov.microba.common.BoundedTableModel |
---|
PROPERTY_LOWER_BOUND, PROPERTY_UPPER_BOUND |
Constructor Summary | |
---|---|
DefaultGradientModel()
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.michaelbaranov.microba.common.AbstractBoundedTableModel |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableModel |
---|
addTableModelListener, getColumnName, isCellEditable, removeTableModelListener, setValueAt |
Constructor Detail |
---|
public DefaultGradientModel()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |