Package com.illumon.iris.gui.color
Class ColorPaletteArray
java.lang.Object
com.illumon.iris.gui.color.ColorPaletteArray
- All Implemented Interfaces:
ColorPalette,Serializable
public class ColorPaletteArray extends Object implements ColorPalette, Serializable
ColorPalette specified by an array of Colors.- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classColorPaletteArray.PalettePre-made color palettes. -
Constructor Summary
Constructors Constructor Description ColorPaletteArray(Color[] colors)Creates aColorPalettewith the specifiedcolors.ColorPaletteArray(ColorPaletteArray.Palette palette)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.
-