Class BiColorGenerator

    • Field Detail

      • m_NumColors

        protected int m_NumColors
        the number of gradient colors.
      • m_FirstColor

        protected Color m_FirstColor
        the first color.
      • m_SecondColor

        protected Color m_SecondColor
        the second color.
      • m_Alpha

        protected int m_Alpha
        the alpha value to use (ignored if 255).
    • Constructor Detail

      • BiColorGenerator

        public BiColorGenerator()
    • Method Detail

      • getDefaultNumColors

        protected int getDefaultNumColors()
        Returns the default for the number of colors.
        Returns:
        the default
      • getDefaultFirstColor

        protected Color getDefaultFirstColor()
        Returns the default for the first color.
        Returns:
        the default
      • setFirstColor

        public void setFirstColor​(Color value)
        Sets the first color of the gradient.
        Parameters:
        value - the first color
      • getFirstColor

        public Color getFirstColor()
        Returns the first color of the gradient.
        Returns:
        the first color
      • firstColorTipText

        public String firstColorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultSecondColor

        protected Color getDefaultSecondColor()
        Returns the default for the second color.
        Returns:
        the default
      • setSecondColor

        public void setSecondColor​(Color value)
        Sets the second color of the gradient.
        Parameters:
        value - the second color
      • getSecondColor

        public Color getSecondColor()
        Returns the second color of the gradient.
        Returns:
        the second color
      • secondColorTipText

        public String secondColorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultAlpha

        protected int getDefaultAlpha()
        Returns the default for the alpha value.
        Returns:
        the default
      • setAlpha

        public void setAlpha​(int value)
        Sets the alpha value to use (0=transparent, 255=opaque); ignored if 255.
        Parameters:
        value - the alpha value
      • getAlpha

        public int getAlpha()
        Returns the alpha value to use (0=transparent, 255=opaque); ignored if 255.
        Returns:
        the alpha value
      • alphaTipText

        public String alphaTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.