Package com.illumon.iris.gui.color
Class ColorPaletteAlgo
java.lang.Object
com.illumon.iris.gui.color.ColorPaletteAlgo
- All Implemented Interfaces:
ColorPalette,Serializable
Algorithmically generated
ColorPalette.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionColorPaletteAlgo(ColorPaletteAlgorithm colorAlgorithm) Creates aColorPalettefrom theColorPaletteAlgorithm. -
Method Summary
-
Constructor Details
-
ColorPaletteAlgo
Creates aColorPalettefrom theColorPaletteAlgorithm.- Parameters:
colorAlgorithm- algorithm for generating a color palette.
-
-
Method Details
-
nextColor
Description copied from interface:ColorPaletteGets the nextColorin the palette.- Specified by:
nextColorin interfaceColorPalette- Returns:
- next
Colorin the palette.
-
get
Description copied from interface:ColorPaletteGets theColorat theindexin the palette.- Specified by:
getin interfaceColorPalette- Parameters:
index- index- Returns:
indexthColorin the palette.
-