Java Doc for Win32GraphicsDevice.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.GraphicsDevice
      sun.awt.Win32GraphicsDevice

Win32GraphicsDevice
public class Win32GraphicsDevice extends GraphicsDevice implements DisplayChangedListener(Code)
This is an implementation of a GraphicsDevice object for a single Win32 screen.
See Also:   GraphicsEnvironment
See Also:   GraphicsConfiguration
version:
   10 Feb 1997


Field Summary
 ColorModelcolorModel
    
 GraphicsConfiguration[]configs
    
 GraphicsConfigurationdefaultConfig
    
 ColorModeldynamicColorModel
    
 booleanoffscreenAccelerationEnabled
    
 intscreen
    

Constructor Summary
public  Win32GraphicsDevice(int screennum)
    

Method Summary
public  voidaddDisplayChangedListener(DisplayChangedListener client)
    
public  voiddisplayChanged()
    
public  intgetAvailableAcceleratedMemory()
     Returns number of bytes available in VRAM on this device.
public  ColorModelgetColorModel()
    
public  GraphicsConfiguration[]getConfigurations()
     Returns all of the graphics configurations associated with this graphics device.
public  D3DContextgetD3DContext()
    
public  GraphicsConfigurationgetDefaultConfiguration()
     Returns the default graphics configuration associated with this graphics device.
protected  intgetDefaultPixID(int screen)
     Returns the PixelFormatID of the default graphics configuration associated with this graphics device, or 0 if PixelFormats calls fail or are disabled.
public synchronized  DisplayModegetDisplayMode()
    
public synchronized  DisplayMode[]getDisplayModes()
    
public  ColorModelgetDynamicColorModel()
    
public  StringgetIDstring()
     Returns the identification string associated with this graphics device.
protected  intgetMaxConfigs(int screen)
     Returns the maximum number of graphics configurations available, or 1 if PixelFormat calls fail or are disabled.
public  intgetScreen()
     Returns the Win32 screen of the device.
public  intgetType()
     Returns the type of the graphics device.
native  voidinitDevice(int screen)
    
 voidinvalidate(int defaultScreen)
     Called from native code when the device was removed.
public  booleanisD3DEnabledOnDevice()
    
public  booleanisDDEnabledOnDevice()
    
public  booleanisDisplayChangeSupported()
    
public  booleanisFullScreenSupported()
     We support the exclusive fullscreen mode in both ddraw and noddraw modes, so we return true unless we're not allowed to use fullscreen mode.
public  booleanisOffscreenAccelerationEnabled()
     Acceleration can be disabled due to capabilities of the display device discovered during ddraw initialization.
native protected  booleanisPixFmtSupported(int index, int screen)
     Returns whether or not the PixelFormat indicated by index is supported.
 booleanisValid()
     Returns whether this is a valid devicie.
public  voidpaletteChanged()
    
public  voidremoveDisplayChangedListener(DisplayChangedListener client)
    
public synchronized  voidsetDisplayMode(DisplayMode dm)
    
public synchronized  voidsetFullScreenWindow(Window w)
    
public  StringtoString()
    

Field Detail
colorModel
ColorModel colorModel(Code)



configs
GraphicsConfiguration[] configs(Code)



defaultConfig
GraphicsConfiguration defaultConfig(Code)



dynamicColorModel
ColorModel dynamicColorModel(Code)



offscreenAccelerationEnabled
boolean offscreenAccelerationEnabled(Code)



screen
int screen(Code)




Constructor Detail
Win32GraphicsDevice
public Win32GraphicsDevice(int screennum)(Code)




Method Detail
addDisplayChangedListener
public void addDisplayChangedListener(DisplayChangedListener client)(Code)



displayChanged
public void displayChanged()(Code)



getAvailableAcceleratedMemory
public int getAvailableAcceleratedMemory()(Code)
Returns number of bytes available in VRAM on this device.



getColorModel
public ColorModel getColorModel()(Code)
Returns the non-dynamic ColorModel associated with this device



getConfigurations
public GraphicsConfiguration[] getConfigurations()(Code)
Returns all of the graphics configurations associated with this graphics device.



getD3DContext
public D3DContext getD3DContext()(Code)



getDefaultConfiguration
public GraphicsConfiguration getDefaultConfiguration()(Code)
Returns the default graphics configuration associated with this graphics device.



getDefaultPixID
protected int getDefaultPixID(int screen)(Code)
Returns the PixelFormatID of the default graphics configuration associated with this graphics device, or 0 if PixelFormats calls fail or are disabled.



