Java Doc for WingToolkit.java in  » Web-Framework » wingS » com » javujavu » javux » wings » 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 » Web Framework » wingS » com.javujavu.javux.wings 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.javujavu.javux.wings.WingToolkit

All known Subclasses:   com.javujavu.javux.wings.WingToolkit12,
WingToolkit
public class WingToolkit (Code)
A collection of various utility methods used by WingS components. This class provides Java version dependent methods like mouse wheel, text antialiasing and so on. It checks Java version and initialize appropriate derived class eg WingToolkit12 for Java 1.2
This is one of the core WingS classes required by all the components

This class is thread safe.


Field Summary
final protected static  intBUFFER_REUSE
    


Method Summary
public  voidaddHierarchyListener(WingComponent c)
    
protected  voidaddWheelListener(WingComponent src, WingComponent target)
    
public static  DimensioncalcLabelSize(WingImage imgIcon, String text, WingFont font, Insets margin, int gap, WingComponent c)
    
public  intcharsWidth(WingFont font, char[] data, int offset, int length)
    
protected  voidclrComposite(Graphics g, Object composite)
    
public  ColorcreateColor(int argb)
    
protected  WindowcreatePopup(WingComponent origin, WingComponent content, boolean focusableWindow)
    
public static  voiddrawBackground(Graphics g, int x, int y, int width, int height, Style style, Component c)
    
public static  voiddrawLabel(Graphics g, int x, int y, int width, int height, WingImage imgIcon, String text, WingFont font, Color color, Color focus, Insets margin, int gap, int alignment, int textPosition, WingComponent c)
    
public  booleandrawSmoothImage(Graphics g, WingImage image, int x, int y, int w, int h, ImageObserver o)
    
protected  ImagegetBuffer(Component c, int width, int height)
    
public static  voidhidePopup(Container handle)
    
public static  voidintersection(Rectangle dest, Rectangle with)
    
protected  ObjectmulComposite(Graphics g, int alpha)
    
public static  voidpaintBuffered(Component comp, Graphics g)
    
protected synchronized  voidpaintBuffered(Component comp, Graphics g, Rectangle clipBounds, Rectangle bufRect)
    
protected  voidpaintBuffered(Component comp, Graphics g, Rectangle clipBounds, Rectangle bufRect, Image buf)
    
public static  voidpaintContainer(Container parent, Graphics g)
    
public  voidrequestFocusInWindow(Container c)
    
public  voidsetTextAntialias(Graphics g, boolean antialias)
    
public static  ContainershowPopup(WingComponent origin, int pivotX, int pivotY, int pivotWidth, int pivotHeight, int direction, int minWidth, int minHeight, WingComponent content, Dimension minLightweightSize, boolean enableLightweight, boolean enableHeavyweight, boolean forceLightweight, boolean focusableWindow)
    
public  intstringWidth(WingFont font, String s)
    
public static  WingToolkitthe()
    

Field Detail
BUFFER_REUSE
final protected static int BUFFER_REUSE(Code)





Method Detail
addHierarchyListener
public void addHierarchyListener(WingComponent c)(Code)



addWheelListener
protected void addWheelListener(WingComponent src, WingComponent target)(Code)



calcLabelSize
public static Dimension calcLabelSize(WingImage imgIcon, String text, WingFont font, Insets margin, int gap, WingComponent c)(Code)



charsWidth
public int charsWidth(WingFont font, char[] data, int offset, int length)(Code)



clrComposite
protected void clrComposite(Graphics g, Object composite)(Code)



createColor
public Color createColor(int argb)(Code)



createPopup
protected Window createPopup(WingComponent origin, WingComponent content, boolean focusableWindow)(Code)



drawBackground
public static void drawBackground(Graphics g, int x, int y, int width, int height, Style style, Component c)(Code)



drawLabel
public static void drawLabel(Graphics g, int x, int y, int width, int height, WingImage imgIcon, String text, WingFont font, Color color, Color focus, Insets margin, int gap, int alignment, int textPosition, WingComponent c)(Code)



drawSmoothImage
public boolean drawSmoothImage(Graphics g, WingImage image, int x, int y, int w, int h, ImageObserver o)(Code)



getBuffer
protected Image getBuffer(Component c, int width, int height)(Code)



hidePopup
public static void hidePopup(Container handle)(Code)



intersection
public static void intersection(Rectangle dest, Rectangle with)(Code)



mulComposite
protected Object mulComposite(Graphics g, int alpha)(Code)



paintBuffered
public static void paintBuffered(Component comp, Graphics g)(Code)
Paints component using double buffering
Parameters:
  comp - component
Parameters:
  g - graphics



paintBuffered
protected synchronized void paintBuffered(Component comp, Graphics g, Rectangle clipBounds, Rectangle bufRect)(Code)



paintBuffered
protected void paintBuffered(Component comp, Graphics g, Rectangle clipBounds, Rectangle bufRect, Image buf)(Code)



paintContainer
public static void paintContainer(Container parent, Graphics g)(Code)
Paints container childs
Parameters:
  parent - container
Parameters:
  g - graphics



requestFocusInWindow
public void requestFocusInWindow(Container c)(Code)



setTextAntialias
public void setTextAntialias(Graphics g, boolean antialias)(Code)



showPopup
public static Container showPopup(WingComponent origin, int pivotX, int pivotY, int pivotWidth, int pivotHeight, int direction, int minWidth, int minHeight, WingComponent content, Dimension minLightweightSize, boolean enableLightweight, boolean enableHeavyweight, boolean forceLightweight, boolean focusableWindow)(Code)

Parameters:
  origin - any component
Parameters:
  pivotX -
Parameters:
  pivotY -
Parameters:
  pivotWidth -
Parameters:
  pivotHeight -
Parameters:
  direction -
Parameters:
  minWidth -
Parameters:
  minHeight -
Parameters:
  content - component
Parameters:
  minLightweightSize -
Parameters:
  enableLightweight -
Parameters:
  enableHeavyweight -
Parameters:
  forceLightweight -
Parameters:
  focusableWindow - instance of Window for heavy popup,instance of WingComponent for light, or null



stringWidth
public int stringWidth(WingFont font, String s)(Code)



the
public static WingToolkit the()(Code)



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.