Package org.apache.batik.gvt
Class UpdateTracker
java.lang.Object
org.apache.batik.gvt.event.GraphicsNodeChangeAdapter
org.apache.batik.gvt.UpdateTracker
- All Implemented Interfaces:
EventListener
,GraphicsNodeChangeListener
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 -
Field Summary
FieldsModifier and TypeFieldDescription(package private) Map
(package private) Map
protected static Rectangle2D
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Receives notification of a change to a GraphicsNode.void
clear()
Clears the tracker.Returns the list of dirty areas on GVT.This returns the dirty region for gn in the coordinate system given byat
.boolean
Tells whether the GVT tree has changed.Methods inherited from class org.apache.batik.gvt.event.GraphicsNodeChangeAdapter
changeCompleted
-
Field Details
-
Constructor Details
-
UpdateTracker
public UpdateTracker()
-
-
Method Details
-
hasChanged
public boolean hasChanged()Tells whether the GVT tree has changed. -
getDirtyAreas
Returns the list of dirty areas on GVT. -
getNodeDirtyRegion
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
-
changeStarted
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.
-