|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.gvt.AbstractGraphicsNode
org.apache.batik.gvt.CompositeGraphicsNode
org.apache.batik.gvt.ImageNode
public class ImageNode
A graphics node that represents an image described as a graphics node.
Field Summary | |
---|---|
protected boolean |
hitCheckChildren
|
Fields inherited from class org.apache.batik.gvt.CompositeGraphicsNode |
---|
backgroundEnableRgn, children, count, modCount, NULL_RECT, VIEWPORT |
Fields inherited from class org.apache.batik.gvt.AbstractGraphicsNode |
---|
changeCompletedEvent, changeStartedEvent, clip, composite, enableBackgroundGraphicsNodeRable, filter, graphicsNodeRable, hints, inverseTransform, isVisible, listeners, mask, parent, pointerEventType, root, transform, weakRef |
Fields inherited from interface org.apache.batik.gvt.GraphicsNode |
---|
ALL, FILL, IDENTITY, NONE, PAINTED, STROKE, VISIBLE, VISIBLE_FILL, VISIBLE_PAINTED, VISIBLE_STROKE |
Constructor Summary | |
---|---|
ImageNode()
Constructs a new empty ImageNode . |
Method Summary | |
---|---|
boolean |
contains(Point2D p)
Returns true if the specified Point2D is inside the boundary of this node, false otherwise. |
boolean |
getHitCheckChildren()
|
GraphicsNode |
getImage()
Returns the graphics node that represents the image. |
Rectangle2D |
getPrimitiveBounds()
Returns the bounds of the area covered by this node's primitive paint. |
GraphicsNode |
nodeHitAt(Point2D p)
Returns the GraphicsNode containing point p if this node or one of its children is sensitive to mouse events at p. |
void |
paint(Graphics2D g2d)
Paints this node. |
void |
setHitCheckChildren(boolean hitCheckChildren)
If hitCheckChildren is true then nodeHitAt will return child nodes of this image. |
void |
setImage(GraphicsNode newImage)
Sets the graphics node that represents the image. |
void |
setVisible(boolean isVisible)
Sets if this node is visible or not depending on the specified value. |
Methods inherited from class org.apache.batik.gvt.CompositeGraphicsNode |
---|
add, add, addAll, addAll, clear, contains, containsAll, ensureCapacity, get, getBackgroundEnable, getChildren, getGeometryBounds, getOutline, getSensitiveBounds, getTransformedBBox, getTransformedGeometryBounds, getTransformedPrimitiveBounds, getTransformedSensitiveBounds, indexOf, invalidateGeometryCache, isEmpty, iterator, lastIndexOf, listIterator, listIterator, primitivePaint, remove, remove, removeAll, retainAll, set, setBackgroundEnable, setRoot, size, subList, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
equals, hashCode |
Field Detail |
---|
protected boolean hitCheckChildren
Constructor Detail |
---|
public ImageNode()
ImageNode
.
Method Detail |
---|
public void setVisible(boolean isVisible)
CompositeGraphicsNode
setVisible
in interface GraphicsNode
setVisible
in class CompositeGraphicsNode
isVisible
- If true this node is visiblepublic Rectangle2D getPrimitiveBounds()
CompositeGraphicsNode
getPrimitiveBounds
in interface GraphicsNode
getPrimitiveBounds
in class CompositeGraphicsNode
public void setHitCheckChildren(boolean hitCheckChildren)
public boolean getHitCheckChildren()
public void paint(Graphics2D g2d)
paint
in interface GraphicsNode
paint
in class AbstractGraphicsNode
g2d
- the Graphics2D to usepublic boolean contains(Point2D p)
contains
in interface GraphicsNode
contains
in class CompositeGraphicsNode
p
- the specified Point2D in the user spacepublic GraphicsNode nodeHitAt(Point2D p)
nodeHitAt
in interface GraphicsNode
nodeHitAt
in class CompositeGraphicsNode
p
- the specified Point2D in the user spacepublic void setImage(GraphicsNode newImage)
newImage
- the new graphics node that represents the imagepublic GraphicsNode getImage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |