public class ProxyGraphicsNode extends AbstractGraphicsNode
Modifier and Type | Field and Description |
---|---|
protected GraphicsNode |
source
The graphics node to proxy.
|
changeCompletedEvent, changeStartedEvent, clip, composite, enableBackgroundGraphicsNodeRable, filter, graphicsNodeRable, hints, inverseTransform, isVisible, listeners, mask, parent, pointerEventType, root, transform, weakRef
ALL, FILL, IDENTITY, NONE, PAINTED, STROKE, VISIBLE, VISIBLE_FILL, VISIBLE_PAINTED, VISIBLE_STROKE
Constructor and Description |
---|
ProxyGraphicsNode()
Constructs a new empty proxy graphics node.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getGeometryBounds()
Returns the bounds of the area covered by this node, without
taking any of its rendering attribute into account.
|
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.geom.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.
|
GraphicsNode |
getSource()
Returns the proxied graphics node.
|
java.awt.geom.Rectangle2D |
getTransformedGeometryBounds(java.awt.geom.AffineTransform txf)
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.
|
java.awt.geom.Rectangle2D |
getTransformedPrimitiveBounds(java.awt.geom.AffineTransform txf)
Returns the bounds of this node's primitivePaint after applying
the input transform (if any), concatenated with this node's
transform (if any).
|
void |
primitivePaint(java.awt.Graphics2D g2d)
Paints this node without applying Filter, Mask, Composite and clip.
|
void |
setSource(GraphicsNode source)
Sets the graphics node to proxy to the specified graphics node.
|
contains, fireGraphicsNodeChangeCompleted, fireGraphicsNodeChangeStarted, fireGraphicsNodeChangeStarted, fireGraphicsNodeChangeStarted, getBounds, getClip, getComposite, getEnableBackgroundGraphicsNodeRable, getFilter, getGlobalTransform, getGraphicsNodeRable, getInverseTransform, getMask, getParent, getPointerEventType, getRenderingHints, getRoot, getTransform, getTransformedBounds, getTransformedSensitiveBounds, getWeakReference, intersects, invalidateGeometryCache, isAntialiasedClip, isOffscreenBufferNeeded, isVisible, nodeHitAt, normalizeRectangle, paint, setClip, setComposite, setFilter, setMask, setParent, setPointerEventType, setRenderingHint, setRenderingHints, setRenderingHints, setRoot, setTransform, setVisible
protected GraphicsNode source
public ProxyGraphicsNode()
public void setSource(GraphicsNode source)
source
- the graphics node to proxypublic GraphicsNode getSource()
public void primitivePaint(java.awt.Graphics2D g2d)
g2d
- the Graphics2D to usepublic java.awt.geom.Rectangle2D getPrimitiveBounds()
public java.awt.geom.Rectangle2D getTransformedPrimitiveBounds(java.awt.geom.AffineTransform txf)
getTransformedPrimitiveBounds
in interface GraphicsNode
getTransformedPrimitiveBounds
in class AbstractGraphicsNode
txf
- the affine transform with which this node's transform should
be concatenated. Should not be null.public java.awt.geom.Rectangle2D getGeometryBounds()
public java.awt.geom.Rectangle2D getTransformedGeometryBounds(java.awt.geom.AffineTransform txf)
getTransformedGeometryBounds
in interface GraphicsNode
getTransformedGeometryBounds
in class AbstractGraphicsNode
txf
- the affine transform with which this node's
transform should be concatenated. Should not be null.public java.awt.geom.Rectangle2D getSensitiveBounds()
public java.awt.Shape getOutline()
Copyright © 2022 Apache Software Foundation. All Rights Reserved.