public class UpdateTracker extends GraphicsNodeChangeAdapter
Modifier and Type | Field and Description |
---|---|
protected static java.awt.geom.Rectangle2D |
NULL_RECT |
Constructor and Description |
---|
UpdateTracker() |
Modifier and Type | Method and 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 by
at . |
boolean |
hasChanged()
Tells whether the GVT tree has changed.
|
changeCompleted
public boolean hasChanged()
public java.util.List getDirtyAreas()
public java.awt.geom.Rectangle2D getNodeDirtyRegion(GraphicsNode gn, java.awt.geom.AffineTransform at)
at
.gn
- Node tree to return dirty region for.at
- Affine transform to coordinate space to accumulate
dirty regions in.public java.awt.geom.Rectangle2D getNodeDirtyRegion(GraphicsNode gn)
public void changeStarted(GraphicsNodeChangeEvent gnce)
changeStarted
in interface GraphicsNodeChangeListener
changeStarted
in class GraphicsNodeChangeAdapter
gnce
- The event object describing the GraphicsNode change.public void clear()
Copyright © 2022 Apache Software Foundation. All Rights Reserved.