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 class
UpdateTracker.ChngSrcRect
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Map
dirtyNodes
(package private) java.util.Map
fromBounds
protected static java.awt.geom.Rectangle2D
NULL_RECT
-
Constructor Summary
Constructors Constructor Description UpdateTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeStarted(GraphicsNodeChangeEvent gnce)
Receives notification of a change to a GraphicsNode.void
clear()
Clears the tracker.java.util.List
getDirtyAreas()
Returns the list of dirty areas on GVT.java.awt.geom.Rectangle2D
getNodeDirtyRegion(GraphicsNode gn)
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
.boolean
hasChanged()
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:
changeStarted
in interfaceGraphicsNodeChangeListener
- Overrides:
changeStarted
in classGraphicsNodeChangeAdapter
- Parameters:
gnce
- The event object describing the GraphicsNode change.
-
clear
public void clear()
Clears the tracker.
-
-