public class FixedTransformComponentPainter extends AbstractComponentPainterWrapper
Constructor and Description |
---|
FixedTransformComponentPainter(ComponentPainter painter) |
FixedTransformComponentPainter(ComponentPainter painter,
Direction direction) |
FixedTransformComponentPainter(ComponentPainter painter,
Direction direction,
boolean horizontalFlip,
boolean verticalFlip) |
Modifier and Type | Method and Description |
---|---|
void |
paint(java.awt.Component component,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints an area of a component.
|
void |
paint(java.awt.Component component,
java.awt.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.
|
getColor, getPainter, isOpaque
public FixedTransformComponentPainter(ComponentPainter painter)
public FixedTransformComponentPainter(ComponentPainter painter, Direction direction)
public FixedTransformComponentPainter(ComponentPainter painter, Direction direction, boolean horizontalFlip, boolean verticalFlip)
public void paint(java.awt.Component component, java.awt.Graphics g, int x, int y, int width, int height)
ComponentPainter
paint
in interface ComponentPainter
paint
in class AbstractComponentPainter
component
- the component to paint ong
- the graphics to paint onx
- the x-coordinatey
- the y-coordinatewidth
- the widthheight
- the heightpublic void paint(java.awt.Component component, java.awt.Graphics g, int x, int y, int width, int height, Direction direction, boolean horizontalFlip, boolean verticalFlip)
ComponentPainter
paint
in interface ComponentPainter
paint
in class AbstractComponentPainterWrapper
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 vertically