Class ColorPalette

  • Direct Known Subclasses:
    BrewerPalette

    public class ColorPalette
    extends Object
    A generic palette containing colours.
    Author:
    Cory Horner, Refractions Research Inc.
    • Constructor Detail

      • ColorPalette

        public ColorPalette()
    • Method Detail

      • getCount

        public int getCount()
        Returns the number of colours contained in the palette.
        Returns:
        int
      • getName

        public String getName()
        Getter for property name.
        Returns:
        Value of property name.
      • setName

        public void setName​(String name)
        Setter for property name.
        Parameters:
        name - New value of property name.
      • getDescription

        public String getDescription()
        Getter for property description.
        Returns:
        Value of property description.
      • setDescription

        public void setDescription​(String description)
        Setter for property description.
        Parameters:
        description - New value of property description.
      • setColors

        public void setColors​(Color[] colors)
      • getColors

        public Color[] getColors​(int length)
      • getColors

        public Color[] getColors()
        Returns all colours
        Returns:
        complete colour array