Class AbstractColorProvider

java.lang.Object
net.infonode.gui.colorprovider.AbstractColorProvider
All Implemented Interfaces:
Serializable, ColorProvider
Direct Known Subclasses:
BackgroundColorProvider, BackgroundPainterColorProvider, ColorBlender, ColorMultiplier, ColorProviderList, FixedColorProvider, UIManagerColorProvider

public abstract class AbstractColorProvider extends Object implements ColorProvider
Base class for color providers. It returns the color black.
See Also:
  • Constructor Details

    • AbstractColorProvider

      public AbstractColorProvider()
  • Method Details

    • getColor

      public Color getColor()
      Description copied from interface: ColorProvider
      Returns the default color when no component is available.
      Specified by:
      getColor in interface ColorProvider
      Returns:
      the default color when no component is available
    • getColor

      public Color getColor(Component component)
      Description copied from interface: ColorProvider
      Returns the color obtained from the given component.
      Specified by:
      getColor in interface ColorProvider
      Parameters:
      component - the component
      Returns:
      the color obtained from the given component