Package org.apache.batik.gvt
Class ProxyGraphicsNode
java.lang.Object
org.apache.batik.gvt.AbstractGraphicsNode
org.apache.batik.gvt.ProxyGraphicsNode
- All Implemented Interfaces:
GraphicsNode
A graphics node which provides a placeholder for another graphics node. This
node is self defined except that it delegates to the enclosed (proxied)
graphics node, its paint routine and bounds computation.
- Version:
- $Id: ProxyGraphicsNode.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
FieldsFields inherited from class org.apache.batik.gvt.AbstractGraphicsNode
changeCompletedEvent, changeStartedEvent, clip, composite, enableBackgroundGraphicsNodeRable, EPSILON, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the bounds of the area covered by this node, without taking any of its rendering attribute into account.Returns the outline of this node.Returns the bounds of the area covered by this node's primitive paint.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.Returns the proxied graphics node.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.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
(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.Methods inherited from class org.apache.batik.gvt.AbstractGraphicsNode
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
-
Field Details
-
source
The graphics node to proxy.
-
-
Constructor Details
-
ProxyGraphicsNode
public ProxyGraphicsNode()Constructs a new empty proxy graphics node.
-
-
Method Details
-
setSource
Sets the graphics node to proxy to the specified graphics node.- Parameters:
source
- the graphics node to proxy
-
getSource
Returns the proxied graphics node. -
primitivePaint
Paints this node without applying Filter, Mask, Composite and clip.- Parameters:
g2d
- the Graphics2D to use
-
getPrimitiveBounds
Returns the bounds of the area covered by this node's primitive paint. -
getTransformedPrimitiveBounds
Returns the bounds of this node's primitivePaint after applying the input transform (if any), concatenated with this node's transform (if any).- Specified by:
getTransformedPrimitiveBounds
in interfaceGraphicsNode
- Overrides:
getTransformedPrimitiveBounds
in classAbstractGraphicsNode
- Parameters:
txf
- the affine transform with which this node's transform should be concatenated. Should not be null.
-
getGeometryBounds
Returns the bounds of the area covered by this node, without taking any of its rendering attribute into account. That is, exclusive of any clipping, masking, filtering or stroking, for example. -
getTransformedGeometryBounds
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. The returned value is transformed by the concatenation of the input transform and this node's transform.- Specified by:
getTransformedGeometryBounds
in interfaceGraphicsNode
- Overrides:
getTransformedGeometryBounds
in classAbstractGraphicsNode
- Parameters:
txf
- the affine transform with which this node's transform should be concatenated. Should not be null.
-
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. -
getOutline
Returns the outline of this node.
-