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


sun.awt.UNIXToolkit

All known Subclasses:   sun.awt.X11.XToolkit,  sun.awt.motif.MToolkit,
UNIXToolkit
abstract public class UNIXToolkit extends SunToolkit (Code)


Field Summary
final public static  StringFONTCONFIGAAHINT
    
final public static  ObjectGTK_LOCK
    


Method Summary
public static  intgetDatatransferTimeout()
    
protected  RenderingHintsgetDesktopAAHints()
    
public  BufferedImagegetGTKIcon(String filename)
     Returns a BufferedImage which contains the Gtk icon requested.
public  BufferedImagegetStockIcon(int widgetType, String stockId, int iconSize, int direction, String detail)
     Returns a BufferedImage which contains the Gtk stock icon requested.
public  booleanisNativeGTKAvailable()
     Returns true if the native GTK libraries are capable of being loaded and are expected to work properly, false otherwise.
protected  ObjectlazilyLoadDesktopProperty(String name)
    
protected  ObjectlazilyLoadGTKIcon(String longname)
     Load a native Gtk stock icon.
public  booleanloadGTK()
     Loads the GTK libraries, if necessary.
public  voidloadIconCallback(byte[] data, int width, int height, int rowStride, int bps, int channels, boolean alpha)
     This method is used by JNI as a callback from load_stock_icon.
public  voidsync()
    

Field Detail
FONTCONFIGAAHINT
final public static String FONTCONFIGAAHINT(Code)



GTK_LOCK
final public static Object GTK_LOCK(Code)
All calls into GTK should be synchronized on this lock





Method Detail
getDatatransferTimeout
public static int getDatatransferTimeout()(Code)



getDesktopAAHints
protected RenderingHints getDesktopAAHints()(Code)



getGTKIcon
public BufferedImage getGTKIcon(String filename)(Code)
Returns a BufferedImage which contains the Gtk icon requested. If no such icon exists or an error occurs loading the icon the result will be null.
Parameters:
  filename - The icon or null if it was not found or loaded.



getStockIcon
public BufferedImage getStockIcon(int widgetType, String stockId, int iconSize, int direction, String detail)(Code)
Returns a BufferedImage which contains the Gtk stock icon requested. If no such stock icon exists the result will be null.
Parameters:
  widgetType - one of WidgetType values defined in GTKNativeEngine or-1 for system default stock icon.
Parameters:
  stockId - String which defines the stock id of the gtk item.For a complete list reference the API at www.gtk.org for StockItems.
Parameters:
  iconSize - One of the GtkIconSize values defined in GTKConstants
Parameters:
  textDirection - One of the TextDirection values defined inGTKConstants
Parameters:
  detail - Render detail that is passed to the native engine (feelfree to pass null) The stock icon or null if it was not found or loaded.



isNativeGTKAvailable
public boolean isNativeGTKAvailable()(Code)
Returns true if the native GTK libraries are capable of being loaded and are expected to work properly, false otherwise. Note that this method will not leave the native GTK libraries loaded if they haven't already been loaded. This allows, for example, Swing's GTK L&F to test for the presence of native GTK support without leaving the native libraries loaded. To attempt long-term loading of the native GTK libraries, use the loadGTK() method instead.



lazilyLoadDesktopProperty
protected Object lazilyLoadDesktopProperty(String name)(Code)
Overridden to handle GTK icon loading



lazilyLoadGTKIcon
protected Object lazilyLoadGTKIcon(String longname)(Code)
Load a native Gtk stock icon.
Parameters:
  longname - a desktop property name. This contains icon name, sizeand orientation, e.g. "gtk.icon.gtk-add.4.rtl" an Image for the icon, or null if theicon could not be loaded



loadGTK
public boolean loadGTK()(Code)
Loads the GTK libraries, if necessary. The first time this method is called, it will attempt to load the native GTK library. If successful, it leaves the library open and returns true; otherwise, the library is left closed and returns false. On future calls to this method, the status of the first attempt is returned (a simple lightweight boolean check, no native calls required).



loadIconCallback
public void loadIconCallback(byte[] data, int width, int height, int rowStride, int bps, int channels, boolean alpha)(Code)
This method is used by JNI as a callback from load_stock_icon. Image data is passed back to us via this method and loaded into the local BufferedImage and then returned via getStockIcon. Do NOT call this method directly.



sync
public void sync()(Code)



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