Java Doc for BufferedContext.java in  » 6.0-JDK-Modules-sun » java2d » sun » java2d » pipe » 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 sun » java2d » sun.java2d.pipe 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.java2d.pipe.BufferedContext

All known Subclasses:   sun.java2d.opengl.OGLContext,
BufferedContext
public class BufferedContext (Code)
Base context class for managing state in a single-threaded rendering environment. Each state-setting operation (e.g. SET_COLOR) is added to the provided RenderQueue, which will be processed at a later time by a single thread. Note that the RenderQueue lock must be acquired before calling the validate() method (or any other method in this class). See the RenderQueue class comments for a sample usage scenario.


Field Summary
final public static  intNO_CONTEXT_FLAGS
     Indicates that no flags are needed; take all default code paths.
final public static  intSRC_IS_OPAQUE
     Indicates that the source surface (or color value, if it is a simple rendering operation) is opaque (has an alpha value of 1.0).
final public static  intUSE_MASK
     Indicates that the operation uses an alpha mask, which may determine the code path that is used when setting up the current paint state.
protected  RenderBufferbuf
    
protected static  BufferedContextcurrentContext
     This is a reference to the most recently validated BufferedContext.
protected  RenderQueuerq
    

Constructor Summary
protected  BufferedContext(RenderQueue rq)
    

Method Summary
public  voidinvalidateSurfaces()
     Invalidates the surfaces associated with this context.
public  voidvalidate(SurfaceData srcData, SurfaceData dstData, Region clip, Composite comp, AffineTransform xform, Paint paint, SunGraphics2D sg2d, int flags)
     Validates the given parameters against the current state for this context.

Field Detail
NO_CONTEXT_FLAGS
final public static int NO_CONTEXT_FLAGS(Code)
Indicates that no flags are needed; take all default code paths.



SRC_IS_OPAQUE
final public static int SRC_IS_OPAQUE(Code)
Indicates that the source surface (or color value, if it is a simple rendering operation) is opaque (has an alpha value of 1.0). If this flag is present, it allows us to disable blending in certain situations in order to improve performance.



USE_MASK
final public static int USE_MASK(Code)
Indicates that the operation uses an alpha mask, which may determine the code path that is used when setting up the current paint state.



buf
protected RenderBuffer buf(Code)



currentContext
protected static BufferedContext currentContext(Code)
This is a reference to the most recently validated BufferedContext. If this value is null, it means that there is no current context. It is provided here so that validate() only needs to do a quick reference check to see if the BufferedContext passed to that method is the same as the one we've cached here.



rq
protected RenderQueue rq(Code)




Constructor Detail
BufferedContext
protected BufferedContext(RenderQueue rq)(Code)




Method Detail
invalidateSurfaces
public void invalidateSurfaces()(Code)
Invalidates the surfaces associated with this context. This is useful when the context is no longer needed, and we want to break the chain caused by these surface references.



validate
public void validate(SurfaceData srcData, SurfaceData dstData, Region clip, Composite comp, AffineTransform xform, Paint paint, SunGraphics2D sg2d, int flags)(Code)
Validates the given parameters against the current state for this context. If this context is not current, it will be made current for the given source and destination surfaces, and the viewport will be updated. Then each part of the context state (clip, composite, etc.) is checked against the previous value. If the value has changed since the last call to validate(), it will be updated accordingly. Note that the SunGraphics2D parameter is only used for the purposes of validating a (non-null) Paint parameter. In all other cases it is safe to pass a null SunGraphics2D and it will be ignored.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.