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 Color
s.- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ColorPaletteArray.Palette
Pre-made color palettes. -
Constructor Summary
Constructors Constructor Description ColorPaletteArray(Color[] colors)
Creates aColorPalette
with the specifiedcolors
.ColorPaletteArray(ColorPaletteArray.Palette palette)
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.
-