Package org.apache.batik.gvt
Class UpdateTracker
- java.lang.Object
-
- org.apache.batik.gvt.event.GraphicsNodeChangeAdapter
-
- org.apache.batik.gvt.UpdateTracker
-
- All Implemented Interfaces:
java.util.EventListener,GraphicsNodeChangeListener
public class UpdateTracker extends GraphicsNodeChangeAdapter
This class tracks the changes on a GVT tree- Version:
- $Id: UpdateTracker.java 1831635 2018-05-15 13:33:47Z ssteiner $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classUpdateTracker.ChngSrcRect
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.MapdirtyNodes(package private) java.util.MapfromBoundsprotected static java.awt.geom.Rectangle2DNULL_RECT
-
Constructor Summary
Constructors Constructor Description UpdateTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeStarted(GraphicsNodeChangeEvent gnce)Receives notification of a change to a GraphicsNode.voidclear()Clears the tracker.java.util.ListgetDirtyAreas()Returns the list of dirty areas on GVT.java.awt.geom.Rectangle2DgetNodeDirtyRegion(GraphicsNode gn)java.awt.geom.Rectangle2DgetNodeDirtyRegion(GraphicsNode gn, java.awt.geom.AffineTransform at)This returns the dirty region for gn in the coordinate system given byat.booleanhasChanged()Tells whether the GVT tree has changed.-
Methods inherited from class org.apache.batik.gvt.event.GraphicsNodeChangeAdapter
changeCompleted
-
-
-
-
Method Detail
-
hasChanged
public boolean hasChanged()
Tells whether the GVT tree has changed.
-
getDirtyAreas
public java.util.List getDirtyAreas()
Returns the list of dirty areas on GVT.
-
getNodeDirtyRegion
public java.awt.geom.Rectangle2D getNodeDirtyRegion(GraphicsNode gn, java.awt.geom.AffineTransform at)
This returns the dirty region for gn in the coordinate system given byat.- Parameters:
gn- Node tree to return dirty region for.at- Affine transform to coordinate space to accumulate dirty regions in.
-
getNodeDirtyRegion
public java.awt.geom.Rectangle2D getNodeDirtyRegion(GraphicsNode gn)
-
changeStarted
public void changeStarted(GraphicsNodeChangeEvent gnce)
Receives notification of a change to a GraphicsNode.- Specified by:
changeStartedin interfaceGraphicsNodeChangeListener- Overrides:
changeStartedin classGraphicsNodeChangeAdapter- Parameters:
gnce- The event object describing the GraphicsNode change.
-
clear
public void clear()
Clears the tracker.
-
-