public class RegionManager extends Object
| Constructor and Description |
|---|
RegionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDirtyRegion(Rectangle rect)
Adds the supplied rectangle to the dirty regions.
|
Rectangle[] |
getDirtyRegions()
Merges all outstanding dirty regions into a single list of rectangles and returns that to
the caller.
|
boolean |
haveDirtyRegions()
Returns true if dirty regions have been accumulated since the last call to
getDirtyRegions(). |
void |
invalidateRegion(int x,
int y,
int width,
int height)
Invalidates the specified region.
|
void |
invalidateRegion(Rectangle rect)
Invalidates the specified region (the supplied rectangle will be cloned as the region
manager fiddles with the rectangles it uses internally).
|
List<Rectangle> |
peekDirtyRegions()
Returns our unmerged list of dirty regions.
|
public void invalidateRegion(int x,
int y,
int width,
int height)
public void invalidateRegion(Rectangle rect)
public void addDirtyRegion(Rectangle rect)
invalidateRegion(int, int, int, int).public boolean haveDirtyRegions()
getDirtyRegions().public List<Rectangle> peekDirtyRegions()
getDirtyRegions(), this does not clear out the list of dirty
regions and prepare for the next frame.public Rectangle[] getDirtyRegions()
Copyright © 2015. All rights reserved.