| java.lang.Object com.sun.perseus.model.RenderingManager
RenderingManager | class RenderingManager (Code) | | The RenderingManager class provides support for efficiently
managing rendered areas in ModelNode implementations, such as
AbstractShapeNode.
version: $Id: RenderingManager.java,v 1.4 2006/06/29 10:47:33 ln156897 Exp $ |
Field Summary | |
protected Tile | lastRenderedTile The node's most recent rendered tile. | protected Tile | lrtCache A value cached so that we don't reallocate tiles all the time. | protected ModelNode | node The associated ModelNode, the one for which RenderingManager
tracks regions. | protected Tile | rTile | protected boolean | rTileDirty True when the rendering tile needs to be recomputed. |
Method Summary | |
protected void | clearLastRenderedTile() After calling this method, getLastRendered should always return null. | final protected void | dirty() Marks the rendering as dirty, meaning that the rendering tile cached
value cannot be reused, if any value has been cached. | protected Tile | getLastRenderedTile() the set node's last actual rendering. | protected Tile | getRenderingTile() | 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. |
lastRenderedTile | protected Tile lastRenderedTile(Code) | | The node's most recent rendered tile.
|
lrtCache | protected Tile lrtCache(Code) | | A value cached so that we don't reallocate tiles all the time.
|
node | protected ModelNode node(Code) | | The associated ModelNode, the one for which RenderingManager
tracks regions.
|
rTile | protected Tile rTile(Code) | | The node's current rendering bounds
|
rTileDirty | protected boolean rTileDirty(Code) | | True when the rendering tile needs to be recomputed.
|
clearLastRenderedTile | protected void clearLastRenderedTile()(Code) | | After calling this method, getLastRendered should always return null.
|
dirty | final protected void dirty()(Code) | | Marks the rendering as dirty, meaning that the rendering tile cached
value cannot be reused, if any value has been cached.
|
getLastRenderedTile | protected Tile getLastRenderedTile()(Code) | | the set node's last actual rendering. If this node'shasRendering method returns false, then this method should returnnull. |
getRenderingTile | protected Tile getRenderingTile()(Code) | | the bounding box, in screen coordinate, which encompasses thenode's rendering. |
rendered | protected void rendered()(Code) | | 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.
|
|
|