Java Doc for Win32GraphicsConfig.java in  » 6.0-JDK-Platform » windows » sun » awt » 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 Platform » windows » sun.awt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.GraphicsConfiguration
      sun.awt.Win32GraphicsConfig

All known Subclasses:   sun.java2d.opengl.WGLGraphicsConfig,
Win32GraphicsConfig
public class Win32GraphicsConfig extends GraphicsConfiguration implements DisplayChangedListener,SurfaceManager.ProxiedGraphicsConfig(Code)
This is an implementation of a GraphicsConfiguration object for a single Win32 visual.
See Also:   GraphicsEnvironment
See Also:   GraphicsDevice
version:
   10 Feb 1997


Field Summary
protected  Win32GraphicsDevicescreen
    
protected  RenderLoopssolidloops
    
static  ColorModeltranslucentCM
    
protected  intvisual
    

Constructor Summary
public  Win32GraphicsConfig(GraphicsDevice device, int visualnum)
    

Method Summary
public  voidassertOperationSupported(Component target, int numBuffers, BufferCapabilities caps)
     Checks that the requested configuration is natively supported; if not, an AWTException is thrown.
public  ImagecreateAcceleratedImage(Component target, int width, int height)
     Creates a new hidden-acceleration image of the given width and height that is associated with the target Component.
public  VolatileImagecreateBackBuffer(WComponentPeer peer)
     Creates a backbuffer for the given peer and returns the image wrapper.
public  SurfaceDatacreateSurfaceData(WComponentPeer peer, int numBackBuffers)
     Creates a new SurfaceData that will be associated with the given WComponentPeer.
public synchronized  voiddisplayChanged()
    
public  voidflip(WComponentPeer peer, Component target, VolatileImage backBuffer, BufferCapabilities.FlipContents flipAction)
     Performs the native flip operation for the given target Component.
public  RectanglegetBounds()
    
public  BufferCapabilitiesgetBufferCapabilities()
    
public synchronized  ColorModelgetColorModel()
     Returns the color model associated with this configuration.
public  ColorModelgetColorModel(int transparency)
     Returns the color model associated with this configuration that supports the specified transparency.
public static  Win32GraphicsConfiggetConfig(Win32GraphicsDevice device, int pixFormatID)
     Returns a Win32GraphicsConfiguration object with the given device and PixelFormat.
public  AffineTransformgetDefaultTransform()
     Returns the default Transform for this configuration.
public  GraphicsDevicegetDevice()
     Return the graphics device associated with this configuration.
public  ColorModelgetDeviceColorModel()
     Returns a new color model for this configuration.
public  ImageCapabilitiesgetImageCapabilities()
    
public  AffineTransformgetNormalizingTransform()
     Returns a Transform that can be composed with the default Transform of a Graphics2D so that 72 units in user space will equal 1 inch in device space. Given a Graphics2D, g, one can reset the transformation to create such a mapping by using the following pseudocode:
 GraphicsConfiguration gc = g.getGraphicsConfiguration();
 g.setTransform(gc.getDefaultTransform());
 g.transform(gc.getNormalizingTransform());
 
