Class TranslucentColorProvider

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, ShallowCopySupporter<ColorProvider>, SizeOfHandler, ColorProvider, Serializable

    public class TranslucentColorProvider
    extends AbstractColorProvider
    Allows the user to add translucency to the colors generated by the base color provider.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -alpha <int> (property: alpha)
        The alpha value to use (0=translucent, 255=opaque).
        default: 255
        minimum: 0
        maximum: 255
     
    -provider <adams.gui.visualization.core.ColorProvider> (property: provider)
        The base color provider to use.
        default: adams.gui.visualization.core.DefaultColorProvider
     
    Version:
    $Revision: 4584 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Alpha

        protected int m_Alpha
        the alpha parameter.
      • m_Provider

        protected ColorProvider m_Provider
        the base color provider.
    • Constructor Detail

      • TranslucentColorProvider

        public TranslucentColorProvider()
    • Method Detail

      • setAlpha

        public void setAlpha​(int value)
        Sets the colors to use.
        Parameters:
        value - the colors to use
      • getAlpha

        public int getAlpha()
        Returns the colors in use.
        Returns:
        the colors in use
      • 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.
      • setProvider

        public void setProvider​(ColorProvider value)
        Sets the base color provider to use.
        Parameters:
        value - the colors to use
      • getProvider

        public ColorProvider getProvider()
        Returns the base color provider.
        Returns:
        the provider to use
      • providerTipText

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