org.apache.batik.gvt
public interface ShapePainter
Method Summary | |
---|---|
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 covered by this shape painter
(even if nothing is painted there). |
Shape | getShape()
Gets the shape this shape painter is associated with.
|
boolean | inPaintedArea(Point2D pt)
Returns true if pt is in the painted area. |
boolean | inSensitiveArea(Point2D pt)
Returns true if pt is in the sensitive area. |
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.
|
Returns: shape associated with this painter
Parameters: g2d the Graphics2D to use
Parameters: shape new shape this painter should be associated with. Should not be null.