Java Doc for ColorProperty.java in  » Swing-Library » abeille-forms-designer » com » jeta » forms » store » properties » 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 » Swing Library » abeille forms designer » com.jeta.forms.store.properties 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jeta.forms.store.properties.JETAProperty
   com.jeta.forms.store.properties.ColorProperty

ColorProperty
public class ColorProperty extends JETAProperty (Code)
A ColorProperty object defines a 'dynamic' color value for some components in this architecture. A dynamic color is one that depends on the current look and feel. For example, the background for a JButton has a different color for the Windows Look and Feel than it does for the Metal Look and Feel. This is important for effects such as gradients that need to fade out to the current background (which can change if the look and feel changes). The designer allows the user to select a color based on its resource name. This class uses the resource name to get the actual color from the ColorManager.
See Also:   com.jeta.forms.colormgr.ColorManager.getColor(Stringjava.awt.Color)
author:
   Jeff Tassin


Field Summary
final public static  StringCONSTANT_COLOR
    
final public static  intDEFAULT_BRIGHTNESS
    
final public static  StringDEFAULT_COLOR
     This is for those components/borders that define their colors based on parent components or any associated components (in the case of borders).
final public static  floatDEFAULT_FACTOR
    
final public static  StringPROPERTY_ID
    
final public static  intVERSION
    
final static  longserialVersionUID
    

Constructor Summary
public  ColorProperty()
     Creates a ColorProperty instance that specifies a constant, black color.
public  ColorProperty(Color c)
    
public  ColorProperty(String colorKey)
     Creates a dynamic ColorProperty instance with the specified color resource name as defined by the UIManager.

Method Summary
public  Colordarker(Color c, float factor)
     Creates a darker color given a color and a factor.
public  booleanequals(Object object)
     Object equals implementation.
public  intgetBrightness()
    
public  floatgetBrightnessFactor()
    
public  ColorgetColor()
     Returns the color specified by this property.
public  StringgetColorKey()
     the resource name for the color.
public  ColorgetConstantColor()
    
public  booleanisConstant()
    
public  voidread(JETAObjectInput in)
    
public  voidsetBrightness(int ival)
    
public  voidsetBrightnessFactor(float fval)
    
public  voidsetColorKey(String color_key)
    
public  voidsetConstantColor(Color c)
    
public  voidsetValue(Object prop)
     Sets this property to that of another property.
public  voidupdateBean(JETABean jbean)
    
public  voidwrite(JETAObjectOutput out)
    

Field Detail
CONSTANT_COLOR
final public static String CONSTANT_COLOR(Code)
Color key name for a constant color



DEFAULT_BRIGHTNESS
final public static int DEFAULT_BRIGHTNESS(Code)



DEFAULT_COLOR
final public static String DEFAULT_COLOR(Code)
This is for those components/borders that define their colors based on parent components or any associated components (in the case of borders).



DEFAULT_FACTOR
final public static float DEFAULT_FACTOR(Code)
The default brightness factor



PROPERTY_ID
final public static String PROPERTY_ID(Code)
The property name



VERSION
final public static int VERSION(Code)
The version of this class



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
ColorProperty
public ColorProperty()(Code)
Creates a ColorProperty instance that specifies a constant, black color.



ColorProperty
public ColorProperty(Color c)(Code)
Creates a constant ColorProperty instance with the specified color
Parameters:
  c - the color to set.



ColorProperty
public ColorProperty(String colorKey)(Code)
Creates a dynamic ColorProperty instance with the specified color resource name as defined by the UIManager.
Parameters:
  colorKey - the name of the color resource.
See Also:   javax.swing.UIManager.getColor(String)




Method Detail
darker
public Color darker(Color c, float factor)(Code)
Creates a darker color given a color and a factor.
Parameters:
  c - the color to darken
Parameters:
  factor - the brightness factor
See Also:   java.awt.Color.darker



equals
public boolean equals(Object object)(Code)
Object equals implementation.



getBrightness
public int getBrightness()(Code)
Returns the brightness value for this color the brightness value for this color



getBrightnessFactor
public float getBrightnessFactor()(Code)
Returns the brightness factor for this color the brightness factor for this color



getColor
public Color getColor()(Code)
Returns the color specified by this property. If the this property represents a constant color, then the constant color is returned. Otherwise, the color is retrieved from the color manager. Currently, the color manager merely forwards the call to the UIManager. the color specified by this property.



getColorKey
public String getColorKey()(Code)
the resource name for the color. This is the name passed to theColorManager.



getConstantColor
public Color getConstantColor()(Code)



isConstant
public boolean isConstant()(Code)
true if the property represents a constant color



read
public void read(JETAObjectInput in) throws ClassNotFoundException, IOException(Code)
JETAPersistable Implementation



setBrightness
public void setBrightness(int ival)(Code)



setBrightnessFactor
public void setBrightnessFactor(float fval)(Code)



setColorKey
public void setColorKey(String color_key)(Code)



setConstantColor
public void setConstantColor(Color c)(Code)



setValue
public void setValue(Object prop)(Code)
Sets this property to that of another property.



updateBean
public void updateBean(JETABean jbean)(Code)
Updates the bean



write
public void write(JETAObjectOutput out) throws IOException(Code)
JETAPersistable Implementation



Fields inherited from com.jeta.forms.store.properties.JETAProperty
final public static int VERSION(Code)(Java Doc)
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from com.jeta.forms.store.properties.JETAProperty
public boolean equals(Object object)(Code)(Java Doc)
public String getName()(Code)(Java Doc)
protected static boolean isCollectionsEqual(Collection c1, Collection c2)(Code)(Java Doc)
protected static boolean isEqual(Object o1, Object o2)(Code)(Java Doc)
public boolean isPreferred()(Code)(Java Doc)
public boolean isTransient()(Code)(Java Doc)
public void postInitialize(FormPanel panel, JETABean jbean)(Code)(Java Doc)
public void read(JETAObjectInput in) throws ClassNotFoundException, IOException(Code)(Java Doc)
public void setPreferred(boolean pref)(Code)(Java Doc)
abstract public void setValue(Object obj)(Code)(Java Doc)
abstract public void updateBean(JETABean jbean)(Code)(Java Doc)
public void write(JETAObjectOutput out) throws IOException(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.