Java Doc for DirtyAreaManager.java in  » 6.0-JDK-Modules » j2me » com » sun » perseus » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.perseus.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  intDEFAULT_TILE_MIN_SIZE
     The minimal tile width or height.
public static  booleanON
     TEMPORARY: GLOBAL VARIABLE ALLOWING US TO CONTROL WHETHER DIRTY AREA TRACKING IS ON OR OFF.
 VectordirtyNodes
     The list of modified nodes.
 intlastHeight
     Height of the viewport last time it was painted.
 RenderGraphicslastRG
     The last RenderGraphics for which dirty areas were checked.
 intlastWidth
     Width of the viewport last time it was painted.
 TileElementrootTile
     The Root tile representing this surface.
 inttileMinSize
     The minimal size, in both dimensions, for dirty area tiles.
 Viewportvp
     The associated viewport, which defines the size of the rendering area.

Constructor Summary
public  DirtyAreaManager(Viewport vp)
    

Method Summary
public  TileElementgetDirtyAreas(RenderGraphics rg)
     It is the responsibility of the dirty area manager to compute the list of dirty areas which need to be re-painted.
public  voidmodifyingNodeRendering(ModelNode node)
    
public  voidnodeInserted(ModelNode node)
    
public  voidrefresh(ModelNode mn, RenderGraphics rg, RGB clearPaint)
    
public  voidsetTileMinSize(int tileMinSize)
    
public  voidsetViewport(Viewport vp)
    

Field Detail
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.



lastRG
RenderGraphics lastRG(Code)
The last RenderGraphics for which dirty areas were checked.



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.




Constructor Detail
DirtyAreaManager
public DirtyAreaManager(Viewport vp)(Code)

Parameters:
  vp - the associated viewport.




Method Detail
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.



Fields inherited from com.sun.perseus.model.UpdateAdapter
protected boolean loadComplete(Code)(Java Doc)
protected boolean loadStarting(Code)(Java Doc)
protected boolean loadingFailed(Code)(Java Doc)
protected Exception loadingFailedException(Code)(Java Doc)

Methods inherited from com.sun.perseus.model.UpdateAdapter
public Exception getLoadingFailedException()(Code)(Java Doc)
public boolean hasLoadingFailed()(Code)(Java Doc)
public void loadBegun(ModelNode node)(Code)(Java Doc)
public void loadComplete(ModelNode node)(Code)(Java Doc)
public void loadStarting(DocumentNode documentNode, InputStream is)(Code)(Java Doc)
public boolean loadSuccess()(Code)(Java Doc)
public void loadingFailed(DocumentNode documentNode, Exception error)(Code)(Java Doc)
public void modifiedNode(ModelNode node)(Code)(Java Doc)
public void modifyingNode(ModelNode node)(Code)(Java Doc)
public void modifyingNodeRendering(ModelNode node)(Code)(Java Doc)
public void nodeInserted(ModelNode node)(Code)(Java Doc)
public void textInserted(ModelNode node)(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.