org.apache.batik.gvt

Class ProxyGraphicsNode

public class ProxyGraphicsNode extends AbstractGraphicsNode

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.
Field Summary
protected GraphicsNodesource
The graphics node to proxy.
Constructor Summary
ProxyGraphicsNode()
Constructs a new empty proxy graphics node.
Method Summary
Rectangle2DgetGeometryBounds()
Returns the bounds of the area covered by this node, without taking any of its rendering attribute into account.
ShapegetOutline()
Returns the outline of this node.
Rectangle2DgetPrimitiveBounds()
Returns the bounds of the area covered by this node's primitive paint.
Rectangle2DgetSensitiveBounds()
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.
GraphicsNodegetSource()
Returns the proxied graphics node.
Rectangle2DgetTransformedGeometryBounds(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.
Rectangle2DgetTransformedPrimitiveBounds(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).
voidprimitivePaint(Graphics2D g2d)
Paints this node without applying Filter, Mask, Composite and clip.
voidsetSource(GraphicsNode source)
Sets the graphics node to proxy to the specified graphics node.

Field Detail

source

protected GraphicsNode source
The graphics node to proxy.

Constructor Detail

ProxyGraphicsNode

public ProxyGraphicsNode()
Constructs a new empty proxy graphics node.

Method Detail

getGeometryBounds

public Rectangle2D 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.

getOutline

public Shape getOutline()
Returns the outline of this node.

getPrimitiveBounds

public Rectangle2D getPrimitiveBounds()
Returns the bounds of the area covered by this node's primitive paint.

getSensitiveBounds

public 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.

getSource

public GraphicsNode getSource()
Returns the proxied graphics node.

getTransformedGeometryBounds

public Rectangle2D getTransformedGeometryBounds(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. The returned value is transformed by the concatenation of the input transform and this node's transform.

Parameters: txf the affine transform with which this node's transform should be concatenated. Should not be null.

getTransformedPrimitiveBounds

public Rectangle2D getTransformedPrimitiveBounds(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).

Parameters: txf the affine transform with which this node's transform should be concatenated. Should not be null.

primitivePaint

public void primitivePaint(Graphics2D g2d)
Paints this node without applying Filter, Mask, Composite and clip.

Parameters: g2d the Graphics2D to use

setSource

public void setSource(GraphicsNode source)
Sets the graphics node to proxy to the specified graphics node.

Parameters: source the graphics node to proxy

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.