org.apache.batik.gvt
public class CompositeShapePainter extends Object implements ShapePainter
| Field Summary | |
|---|---|
| protected int | count
The number of shape painter. |
| protected ShapePainter[] | painters
The enclosed ShapePainters of this composite shape painter. |
| protected Shape | shape
The shape associated with this painter |
| Constructor Summary | |
|---|---|
| CompositeShapePainter(Shape shape)
Constructs a new empty CompositeShapePainter. | |
| Method Summary | |
|---|---|
| void | addShapePainter(ShapePainter shapePainter)
Adds the specified shape painter to the shape painter..
|
| Shape | getPaintedArea()
Returns the area painted by this shape painter. |
| Rectangle2D | getPaintedBounds2D()
Returns the bounds of the area painted by this shape painter |
| Shape | getSensitiveArea()
Returns the area covered by this shape painter (even if nothing
is painted there). |
| Rectangle2D | getSensitiveBounds2D()
Returns the bounds of the area painted by this shape painter |
| Shape | getShape()
Gets the Shape this shape painter is associated with.
|
| ShapePainter | getShapePainter(int index)
Returns the shape painter at the specified index.
|
| int | getShapePainterCount()
Returns the number of shape painter of this composite shape painter. |
| boolean | inPaintedArea(Point2D pt)
Returns true if pt is in the area painted by this shape painter |
| boolean | inSensitiveArea(Point2D pt)
Returns true if pt is in the area painted by this shape painter |
| void | paint(Graphics2D g2d)
Paints the specified shape using the specified Graphics2D.
|
| void | setShape(Shape shape)
Sets the Shape this shape painter is associated with.
|
Parameters: shapePainter the shape painter to add
Returns: shape associated with this painter
Parameters: index the index of the shape painter to return
Parameters: g2d the Graphics2D to use
Parameters: shape new shape this painter should be associated with. Should not be null.