Documentation of 'de.erichseifert.gral.plots.colors.IndexedColors' Java class
IndexedColors
de.erichseifert.gral.plots.colors

Class IndexedColors

    • Constructor Summary

      Constructors 
      Constructor and Description
      IndexedColors(java.awt.Color color1, java.awt.Color... colors)
      Creates a new instance with at least one color.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.Paint get(int index)
      Returns the Paint object associated to the specified index value.
      java.util.List<java.awt.Color> getColors()
      Returns the colors that are used for mapping.
      void setMode(ColorMapper.Mode mode)
      Sets how values outside of the mapping range will be handled.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndexedColors

        public IndexedColors(java.awt.Color color1,
                             java.awt.Color... colors)
        Creates a new instance with at least one color.
        Parameters:
        color1 - First color.
        colors - Additional colors.
    • Method Detail

      • get

        public java.awt.Paint get(int index)
        Returns the Paint object associated to the specified index value.
        Specified by:
        get in class IndexedColorMapper
        Parameters:
        index - Numeric index.
        Returns:
        Paint object.
      • getColors

        public java.util.List<java.awt.Color> getColors()
        Returns the colors that are used for mapping.
        Returns:
        A list of colors in the order they are used as the color palette.
      • setMode

        public void setMode(ColorMapper.Mode mode)
        Description copied from class: AbstractColorMapper
        Sets how values outside of the mapping range will be handled.
        Parameters:
        mode - Handling of values outside of the mapping range.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.