Note that sometimes this Transform will be identity (e.g.
public  ObjectgetProxyKey()
    
public synchronized  RenderLoopsgetSolidLoops(SurfaceType stype)
    
public static  ColorModelgetTranslucentColorModel()
    
public  intgetVisual()
    
public  voidpaletteChanged()
    
public  StringtoString()
    

Field Detail
screen
protected Win32GraphicsDevice screen(Code)



solidloops
protected RenderLoops solidloops(Code)



translucentCM
static ColorModel translucentCM(Code)



visual
protected int visual(Code)




Constructor Detail
Win32GraphicsConfig
public Win32GraphicsConfig(GraphicsDevice device, int visualnum)(Code)




Method Detail
assertOperationSupported
public void assertOperationSupported(Component target, int numBuffers, BufferCapabilities caps) throws AWTException(Code)
Checks that the requested configuration is natively supported; if not, an AWTException is thrown.



createAcceleratedImage
public Image createAcceleratedImage(Component target, int width, int height)(Code)
Creates a new hidden-acceleration image of the given width and height that is associated with the target Component.



createBackBuffer
public VolatileImage createBackBuffer(WComponentPeer peer)(Code)
Creates a backbuffer for the given peer and returns the image wrapper.



createSurfaceData
public SurfaceData createSurfaceData(WComponentPeer peer, int numBackBuffers)(Code)
Creates a new SurfaceData that will be associated with the given WComponentPeer.



displayChanged
public synchronized void displayChanged()(Code)



flip
public void flip(WComponentPeer peer, Component target, VolatileImage backBuffer, BufferCapabilities.FlipContents flipAction)(Code)
Performs the native flip operation for the given target Component.



getBounds
public Rectangle getBounds()(Code)



getBufferCapabilities
public BufferCapabilities getBufferCapabilities()(Code)



getColorModel
public synchronized ColorModel getColorModel()(Code)
Returns the color model associated with this configuration.



getColorModel
public ColorModel getColorModel(int transparency)(Code)
Returns the color model associated with this configuration that supports the specified transparency.



getConfig
public static Win32GraphicsConfig getConfig(Win32GraphicsDevice device, int pixFormatID)(Code)
Returns a Win32GraphicsConfiguration object with the given device and PixelFormat. Note that this method does NOT check to ensure that the returned Win32GraphicsConfig will correctly support rendering into a Java window. This method is provided so that client code can do its own checking as to the appropriateness of a particular PixelFormat. Safer access to Win32GraphicsConfigurations is provided by Win32GraphicsDevice.getConfigurations().



getDefaultTransform
public AffineTransform getDefaultTransform()(Code)
Returns the default Transform for this configuration. This Transform is typically the Identity transform for most normal screens. Device coordinates for screen and printer devices will have the origin in the upper left-hand corner of the target region of the device, with X coordinates increasing to the right and Y coordinates increasing downwards. For image buffers, this Transform will be the Identity transform.



getDevice
public GraphicsDevice getDevice()(Code)
Return the graphics device associated with this configuration.



getDeviceColorModel
public ColorModel getDeviceColorModel()(Code)
Returns a new color model for this configuration. This call is only used internally, by images and components that are associated with the graphics device. When attributes of that device change (for example, when the device palette is updated), then this device-based color model will be updated internally to reflect the new situation.



getImageCapabilities
public ImageCapabilities getImageCapabilities()(Code)



getNormalizingTransform
public AffineTransform getNormalizingTransform()(Code)
Returns a Transform that can be composed with the default Transform of a Graphics2D so that 72 units in user space will equal 1 inch in device space. Given a Graphics2D, g, one can reset the transformation to create such a mapping by using the following pseudocode:
 GraphicsConfiguration gc = g.getGraphicsConfiguration();
 g.setTransform(gc.getDefaultTransform());
 g.transform(gc.getNormalizingTransform());
 
Note that sometimes this Transform will be identity (e.g. for printers or metafile output) and that this Transform is only as accurate as the information supplied by the underlying system. For image buffers, this Transform will be the Identity transform, since there is no valid distance measurement.



getProxyKey
public Object getProxyKey()(Code)



getSolidLoops
public synchronized RenderLoops getSolidLoops(SurfaceType stype)(Code)



getTranslucentColorModel
public static ColorModel getTranslucentColorModel()(Code)



getVisual
public int getVisual()(Code)
Return the PixelFormatIndex this GraphicsConfig uses



paletteChanged
public void paletteChanged()(Code)



toString
public String toString()(Code)



Methods inherited from java.awt.GraphicsConfiguration
public BufferedImage createCompatibleImage(int width, int height)(Code)(Java Doc)
public BufferedImage createCompatibleImage(int width, int height, int transparency)(Code)(Java Doc)
public VolatileImage createCompatibleVolatileImage(int width, int height)(Code)(Java Doc)
public VolatileImage createCompatibleVolatileImage(int width, int height, int transparency)(Code)(Java Doc)
public VolatileImage createCompatibleVolatileImage(int width, int height, ImageCapabilities caps) throws AWTException(Code)(Java Doc)
public VolatileImage createCompatibleVolatileImage(int width, int height, ImageCapabilities caps, int transparency) throws AWTException(Code)(Java Doc)
abstract public Rectangle getBounds()(Code)(Java Doc)
public BufferCapabilities getBufferCapabilities()(Code)(Java Doc)
abstract public ColorModel getColorModel()(Code)(Java Doc)
abstract public ColorModel getColorModel(int transparency)(Code)(Java Doc)
abstract public AffineTransform getDefaultTransform()(Code)(Java Doc)
abstract public GraphicsDevice getDevice()(Code)(Java Doc)
public ImageCapabilities getImageCapabilities()(Code)(Java Doc)
abstract public AffineTransform getNormalizingTransform()(Code)(Java Doc)

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.