|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ShapePainter
Renders the shape of a ShapeNode.
Method Summary | |
---|---|
java.awt.Shape |
getPaintedArea()
Returns the area painted by this shape painter. |
java.awt.geom.Rectangle2D |
getPaintedBounds2D()
Returns the bounds of the area painted by this shape painter |
java.awt.Shape |
getSensitiveArea()
Returns the area covered by this shape painter (even if nothing is painted there). |
java.awt.geom.Rectangle2D |
getSensitiveBounds2D()
Returns the bounds of the area covered by this shape painter (even if nothing is painted there). |
java.awt.Shape |
getShape()
Gets the shape this shape painter is associated with. |
boolean |
inPaintedArea(java.awt.geom.Point2D pt)
Returns true if pt is in the painted area. |
boolean |
inSensitiveArea(java.awt.geom.Point2D pt)
Returns true if pt is in the sensitive area. |
void |
paint(java.awt.Graphics2D g2d)
Paints the specified shape using the specified Graphics2D. |
void |
setShape(java.awt.Shape shape)
Sets the Shape this shape painter is associated with. |
Method Detail |
---|
void paint(java.awt.Graphics2D g2d)
g2d
- the Graphics2D to usejava.awt.Shape getPaintedArea()
java.awt.geom.Rectangle2D getPaintedBounds2D()
boolean inPaintedArea(java.awt.geom.Point2D pt)
java.awt.Shape getSensitiveArea()
java.awt.geom.Rectangle2D getSensitiveBounds2D()
boolean inSensitiveArea(java.awt.geom.Point2D pt)
void setShape(java.awt.Shape shape)
shape
- new shape this painter should be associated with.
Should not be null.java.awt.Shape getShape()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |