Fields Summary |
---|
protected ModelNode | nodeThe associated ModelNode, the one for which RenderingManager
tracks regions. |
protected boolean | rTileDirtyTrue when the rendering tile needs to be recomputed. |
protected com.sun.perseus.j2d.Tile | rTileThe node's current rendering bounds |
protected com.sun.perseus.j2d.Tile | lastRenderedTileThe node's most recent rendered tile. |
protected com.sun.perseus.j2d.Tile | lrtCacheA value cached so that we don't reallocate tiles all the time. |
Methods Summary |
---|
protected void | clearLastRenderedTile()After calling this method, getLastRendered should always return null.
lastRenderedTile = null;
|
protected final void | dirty()Marks the rendering as dirty, meaning that the rendering tile cached
value cannot be reused, if any value has been cached.
rTileDirty = true;
node.modifyingNodeRendering();
|
protected com.sun.perseus.j2d.Tile | getLastRenderedTile()
return lastRenderedTile;
|
protected com.sun.perseus.j2d.Tile | getRenderingTile()
if (rTileDirty) {
node.computeRenderingTile(rTile);
rTileDirty = false;
}
return rTile;
|
protected void | rendered()Should be called by ModelNode implementations when they have just
rendered so that the rendered area is captured in the lastRenderedTile.
Important: it is the responsibility of the classes using this method
to make sure the rendering tile is not dirty when calling this
method. If the rendering tile is dirty, then the captured value will
not correspond to the actual rendering area.
if (lastRenderedTile == null) {
lastRenderedTile = lrtCache;
}
lastRenderedTile.x = rTile.x;
lastRenderedTile.y = rTile.y;
lastRenderedTile.maxX = rTile.maxX;
lastRenderedTile.maxY = rTile.maxY;
|