Interface ColorPaletteModel
- All Known Implementing Classes:
DefaultColorPaletteModel
public interface ColorPaletteModel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(ChangeListener listener) Addslistener
as a listener to changes in the model.void
Replaces all colors in the model, and my alter the structure (column/row count).getColor
(int row, int column) Returns the color at this locationint
How many columns of colors in the paletteint
How many rows of colors in the palette?void
removeChangeListener
(ChangeListener listener) Removeslistener
as a listener to changes in the model.void
Change the color at a location
-
Method Details
-
getColumnCount
int getColumnCount()How many columns of colors in the palette -
getRowCount
int getRowCount()How many rows of colors in the palette? -
getColor
Returns the color at this location -
setColor
Change the color at a location -
bulkLoad
Replaces all colors in the model, and my alter the structure (column/row count). The size of the color list must be divisible by the new column count. -
addChangeListener
Addslistener
as a listener to changes in the model.- Parameters:
listener
- theChangeListener
to be added
-
removeChangeListener
Removeslistener
as a listener to changes in the model.- Parameters:
listener
- theChangeListener
to be removed
-