public abstract class AbstractColorProvider extends java.lang.Object implements ColorProvider
Constructor and Description |
---|
AbstractColorProvider() |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor()
Returns the default color when no component is available.
|
java.awt.Color |
getColor(java.awt.Component component)
Returns the color obtained from the given component.
|
public java.awt.Color getColor()
ColorProvider
getColor
in interface ColorProvider
public java.awt.Color getColor(java.awt.Component component)
ColorProvider
getColor
in interface ColorProvider
component
- the component