|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.gvt.AbstractGraphicsNode | +--org.apache.batik.gvt.ShapeNode
A graphics node that represents a shape.
Field Summary | |
protected java.awt.Shape |
shape
The shape that describes this ShapeNode. |
protected ShapePainter |
shapePainter
The shape painter used to paint the shape of this shape node. |
Fields inherited from class org.apache.batik.gvt.AbstractGraphicsNode |
clip, composite, filter, gnr, hints, hitDetector, inverseTransform, isVisible, listeners, mask, parent, root, transform |
Fields inherited from interface org.apache.batik.gvt.GraphicsNode |
IDENTITY |
Constructor Summary | |
ShapeNode()
Constructs a new empty ShapeNode. |
Method Summary | |
boolean |
contains(java.awt.geom.Point2D p,
GraphicsNodeRenderContext rc)
Tests if the specified Point2D is inside the boundary of this node. |
java.awt.geom.Rectangle2D |
getGeometryBounds(GraphicsNodeRenderContext rc)
Returns the bounds of the area covered by this ShapeNode, without taking any of its rendering attribute into account. |
java.awt.Shape |
getOutline(GraphicsNodeRenderContext rc)
Returns the outline of this ShapeNode. |
java.awt.geom.Rectangle2D |
getPrimitiveBounds(GraphicsNodeRenderContext rc)
Returns the bounds of the area covered by this node's primitive paint. |
java.awt.Shape |
getShape()
Returns the shape of this ShapeNode. |
ShapePainter |
getShapePainter()
Returns the ShapePainter used by this shape node to render its shape. |
boolean |
intersects(java.awt.geom.Rectangle2D r,
GraphicsNodeRenderContext rc)
Tests if the interior of this node intersects the interior of a specified Rectangle2D. |
protected void |
invalidateGeometryCache()
Invalidates this ShapeNode. |
void |
paint(java.awt.Graphics2D g2d,
GraphicsNodeRenderContext rc)
Paints this node if visible. |
void |
primitivePaint(java.awt.Graphics2D g2d,
GraphicsNodeRenderContext rc)
Paints this node without applying Filter, Mask, Composite and clip. |
void |
setShape(java.awt.Shape newShape)
Sets the shape of this ShapeNode. |
void |
setShapePainter(ShapePainter newShapePainter)
Sets the ShapePainter used by this shape node to render its shape. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.Shape shape
protected ShapePainter shapePainter
Constructor Detail |
public ShapeNode()
Method Detail |
public void setShape(java.awt.Shape newShape)
newShape
- the new shape of this shape nodepublic java.awt.Shape getShape()
public void setShapePainter(ShapePainter newShapePainter)
newShapePainter
- the new ShapePainter to usepublic ShapePainter getShapePainter()
public void paint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext rc)
paint
in class AbstractGraphicsNode
g2d
- the Graphics2D to userc
- the GraphicsNodeRenderContext to usepublic void primitivePaint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext rc)
g2d
- the Graphics2D to userc
- the GraphicsNodeRenderContext to useprotected void invalidateGeometryCache()
invalidateGeometryCache
in class AbstractGraphicsNode
public boolean contains(java.awt.geom.Point2D p, GraphicsNodeRenderContext rc)
contains
in class AbstractGraphicsNode
p
- the specified Point2D in the user spacerc
- the GraphicsNodeRenderContext for which this dimension appliespublic boolean intersects(java.awt.geom.Rectangle2D r, GraphicsNodeRenderContext rc)
intersects
in class AbstractGraphicsNode
r
- the specified Rectangle2D in the user node spacerc
- the GraphicsNodeRenderContext for which this dimension appliespublic java.awt.geom.Rectangle2D getPrimitiveBounds(GraphicsNodeRenderContext rc)
rc
- the GraphicsNodeRenderContext for which this dimension appliespublic java.awt.geom.Rectangle2D getGeometryBounds(GraphicsNodeRenderContext rc)
rc
- the GraphicsNodeRenderContext for which this dimension appliespublic java.awt.Shape getOutline(GraphicsNodeRenderContext rc)
rc
- the GraphicsNodeRenderContext for which this dimension applies
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |