com.michaelbaranov.microba.gradient
Class DefaultGradientModel
AbstractBoundedTableModel
com.michaelbaranov.microba.gradient.DefaultGradientModel
public class DefaultGradientModel
extends AbstractBoundedTableModel
A very basic implementation of AbstractBoundedTableModel
used by
default by GradientBar
. This implementation has bounds 0 - 100 and
is mutable.
DefaultGradientModel
public DefaultGradientModel()
Constructor.
add
public void add(Color color,
int position)
Adds a color point.
clear
public void clear()
Removes all color points.
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)
remove
public void remove(int index)
Removes a color point at specified index.