Package io.deephaven.gui.color
Class ColorPaletteArray
java.lang.Object
io.deephaven.gui.color.ColorPaletteArray
- All Implemented Interfaces:
ColorPalette
,Serializable
ColorPalette
specified by an array of Color
s.- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionColorPaletteArray
(Color[] colors) Creates aColorPalette
with the specifiedcolors
.ColorPaletteArray
(String palette) Creates aColorPalette
from a standardColorPaletteArray.Palette
. -
Method Summary
-
Constructor Details
-
ColorPaletteArray
Creates aColorPalette
with the specifiedcolors
.- Parameters:
colors
- colors in the palette
-
ColorPaletteArray
- Parameters:
palette
- color palette
-
ColorPaletteArray
Creates aColorPalette
from a standardColorPaletteArray.Palette
.- Parameters:
palette
- color palette
-
-
Method Details
-
nextColor
Description copied from interface:ColorPalette
Gets the nextColor
in the palette.- Specified by:
nextColor
in interfaceColorPalette
- Returns:
- next
Color
in the palette.
-
get
Description copied from interface:ColorPalette
Gets theColor
at theindex
in the palette.- Specified by:
get
in interfaceColorPalette
- Parameters:
index
- index- Returns:
index
thColor
in the palette.
-