org.apache.batik.refimpl.gvt.renderer
Class DynamicRenderer
java.lang.Object
|
+--org.apache.batik.refimpl.gvt.renderer.StaticRenderer
|
+--org.apache.batik.refimpl.gvt.renderer.DynamicRenderer
- All Implemented Interfaces:
- Renderer
- public class DynamicRenderer
- extends StaticRenderer
Simple implementation of the Renderer that supports dynamic updates.
Constructor Summary |
DynamicRenderer(java.awt.image.BufferedImage offScreen)
Constructs a new dynamic renderer with the specified buffer image. |
DynamicRenderer(java.awt.image.BufferedImage offScreen,
GraphicsNodeRenderContext rc)
Constructs a new dynamic renderer with the specified buffer image. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
updateListener
protected DynamicRenderer.UpdateListener updateListener
- The listener that receives PropertyChangeEvent and
notify the RepaintHandler that a region has to be repainted.
repaintHandler
protected DynamicRenderer.RepaintHandler repaintHandler
- The handler to notify that a region has to be repainted.
DynamicRenderer
public DynamicRenderer(java.awt.image.BufferedImage offScreen)
- Constructs a new dynamic renderer with the specified buffer image.
- Parameters:
offScreen
- the offscreen buffer to use
DynamicRenderer
public DynamicRenderer(java.awt.image.BufferedImage offScreen,
GraphicsNodeRenderContext rc)
- Constructs a new dynamic renderer with the specified buffer image.
- Parameters:
offScreen
- the offscreen buffer to userc
- the GraphicsNodeRenderContext to use
setTree
public void setTree(GraphicsNode newTreeRoot)
- Description copied from class:
StaticRenderer
- 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.
- Overrides:
setTree
in class StaticRenderer
dispose
public void dispose()
- Disposes all resources of this renderer.
- Overrides:
dispose
in class StaticRenderer
setRepaintHandler
public void setRepaintHandler(DynamicRenderer.RepaintHandler repaintHandler)
- Sets the repaint handler to the specified repaint handler.
- Parameters:
repaintHandler
- the new repaint handler of this renderer
getRepaintHandler
public DynamicRenderer.RepaintHandler getRepaintHandler()
- Returns the repaint handler of this dynamic renderer.
Copyright © 2000 Apache Software Foundation. All Rights Reserved.