Interface ColorProvider

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractColorProvider, BackgroundColorProvider, BackgroundPainterColorProvider, ColorBlender, ColorMultiplier, ColorProviderList, FixedColorProvider, UIManagerColorProvider

public interface ColorProvider extends Serializable
An object that provides colors. Instances of this class is typically used by Border implementations to obtain border colors which might change depending on the current Look and Feel or which component the border is painted on.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the default color when no component is available.
    getColor(Component component)
    Returns the color obtained from the given component.
  • Method Details

    • getColor

      Color getColor()
      Returns the default color when no component is available.
      Returns:
      the default color when no component is available
    • getColor

      Color getColor(Component component)
      Returns the color obtained from the given component.
      Parameters:
      component - the component
      Returns:
      the color obtained from the given component