net.infonode.gui.colorprovider

Interface ColorProvider

public interface ColorProvider extends Serializable

An object that provides colors. Instances of this class is typically used by {@link javax.swing.border.Border} implementations to obtain border colors which might change depending on the current Look and Feel or which component the border is painted on.

Version: $Revision: 1.6 $

Author: $Author: jesper $

Method Summary
ColorgetColor()
Returns the default color when no component is available.
ColorgetColor(Component component)
Returns the color obtained from the given component.

Method Detail

getColor

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

Returns: the default color when no component is available

getColor

public Color getColor(Component component)
Returns the color obtained from the given component.

Parameters: component the component

Returns: the color obtained from the given component