Java Doc for XMLSynthStyle.java in  » Apache-Harmony-Java-SE » javax-package » javax » swing » plaf » synth » 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 » Apache Harmony Java SE » javax package » javax.swing.plaf.synth 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.swing.plaf.synth.SynthStyle
      javax.swing.plaf.synth.XMLSynthStyle

XMLSynthStyle
class XMLSynthStyle extends SynthStyle implements Cloneable(Code)
XMLSynthStyle class represents SynthStyle, generated from XMLSynthParser. The setters used in parser to configure style. The getters used in UI to draw the component.




Method Summary
 voidaddColor(Color c, int state, ColorType type)
    
 voidaddFont(Font f, int state)
    
 voidaddIcon(Icon icon, int SynthState, String key)
    
 voidaddPainter(SynthPainter p, int state, String method, int direction)
     add painter to paintersManager.
protected  Objectclone()
    
public  Objectget(SynthContext context, Object key)
    
protected  ColorgetColorForState(SynthContext context, ColorType type)
     Should note that RI's behavior depends on the order, described in the xml file (for example either state=ENABLED before state=FOCUSED or after) and the (unspecified) order of UI's state verification (for example, if(ButtonModel.isFocused) before Button.isEnabled in SynthButtonUI).
protected  FontgetFontForState(SynthContext context)
    
public  SynthGraphicsUtilsgetGraphicsUtils(SynthContext context)
     According to spec, graphicsUitils stated for style - not for context.
public  IcongetIcon(SynthContext context, Object key)
    
public  InsetsgetInsets(SynthContext context, Insets modified)
    
public  SynthPaintergetPainter(SynthContext context)
    
public  booleanisOpaque(SynthContext context)
    
 voidsetGraphicsUtils(SynthGraphicsUtils proposed)
    
 voidsetInsets(Insets insets)
    
 voidsetOpaque(boolean isOpaque)
    
 voidsetProperty(String key, Object value)
    



Method Detail
addColor
void addColor(Color c, int state, ColorType type)(Code)
Method used in parser only



addFont
void addFont(Font f, int state)(Code)
Method used in parser only



addIcon
void addIcon(Icon icon, int SynthState, String key)(Code)



addPainter
void addPainter(SynthPainter p, int state, String method, int direction)(Code)
add painter to paintersManager. Method used in parser only



clone
protected Object clone() throws CloneNotSupportedException(Code)



get
public Object get(SynthContext context, Object key)(Code)



getColorForState
protected Color getColorForState(SynthContext context, ColorType type)(Code)
Should note that RI's behavior depends on the order, described in the xml file (for example either state=ENABLED before state=FOCUSED or after) and the (unspecified) order of UI's state verification (for example, if(ButtonModel.isFocused) before Button.isEnabled in SynthButtonUI). I've construct the getColorForState, getFontForState and PainterManager.findPainter methods according to the RI's black box testing (although, the RI's behavior seems incorrect for me) Anyway, if you will to deal with using coloring, fonts or painters order you should see the following: UI: getComponentState method, XMLSynthParser: processColorElement, processFontElement, processPainterElement, processImagePainterElement (generating the lists), PainterManager(for painters) and this class



getFontForState
protected Font getFontForState(SynthContext context)(Code)



getGraphicsUtils
public SynthGraphicsUtils getGraphicsUtils(SynthContext context)(Code)
According to spec, graphicsUitils stated for style - not for context. That's why context is unused.



getIcon
public Icon getIcon(SynthContext context, Object key)(Code)



getInsets
public Insets getInsets(SynthContext context, Insets modified)(Code)



getPainter
public SynthPainter getPainter(SynthContext context)(Code)



isOpaque
public boolean isOpaque(SynthContext context)(Code)



setGraphicsUtils
void setGraphicsUtils(SynthGraphicsUtils proposed)(Code)
Method used in parser only



setInsets
void setInsets(Insets insets)(Code)
Method used in parser only



setOpaque
void setOpaque(boolean isOpaque)(Code)
Method used in parser only



setProperty
void setProperty(String key, Object value)(Code)
Method used in parser only



Fields inherited from javax.swing.plaf.synth.SynthStyle
final static SynthStyle NULL_STYLE(Code)(Java Doc)

Methods inherited from javax.swing.plaf.synth.SynthStyle
public Object get(SynthContext context, Object key)(Code)(Java Doc)
public boolean getBoolean(SynthContext context, Object key, boolean defaultValue)(Code)(Java Doc)
public Color getColor(SynthContext context, ColorType type)(Code)(Java Doc)
abstract protected Color getColorForState(SynthContext context, ColorType type)(Code)(Java Doc)
public Font getFont(SynthContext context)(Code)(Java Doc)
abstract protected Font getFontForState(SynthContext context)(Code)(Java Doc)
public SynthGraphicsUtils getGraphicsUtils(SynthContext context)(Code)(Java Doc)
public Icon getIcon(SynthContext context, Object key)(Code)(Java Doc)
public Insets getInsets(SynthContext context, Insets modified)(Code)(Java Doc)
public int getInt(SynthContext context, Object key, int defaultValue)(Code)(Java Doc)
public SynthPainter getPainter(SynthContext context)(Code)(Java Doc)
public String getString(SynthContext context, Object key, String defaultValue)(Code)(Java Doc)
public void installDefaults(SynthContext context)(Code)(Java Doc)
public boolean isOpaque(SynthContext context)(Code)(Java Doc)
public void uninstallDefaults(SynthContext context)(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.