getDisplayMode
public synchronized DisplayMode getDisplayMode()(Code)



getDisplayModes
public synchronized DisplayMode[] getDisplayModes()(Code)



getDynamicColorModel
public ColorModel getDynamicColorModel()(Code)
Returns a dynamic ColorModel which is updated when there are any changes (e.g., palette changes) in the device



getIDstring
public String getIDstring()(Code)
Returns the identification string associated with this graphics device.



getMaxConfigs
protected int getMaxConfigs(int screen)(Code)
Returns the maximum number of graphics configurations available, or 1 if PixelFormat calls fail or are disabled. This number is less than or equal to the number of graphics configurations supported.



getScreen
public int getScreen()(Code)
Returns the Win32 screen of the device.



getType
public int getType()(Code)
Returns the type of the graphics device.
See Also:   Win32GraphicsDevice.TYPE_RASTER_SCREEN
See Also:   Win32GraphicsDevice.TYPE_PRINTER
See Also:   Win32GraphicsDevice.TYPE_IMAGE_BUFFER



initDevice
native void initDevice(int screen)(Code)



invalidate
void invalidate(int defaultScreen)(Code)
Called from native code when the device was removed.
Parameters:
  defaultScreen - the current default screen



isD3DEnabledOnDevice
public boolean isD3DEnabledOnDevice()(Code)



isDDEnabledOnDevice
public boolean isDDEnabledOnDevice()(Code)



isDisplayChangeSupported
public boolean isDisplayChangeSupported()(Code)



isFullScreenSupported
public boolean isFullScreenSupported()(Code)
We support the exclusive fullscreen mode in both ddraw and noddraw modes, so we return true unless we're not allowed to use fullscreen mode.



isOffscreenAccelerationEnabled
public boolean isOffscreenAccelerationEnabled()(Code)
Acceleration can be disabled due to capabilities of the display device discovered during ddraw initialization. This is not the same as isDDEnabledOnDevice(), which returns false when ddraw was disabled by the user or had problems initializing.



isPixFmtSupported
native protected boolean isPixFmtSupported(int index, int screen)(Code)
Returns whether or not the PixelFormat indicated by index is supported. Supported PixelFormats support drawing to a Window (PFD_DRAW_TO_WINDOW), support GDI (PFD_SUPPORT_GDI), and in the case of an 8-bit format (cColorBits <= 8) uses indexed colors (iPixelType == PFD_TYPE_COLORINDEX). We use the index 0 to indicate that PixelFormat calls don't work, or are disabled. Do not call this function with an index of 0.
Parameters:
  index - a PixelFormat index



isValid
boolean isValid()(Code)
Returns whether this is a valid devicie. Device can become invalid as a result of device removal event.



paletteChanged
public void paletteChanged()(Code)
Part of the DisplayChangedListener interface: devices do not need to react to this event



removeDisplayChangedListener
public void removeDisplayChangedListener(DisplayChangedListener client)(Code)



setDisplayMode
public synchronized void setDisplayMode(DisplayMode dm)(Code)



setFullScreenWindow
public synchronized void setFullScreenWindow(Window w)(Code)



toString
public String toString()(Code)



Fields inherited from java.awt.GraphicsDevice
final public static int TYPE_IMAGE_BUFFER(Code)(Java Doc)
final public static int TYPE_PRINTER(Code)(Java Doc)
final public static int TYPE_RASTER_SCREEN(Code)(Java Doc)

Methods inherited from java.awt.GraphicsDevice
public int getAvailableAcceleratedMemory()(Code)(Java Doc)
public GraphicsConfiguration getBestConfiguration(GraphicsConfigTemplate gct)(Code)(Java Doc)
abstract public GraphicsConfiguration[] getConfigurations()(Code)(Java Doc)
abstract public GraphicsConfiguration getDefaultConfiguration()(Code)(Java Doc)
public DisplayMode getDisplayMode()(Code)(Java Doc)
public DisplayMode[] getDisplayModes()(Code)(Java Doc)
public Window getFullScreenWindow()(Code)(Java Doc)
abstract public String getIDstring()(Code)(Java Doc)
abstract public int getType()(Code)(Java Doc)
public boolean isDisplayChangeSupported()(Code)(Java Doc)
public boolean isFullScreenSupported()(Code)(Java Doc)
public void setDisplayMode(DisplayMode dm)(Code)(Java Doc)
public void setFullScreenWindow(Window w)(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.