Package io.deephaven.gui.color
Class ColorPaletteAlgo
java.lang.Object
io.deephaven.gui.color.ColorPaletteAlgo
- All Implemented Interfaces:
ColorPalette
,Serializable
Algorithmically generated
ColorPalette
.- See Also:
-
Constructor Summary
ConstructorDescriptionColorPaletteAlgo
(ColorPaletteAlgorithm colorAlgorithm) Creates aColorPalette
from theColorPaletteAlgorithm
. -
Method Summary
-
Constructor Details
-
ColorPaletteAlgo
Creates aColorPalette
from theColorPaletteAlgorithm
.- Parameters:
colorAlgorithm
- algorithm for generating a 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.
-