org.apache.batik.gvt.filter

Interface GraphicsNodeRable

public interface GraphicsNodeRable extends Filter

This interface allows GraphicsNode to be seen as RenderableImages, which can be used for operations such as filtering, masking or compositing. Given a GraphicsNode, a GraphicsNodeRable can be created through a GraphicsNodeRableFactory.
Method Summary
GraphicsNodegetGraphicsNode()
Returns the GraphicsNode for which a rendering can be obtained
booleangetUsePrimitivePaint()
Returns true if this Rable get's it's contents by calling primitivePaint on the associated GraphicsNode or false if it uses paint.
voidsetGraphicsNode(GraphicsNode node)
Sets the GraphicsNode associated with this image.
voidsetUsePrimitivePaint(boolean usePrimitivePaint)
Set to true if this Rable should get it's contents by calling primitivePaint on the associated GraphicsNode or false if it should use paint.

Method Detail

getGraphicsNode

public GraphicsNode getGraphicsNode()
Returns the GraphicsNode for which a rendering can be obtained

Returns: the GraphicsNode associated with this image.

getUsePrimitivePaint

public boolean getUsePrimitivePaint()
Returns true if this Rable get's it's contents by calling primitivePaint on the associated GraphicsNode or false if it uses paint.

setGraphicsNode

public void setGraphicsNode(GraphicsNode node)
Sets the GraphicsNode associated with this image.

setUsePrimitivePaint

public void setUsePrimitivePaint(boolean usePrimitivePaint)
Set to true if this Rable should get it's contents by calling primitivePaint on the associated GraphicsNode or false if it should use paint.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.