Class DefaultColorPaletteModel
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.color.DefaultColorPaletteModel
- All Implemented Interfaces:
ColorPaletteModel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Addslistener
as a listener to changes in the model.void
Replaces all colors in the model, and my alter the structure (column/row count).protected void
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
void
Removeslistener
as a listener to changes in the model.void
Change the color at a location
-
Field Details
-
colors
-
columnCount
protected int columnCount -
changeEvent
-
listenerList
-
-
Constructor Details
-
DefaultColorPaletteModel
public DefaultColorPaletteModel()
-
-
Method Details
-
initDefaultColors
public void initDefaultColors() -
getColumnCount
public int getColumnCount()Description copied from interface:ColorPaletteModel
How many columns of colors in the palette- Specified by:
getColumnCount
in interfaceColorPaletteModel
-
getRowCount
public int getRowCount()Description copied from interface:ColorPaletteModel
How many rows of colors in the palette?- Specified by:
getRowCount
in interfaceColorPaletteModel
-
getColor
Description copied from interface:ColorPaletteModel
Returns the color at this location- Specified by:
getColor
in interfaceColorPaletteModel
-
setColor
Description copied from interface:ColorPaletteModel
Change the color at a location- Specified by:
setColor
in interfaceColorPaletteModel
-
bulkLoad
Description copied from interface:ColorPaletteModel
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.- Specified by:
bulkLoad
in interfaceColorPaletteModel
-
addChangeListener
Description copied from interface:ColorPaletteModel
Addslistener
as a listener to changes in the model.- Specified by:
addChangeListener
in interfaceColorPaletteModel
- Parameters:
l
- theChangeListener
to be added
-
removeChangeListener
Description copied from interface:ColorPaletteModel
Removeslistener
as a listener to changes in the model.- Specified by:
removeChangeListener
in interfaceColorPaletteModel
- Parameters:
l
- theChangeListener
to be removed
-
fireStateChanged
protected void fireStateChanged()
-