|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.refimpl.gvt.AbstractGraphicsNode | +--org.apache.batik.refimpl.gvt.ConcreteShapeNode
An implementation of the ShapeNode interface.
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.refimpl.gvt.AbstractGraphicsNode |
clip, composite, cursor, eventFilter, filter, hints, hitDetector, isVisible, listeners, mask, mememtos, parent, root, transform |
Fields inherited from interface org.apache.batik.gvt.GraphicsNode |
KEY_AREA_OF_INTEREST |
Constructor Summary | |
ConcreteShapeNode()
Constructs a new empty shape node. |
Method Summary | |
boolean |
contains(java.awt.geom.Point2D p)
Tests if the specified Point2D is inside the boundary of this node. |
java.awt.geom.Rectangle2D |
getGeometryBounds()
Returns the bounds of the area covered by this node, without taking any of its rendering attribute into account, i.e., exclusive of any clipping, masking, filtering or stroking, for example. |
java.awt.Shape |
getOutline()
Returns the outline of this node. |
java.awt.geom.Rectangle2D |
getPrimitiveBounds()
Returns the bounds of the area covered by this node's primitive paint. |
java.awt.Shape |
getShape()
Returns the shape of this shape node. |
ShapePainter |
getShapePainter()
Returns the ShapePainter used by this shape node to render the shape. |
boolean |
hasProgressivePaint()
Returns true if this node needs a progressive paint, false otherwise. |
boolean |
intersects(java.awt.geom.Rectangle2D r)
Tests if the interior of this node intersects the interior of a specified Rectangle2D. |
protected void |
invalidateGeometryCache()
Invalidates the cached geometric bounds. |
void |
primitivePaint(java.awt.Graphics2D g2d,
GraphicsNodeRenderContext rc)
Paints this node without applying Filter, Mask, Composite and clip. |
void |
progressivePaint(java.awt.Graphics2D g2d,
GraphicsNodeRenderContext rc)
Paints one step of this node rendering operations. |
void |
setShape(java.awt.Shape newShape)
Sets the shape of this shape node. |
void |
setShapePainter(ShapePainter newShapePainter)
Sets the ShapePainter used by this shape node to render the 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 ConcreteShapeNode()
Method Detail |
public void setShape(java.awt.Shape newShape)
ShapeNode
setShape
in interface ShapeNode
org.apache.batik.gvt.ShapeNode
newShape
- the new shape of this shape nodepublic java.awt.Shape getShape()
ShapeNode
getShape
in interface ShapeNode
org.apache.batik.gvt.ShapeNode
public void setShapePainter(ShapePainter newShapePainter)
ShapeNode
setShapePainter
in interface ShapeNode
org.apache.batik.gvt.ShapeNode
newShapePainter
- the new ShapePainter to usepublic ShapePainter getShapePainter()
ShapeNode
getShapePainter
in interface ShapeNode
org.apache.batik.gvt.ShapeNode
public boolean hasProgressivePaint()
GraphicsNode
hasProgressivePaint
in interface GraphicsNode
org.apache.batik.gvt.GraphicsNode
public void progressivePaint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext rc)
GraphicsNode
progressivePaint
in interface GraphicsNode
org.apache.batik.gvt.GraphicsNode
g2d
- the Graphics2D to userc
- the GraphicsNodeRenderContext to usepublic void primitivePaint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext rc)
GraphicsNode
primitivePaint
in interface GraphicsNode
org.apache.batik.gvt.GraphicsNode
g2d
- the Graphics2D to userc
- the GraphicsNodeRenderContext to useprotected void invalidateGeometryCache()
AbstractGraphicsNode
invalidateGeometryCache
in class AbstractGraphicsNode
public boolean contains(java.awt.geom.Point2D p)
GraphicsNode
contains
in interface GraphicsNode
contains
in class AbstractGraphicsNode
org.apache.batik.gvt.GraphicsNode
p
- the specified Point2D in the user spacepublic boolean intersects(java.awt.geom.Rectangle2D r)
GraphicsNode
intersects
in interface GraphicsNode
intersects
in class AbstractGraphicsNode
org.apache.batik.gvt.GraphicsNode
r
- the specified Rectangle2D in the user node spacepublic java.awt.geom.Rectangle2D getPrimitiveBounds()
GraphicsNode
getPrimitiveBounds
in interface GraphicsNode
public java.awt.geom.Rectangle2D getGeometryBounds()
GraphicsNode
getGeometryBounds
in interface GraphicsNode
public java.awt.Shape getOutline()
GraphicsNode
getOutline
in interface GraphicsNode
org.apache.batik.gvt.GraphicsNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |