| java.lang.Object com.sun.perseus.model.UpdateAdapter com.sun.perseus.model.DirtyAreaManager
DirtyAreaManager | public class DirtyAreaManager extends UpdateAdapter (Code) | | The DirtyAreaManager abstraction is responsible for tracking
areas of the document tree which need to be repainted.
version: $Id: DirtyAreaManager.java,v 1.16 2006/06/29 10:47:30 ln156897 Exp $ |
Inner Class :public static class TileElement extends Tile | |
Inner Class :public static class TileQuadrant extends TileElement | |
Field Summary | |
final public static int | DEFAULT_TILE_MIN_SIZE The minimal tile width or height. | public static boolean | ON TEMPORARY: GLOBAL VARIABLE ALLOWING US TO CONTROL WHETHER DIRTY AREA
TRACKING IS ON OR OFF. | Vector | dirtyNodes The list of modified nodes. | int | lastHeight Height of the viewport last time it was painted. | RenderGraphics | lastRG The last RenderGraphics for which dirty areas were checked. | int | lastWidth Width of the viewport last time it was painted. | TileElement | rootTile The Root tile representing this surface. | int | tileMinSize The minimal size, in both dimensions, for dirty area tiles. | Viewport | vp The associated viewport, which defines the size of the rendering
area. |
DEFAULT_TILE_MIN_SIZE | final public static int DEFAULT_TILE_MIN_SIZE(Code) | | The minimal tile width or height.
|
ON | public static boolean ON(Code) | | TEMPORARY: GLOBAL VARIABLE ALLOWING US TO CONTROL WHETHER DIRTY AREA
TRACKING IS ON OR OFF.
|
dirtyNodes | Vector dirtyNodes(Code) | | The list of modified nodes. Some may have been removed from the tree.
|
lastHeight | int lastHeight(Code) | | Height of the viewport last time it was painted.
|
lastWidth | int lastWidth(Code) | | Width of the viewport last time it was painted.
|
rootTile | TileElement rootTile(Code) | | The Root tile representing this surface.
|
tileMinSize | int tileMinSize(Code) | | The minimal size, in both dimensions, for dirty area tiles.
|
vp | Viewport vp(Code) | | The associated viewport, which defines the size of the rendering
area.
|
DirtyAreaManager | public DirtyAreaManager(Viewport vp)(Code) | | Parameters: vp - the associated viewport. |
getDirtyAreas | public TileElement getDirtyAreas(RenderGraphics rg)(Code) | | It is the responsibility of the dirty area manager to compute the list
of dirty areas which need to be re-painted. The minimum includes the
area covered by the modified node's old and new bounds. For efficiency
purposes, the implementation may collapse the rectangles into a few ones.
Parameters: rg - the RenderGraphics for which dirty areas are queried. The firsttile a RenderGraphics is passed to this method, the full area is considered dirty. the set of rectangles to render, based on the list of node whose rendering has changed. |
modifyingNodeRendering | public void modifyingNodeRendering(ModelNode node)(Code) | | Invoked when a node's Rendering is about to be modified
Parameters: node - the node which is about to be modified |
nodeInserted | public void nodeInserted(ModelNode node)(Code) | | Invoked when a node has been inserted into the tree
Parameters: node - the newly inserted node |
refresh | public void refresh(ModelNode mn, RenderGraphics rg, RGB clearPaint)(Code) | | Asks the DirtyAreaManager to repaint all the diry areas on the given
RenderGraphics
Parameters: mn - the model node to render, typically, the DocumentNode. Parameters: rg - the RenderGraphics to render to. Parameters: clearPaint - the color to use to clear the background |
setTileMinSize | public void setTileMinSize(int tileMinSize)(Code) | | Parameters: tileMinSize - the minimal size for a rendering tile. |
setViewport | public void setViewport(Viewport vp)(Code) | | Parameters: vp - the new associated viewport. |
|
|