org.apache.batik.gvt.renderer
Interface Renderer

All Known Implementing Classes:
StaticRenderer

public interface Renderer

Interface for GVT Renderers.


Method Summary
 void dispose()
          Cause the renderer to ask to be removed from external reference lists, de-register as a listener to events, etc.
 java.awt.geom.AffineTransform getTransform()
          Returns a copy of the transform from the current user space (as defined by the top node of the GVT tree) to the device space (1 unit = 1/72nd of an inch / 1 pixel, roughly speaking
 GraphicsNode getTree()
          Returns the GVT tree associated with this renderer
 boolean isProgressivePaintAllowed()
          Returns true if the Renderer is currently allowed to do progressive painting, false otherwise.
 void repaint(java.awt.Shape area)
          Forces repaint of provided node.
 void setProgressivePaintAllowed(boolean allowProgressive)
          Turns on/off progressive painting.
 void setTransform(java.awt.geom.AffineTransform usr2dev)
          Sets the transform from the current user space (as defined by the top node of the GVT tree, to the associated device space.
 void setTree(GraphicsNode treeRoot)
          This associates the given GVT Tree with this renderer.
 

Method Detail

setTree

public void setTree(GraphicsNode treeRoot)
This associates the given GVT Tree with this renderer. Any previous tree association is forgotten. Not certain if this should be just GraphicsNode, or CanvasGraphicsNode.

getTree

public GraphicsNode getTree()
Returns the GVT tree associated with this renderer

repaint

public void repaint(java.awt.Shape area)
             throws java.lang.InterruptedException
Forces repaint of provided node. 'node' must be a node in the currently associated GVT tree. Normally there is no need to call this method explicitly as the Renderer listens for changes on all nodes in the tree it is associated with.

setTransform

public void setTransform(java.awt.geom.AffineTransform usr2dev)
Sets the transform from the current user space (as defined by the top node of the GVT tree, to the associated device space.

getTransform

public java.awt.geom.AffineTransform getTransform()
Returns a copy of the transform from the current user space (as defined by the top node of the GVT tree) to the device space (1 unit = 1/72nd of an inch / 1 pixel, roughly speaking

isProgressivePaintAllowed

public boolean isProgressivePaintAllowed()
Returns true if the Renderer is currently allowed to do progressive painting, false otherwise.

setProgressivePaintAllowed

public void setProgressivePaintAllowed(boolean allowProgressive)
Turns on/off progressive painting. Turning off progressive painting will cause a repaint if any progressive painting has been made.

dispose

public void dispose()
Cause the renderer to ask to be removed from external reference lists, de-register as a listener to events, etc. so that in the absence of other existing references, it can be removed by the garbage collector.


Copyright © 2000 Apache Software Foundation. All Rights Reserved.