org.apache.batik.gvt
public class ShapeNode extends AbstractGraphicsNode
Field Summary | |
---|---|
protected Shape | shape
The shape that describes this ShapeNode. |
protected ShapePainter | shapePainter
The shape painter used to paint the shape of this shape node. |
Constructor Summary | |
---|---|
ShapeNode()
Constructs a new empty ShapeNode. |
Method Summary | |
---|---|
boolean | contains(Point2D p)
Returns true if the specified Point2D is inside the boundary of this
node, false otherwise.
|
Rectangle2D | getGeometryBounds()
Returns the bounds of the area covered by this node, without
taking any of its rendering attribute into account. |
Shape | getOutline()
Returns the outline of this node. |
Rectangle2D | getPrimitiveBounds()
Returns the bounds of the area covered by this node's primitive paint. |
Shape | getSensitiveArea()
Returns the shape that represents the sensitive area of this graphics
node. |
Rectangle2D | getSensitiveBounds()
Returns the bounds of the sensitive area covered by this node,
This includes the stroked area but does not include the effects
of clipping, masking or filtering. |
Shape | getShape()
Returns the shape of this ShapeNode. |
ShapePainter | getShapePainter()
Returns the ShapePainter used by this shape node to render its
shape. |
boolean | inSensitiveArea(Point2D pt) |
boolean | intersects(Rectangle2D r)
Returns true if the interior of this node intersects the interior of a
specified Rectangle2D, false otherwise.
|
protected void | invalidateGeometryCache()
Invalidates this ShapeNode. |
void | paint(Graphics2D g2d)
Paints this node.
|
void | primitivePaint(Graphics2D g2d)
Paints this node without applying Filter, Mask, Composite, and clip.
|
void | setPointerEventType(int pointerEventType) |
void | setShape(Shape newShape)
Sets the shape of this ShapeNode.
|
void | setShapePainter(ShapePainter newShapePainter)
Sets the ShapePainter used by this shape node to render its
shape.
|
Parameters: p the specified Point2D in the user space
Parameters: r the specified Rectangle2D in the user node space
Parameters: g2d the Graphics2D to use
Parameters: g2d the Graphics2D to use
Parameters: newShape the new shape of this shape node
Parameters: newShapePainter the new ShapePainter to use