Package net.infonode.gui.colorprovider
Interface ColorProvider
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AbstractColorProvider,BackgroundColorProvider,BackgroundPainterColorProvider,ColorBlender,ColorMultiplier,ColorProviderList,FixedColorProvider,UIManagerColorProvider
public interface ColorProvider extends java.io.SerializableAn object that provides colors. Instances of this class is typically used byBorderimplementations to obtain border colors which might change depending on the current Look and Feel or which component the border is painted on.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.ColorgetColor()Returns the default color when no component is available.java.awt.ColorgetColor(java.awt.Component component)Returns the color obtained from the given component.
-
-
-
Method Detail
-
getColor
java.awt.Color getColor()
Returns the default color when no component is available.- Returns:
- the default color when no component is available
-
getColor
java.awt.Color getColor(java.awt.Component component)
Returns the color obtained from the given component.- Parameters:
component- the component- Returns:
- the color obtained from the given component
-
-