public interface ColorPaletteModel
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener listener)
Adds
listener as a listener to changes in the model. |
void |
bulkLoad(java.util.List<java.awt.Color> colors,
int columns)
Replaces all colors in the model, and my alter the structure (column/row count).
|
java.awt.Color |
getColor(int row,
int column)
Returns the color at this location
|
int |
getColumnCount()
How many columns of colors in the palette
|
int |
getRowCount()
How many rows of colors in the palette?
|
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
Removes
listener as a listener to changes in the model. |
void |
setColor(int row,
int column,
java.awt.Color color)
Change the color at a location
|
int getColumnCount()
int getRowCount()
java.awt.Color getColor(int row, int column)
void setColor(int row, int column, java.awt.Color color)
void bulkLoad(java.util.List<java.awt.Color> colors, int columns)
void addChangeListener(javax.swing.event.ChangeListener listener)
listener
as a listener to changes in the model.listener
- the ChangeListener
to be addedvoid removeChangeListener(javax.swing.event.ChangeListener listener)
listener
as a listener to changes in the model.listener
- the ChangeListener
to be removed