public class ImageNode extends CompositeGraphicsNode
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hitCheckChildren |
backgroundEnableRgn, children, count, modCount, NULL_RECT, VIEWPORTchangeCompletedEvent, changeStartedEvent, clip, composite, enableBackgroundGraphicsNodeRable, filter, graphicsNodeRable, hints, inverseTransform, isVisible, listeners, mask, parent, pointerEventType, root, transform, weakRefALL, FILL, IDENTITY, NONE, PAINTED, STROKE, VISIBLE, VISIBLE_FILL, VISIBLE_PAINTED, VISIBLE_STROKE| Constructor and Description |
|---|
ImageNode()
Constructs a new empty
ImageNode. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, toArrayfireGraphicsNodeChangeCompleted, fireGraphicsNodeChangeStarted, fireGraphicsNodeChangeStarted, fireGraphicsNodeChangeStarted, getBounds, getClip, getComposite, getEnableBackgroundGraphicsNodeRable, getFilter, getGlobalTransform, getGraphicsNodeRable, getInverseTransform, getMask, getParent, getPointerEventType, getRenderingHints, getRoot, getTransform, getTransformedBounds, getWeakReference, intersects, isAntialiasedClip, isOffscreenBufferNeeded, isVisible, normalizeRectangle, setClip, setComposite, setFilter, setMask, setParent, setPointerEventType, setRenderingHint, setRenderingHints, setRenderingHints, setTransformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic void setVisible(boolean isVisible)
CompositeGraphicsNodesetVisible in interface GraphicsNodesetVisible in class CompositeGraphicsNodeisVisible - If true this node is visiblepublic Rectangle2D getPrimitiveBounds()
CompositeGraphicsNodegetPrimitiveBounds in interface GraphicsNodegetPrimitiveBounds in class CompositeGraphicsNodepublic void setHitCheckChildren(boolean hitCheckChildren)
public boolean getHitCheckChildren()
public void paint(Graphics2D g2d)
paint in interface GraphicsNodepaint in class AbstractGraphicsNodeg2d - the Graphics2D to usepublic boolean contains(Point2D p)
contains in interface GraphicsNodecontains in class CompositeGraphicsNodep - the specified Point2D in the user spacepublic GraphicsNode nodeHitAt(Point2D p)
nodeHitAt in interface GraphicsNodenodeHitAt in class CompositeGraphicsNodep - the specified Point2D in the user spacepublic void setImage(GraphicsNode newImage)
newImage - the new graphics node that represents the imagepublic GraphicsNode getImage()
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.