org.apache.batik.gvt

Class UpdateTracker

public class UpdateTracker extends GraphicsNodeChangeAdapter

This class tracks the changes on a GVT tree
Field Summary
protected static Rectangle2DNULL_RECT
Constructor Summary
UpdateTracker()
Method Summary
voidchangeStarted(GraphicsNodeChangeEvent gnce)
Receives notification of a change to a GraphicsNode.
voidclear()
Clears the tracker.
ListgetDirtyAreas()
Returns the list of dirty areas on GVT.
Rectangle2DgetNodeDirtyRegion(GraphicsNode gn, AffineTransform at)
This returns the dirty region for gn in the coordinate system given by at.
Rectangle2DgetNodeDirtyRegion(GraphicsNode gn)
booleanhasChanged()
Tells whether the GVT tree has changed.

Field Detail

NULL_RECT

protected static Rectangle2D NULL_RECT

Constructor Detail

UpdateTracker

public UpdateTracker()

Method Detail

changeStarted

public void changeStarted(GraphicsNodeChangeEvent gnce)
Receives notification of a change to a GraphicsNode.

Parameters: gnce The event object describing the GraphicsNode change.

clear

public void clear()
Clears the tracker.

getDirtyAreas

public List getDirtyAreas()
Returns the list of dirty areas on GVT.

getNodeDirtyRegion

public Rectangle2D getNodeDirtyRegion(GraphicsNode gn, AffineTransform at)
This returns the dirty region for gn in the coordinate system given by at.

Parameters: gn Node tree to return dirty region for. at Affine transform to coordinate space to accumulate dirty regions in.

getNodeDirtyRegion

public Rectangle2D getNodeDirtyRegion(GraphicsNode gn)

hasChanged

public boolean hasChanged()
Tells whether the GVT tree has changed.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.