net.infonode.gui.componentpainter

Class SolidColorComponentPainter

public class SolidColorComponentPainter extends AbstractComponentPainter

Paints an area with a solid color.

Version: $Revision: 1.9 $

Author: $Author: jesper $

Field Summary
static SolidColorComponentPainterBACKGROUND_COLOR_PAINTER
Paints a component using the background color set in the component.
Constructor Summary
SolidColorComponentPainter(ColorProvider colorProvider)
Constructor.
Method Summary
ColorgetColor(Component component)
booleanisOpaque(Component component)
voidpaint(Component component, Graphics g, int x, int y, int width, int height, Direction direction, boolean horizontalFlip, boolean verticalFlip)

Field Detail

BACKGROUND_COLOR_PAINTER

public static final SolidColorComponentPainter BACKGROUND_COLOR_PAINTER
Paints a component using the background color set in the component.

Constructor Detail

SolidColorComponentPainter

public SolidColorComponentPainter(ColorProvider colorProvider)
Constructor.

Parameters: colorProvider the color provider

Method Detail

getColor

public Color getColor(Component component)

isOpaque

public boolean isOpaque(Component component)

paint

public void paint(Component component, Graphics g, int x, int y, int width, int height, Direction direction, boolean horizontalFlip, boolean verticalFlip)