|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.gui.componentpainter.AbstractComponentPainter
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.
Method Summary | |
boolean |
isOpaque(Component component)
Returns true if this painter paints the entire area with an opaque color. |
void |
paint(Component component,
Graphics g,
int x,
int y,
int width,
int height)
Paints an area of a component. |
void |
paint(Component component,
Graphics g,
int x,
int y,
int width,
int height,
Direction direction,
boolean horizontalFlip,
boolean verticalFlip)
Paints an area in a specific direction and optinally flipped horizontally and/or vertically. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.infonode.gui.componentpainter.ComponentPainter |
getColor |
Method Detail |
public void paint(Component component, Graphics g, int x, int y, int width, int height)
ComponentPainter
paint
in interface ComponentPainter
component
- the component to paint ong
- the graphics to paint onx
- the x-coordinatey
- the y-coordinatewidth
- the widthheight
- the heightpublic void paint(Component component, Graphics g, int x, int y, int width, int height, Direction direction, boolean horizontalFlip, boolean verticalFlip)
ComponentPainter
paint
in interface ComponentPainter
component
- the component to paint ong
- the graphics to paint onx
- the x-coordinatey
- the y-coordinatewidth
- the widthheight
- the heightdirection
- the direction, Direction.RIGHT is the normal directionhorizontalFlip
- flip the painted graphics horizontallyverticalFlip
- flip the painted graphics verticallypublic boolean isOpaque(Component component)
ComponentPainter
isOpaque
in interface ComponentPainter
component
- the component to paint on
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |