public class UpdateTracker extends GraphicsNodeChangeAdapter
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
UpdateTracker.ChngSrcRect |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.Map |
dirtyNodes |
(package private) java.util.Map |
fromBounds |
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.
|
changeCompletedjava.util.Map dirtyNodes
java.util.Map fromBounds
protected static java.awt.geom.Rectangle2D NULL_RECT
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 GraphicsNodeChangeListenerchangeStarted in class GraphicsNodeChangeAdaptergnce - The event object describing the GraphicsNode change.public void clear()