Java Doc for ESBResourceManager.java in  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » ui » util » resource » 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 » ESB » cbesb 1.2 » com.bostechcorp.cbesb.ui.util.resource 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.bostechcorp.cbesb.ui.util.resource.SWTResourceManager
      com.bostechcorp.cbesb.ui.util.resource.ESBResourceManager

ESBResourceManager
public class ESBResourceManager extends SWTResourceManager (Code)
Utility class for managing OS resources associated with SWT/JFace controls such as colors, fonts, images, etc. !!! IMPORTANT !!! Application code must explicitly invoke the dispose() method to release the operating system resources managed by cached objects when those objects and OS resources are no longer needed (e.g. on application shutdown) This class may be freely distributed as part of any application or plugin.

Copyright (c) 2003 - 2005, Instantiations, Inc.
All Rights Reserved
author:
   scheglov_ke
author:
   Dan Rubel





Method Summary
public static  voiddispose()
     Dispose of cached objects and their underlying OS resources.
public static  voiddisposeImages()
    
public static  ImagegetImage(ImageDescriptor descriptor)
    
public static  ImageDescriptorgetImageDescriptor(Class clazz, String path)
    
public static  ImageDescriptorgetImageDescriptor(String path)
    
public static  ImagegetPluginImage(Object plugin, String name)
    
public static  ImageDescriptorgetPluginImageDescriptor(Object plugin, String name)
    



Method Detail
dispose
public static void dispose()(Code)
Dispose of cached objects and their underlying OS resources. This should only be called when the cached objects are no longer needed (e.g. on application shutdown)



disposeImages
public static void disposeImages()(Code)
Dispose all of the cached images



getImage
public static Image getImage(ImageDescriptor descriptor)(Code)
Returns an image based on the specified image descriptor
Parameters:
  descriptor - ImageDescriptor The image descriptor for the image Image The image based on the specified image descriptor



getImageDescriptor
public static ImageDescriptor getImageDescriptor(Class clazz, String path)(Code)
Returns an image descriptor stored in the file at the specified path relative to the specified class
Parameters:
  clazz - Class The class relative to which to find the image descriptor
Parameters:
  path - String The path to the image file ImageDescriptor The image descriptor stored in the file at thespecified path



getImageDescriptor
public static ImageDescriptor getImageDescriptor(String path)(Code)
Returns an image descriptor stored in the file at the specified path
Parameters:
  path - String The path to the image file ImageDescriptor The image descriptor stored in the file at thespecified path



getPluginImage
public static Image getPluginImage(Object plugin, String name)(Code)
Retuns an image based on a plugin and file path
Parameters:
  plugin - Object The plugin containing the image
Parameters:
  name - String The path to th eimage within the plugin Image The image stored in the file at the specified path



getPluginImageDescriptor
public static ImageDescriptor getPluginImageDescriptor(Object plugin, String name)(Code)
Retuns an image descriptor based on a plugin and file path
Parameters:
  plugin - Object The plugin containing the image
Parameters:
  name - String The path to th eimage within the plugin ImageDescriptor The image descriptor stored in the file at thespecified path



Fields inherited from com.bostechcorp.cbesb.ui.util.resource.SWTResourceManager
final public static int BOTTOM_LEFT(Code)(Java Doc)
final public static int BOTTOM_RIGHT(Code)(Java Doc)
final public static int TOP_LEFT(Code)(Java Doc)
final public static int TOP_RIGHT(Code)(Java Doc)

Methods inherited from com.bostechcorp.cbesb.ui.util.resource.SWTResourceManager
public static Image decorateImage(Image baseImage, Image decorator)(Code)(Java Doc)
public static Image decorateImage(Image baseImage, Image decorator, int corner)(Code)(Java Doc)
public static void dispose()(Code)(Java Doc)
public static void disposeColors()(Code)(Java Doc)
public static void disposeCursors()(Code)(Java Doc)
public static void disposeFonts()(Code)(Java Doc)
public static void disposeImages()(Code)(Java Doc)
public static void disposeImages(String section)(Code)(Java Doc)
public static void fixCoolBarSize(CoolBar bar)(Code)(Java Doc)
public static Font getBoldFont(Font baseFont)(Code)(Java Doc)
public static Color getColor(int systemColorID)(Code)(Java Doc)
public static Color getColor(int r, int g, int b)(Code)(Java Doc)
public static Color getColor(RGB rgb)(Code)(Java Doc)
public static Cursor getCursor(int id)(Code)(Java Doc)
public static Font getFont(String name, int height, int style)(Code)(Java Doc)
public static Font getFont(String name, int size, int style, boolean strikeout, boolean underline)(Code)(Java Doc)
protected static Image getImage(InputStream is)(Code)(Java Doc)
public static Image getImage(String path)(Code)(Java Doc)
public static Image getImage(String section, String path)(Code)(Java Doc)
public static Image getImage(Class clazz, String path)(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.