Package com.illumon.iris.gui.color
Class ColorPaletteArray
java.lang.Object
com.illumon.iris.gui.color.ColorPaletteArray
- All Implemented Interfaces:
ColorPalette,Serializable
ColorPalette specified by an array of Colors.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionColorPaletteArray(Color[] colors) Creates aColorPalettewith the specifiedcolors.ColorPaletteArray(String palette) Creates aColorPalettefrom a standardColorPaletteArray.Palette. -
Method Summary
-
Constructor Details
-
ColorPaletteArray
Creates aColorPalettewith the specifiedcolors.- Parameters:
colors- colors in the palette
-
ColorPaletteArray
- Parameters:
palette- color palette
-
ColorPaletteArray
Creates aColorPalettefrom a standardColorPaletteArray.Palette.- Parameters:
palette- 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.
-