public class UpdateTracker extends GraphicsNodeChangeAdapter
Modifier and Type | Field and Description |
---|---|
protected static 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.
|
List |
getDirtyAreas()
Returns the list of dirty areas on GVT.
|
Rectangle2D |
getNodeDirtyRegion(GraphicsNode gn) |
Rectangle2D |
getNodeDirtyRegion(GraphicsNode gn,
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
protected static Rectangle2D NULL_RECT
public boolean hasChanged()
public List getDirtyAreas()
public Rectangle2D getNodeDirtyRegion(GraphicsNode gn, AffineTransform at)
at
.gn
- Node tree to return dirty region for.at
- Affine transform to coordinate space to accumulate
dirty regions in.public 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 © 2000–2023 Apache Software Foundation. All rights reserved.