net.infonode.gui.componentpainter

Class AbstractComponentPainter

public abstract class AbstractComponentPainter extends Object implements ComponentPainter, Serializable

An abstract base class for ComponentPainter's. Default implementations for both paint methods are provided, but becuase they call each other a sub class must override one or both methods.

Since: IDW 1.2.0

Version: $Revision: 1.7 $

Author: $Author: jesper $

Constructor Summary
protected AbstractComponentPainter()
Method Summary
booleanisOpaque(Component component)
voidpaint(Component component, Graphics g, int x, int y, int width, int height)
voidpaint(Component component, Graphics g, int x, int y, int width, int height, Direction direction, boolean horizontalFlip, boolean verticalFlip)

Constructor Detail

AbstractComponentPainter

protected AbstractComponentPainter()

Method Detail

isOpaque

public boolean isOpaque(Component component)

paint

public void paint(Component component, Graphics g, int x, int y, int width, int height)

paint

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