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


com.jeta.forms.store.properties.JETAProperty
   com.jeta.forms.store.properties.effects.GradientProperty

GradientProperty
public class GradientProperty extends JETAProperty implements PaintSupport(Code)
A GradientProperty stores the attributes for a LinearGradientPainter. See: com.jeta.forms.gui.effects.LinearGradientPainter
author:
   Jeff Tassin


Field Summary
final public static  intBOTTOM_TOP
    
final public static  intDOWN_LEFT
    
final public static  intDOWN_RIGHT
    
final public static  intLEFT_RIGHT
    
final public static  intRIGHT_LEFT
    
final public static  intTOP_BOTTOM
     Gradient direction constants.
final public static  intUP_LEFT
    
final public static  intUP_RIGHT
    
final public static  intVERSION
    
final static  longserialVersionUID
    

Constructor Summary
public  GradientProperty()
    
public  GradientProperty(ColorProperty start, ColorProperty end, int direction)
    

Method Summary
public  PaintercreatePainter()
     PaintSupport implementation.
public  intgetDirection()
    
public  ColorPropertygetEndColor()
    
public  floatgetMagnitude()
     Returns the value that controls the rate of change from one color to the next.
public  ColorPropertygetStartColor()
    
public  voidread(JETAObjectInput in)
    
public  voidsetDirection(int direction)
    
public  voidsetEndColor(ColorProperty c)
    
public  voidsetMagnitude(float mag)
     Sets the value that controls the rate of change from the start color to the end color.
public  voidsetStartColor(ColorProperty c)
    
public  voidsetValue(Object prop)
    
public  StringtoString()
    
public  voidupdateBean(JETABean jbean)
     Updates the bean.
public  voidwrite(JETAObjectOutput out)
    

Field Detail
BOTTOM_TOP
final public static int BOTTOM_TOP(Code)



DOWN_LEFT
final public static int DOWN_LEFT(Code)



DOWN_RIGHT
final public static int DOWN_RIGHT(Code)



LEFT_RIGHT
final public static int LEFT_RIGHT(Code)



RIGHT_LEFT
final public static int RIGHT_LEFT(Code)



TOP_BOTTOM
final public static int TOP_BOTTOM(Code)
Gradient direction constants.



UP_LEFT
final public static int UP_LEFT(Code)



UP_RIGHT
final public static int UP_RIGHT(Code)



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



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
GradientProperty
public GradientProperty()(Code)
Creates an unitialized GradientProperty instance



GradientProperty
public GradientProperty(ColorProperty start, ColorProperty end, int direction)(Code)
Creates a GradientProperty instance with the specified colors and direction
Parameters:
  start - the start color
Parameters:
  end - the end color
Parameters:
  direction - the direction of the gradient.




Method Detail
createPainter
public Painter createPainter()(Code)
PaintSupport implementation. Creates a painter that renders a linear gradient using the attributes defined by this object.



getDirection
public int getDirection()(Code)
Returns the direction of the gradient: valid values are: TOP_BOTTOM, BOTTOM_TOP, LEFT_RIGHT, RIGHT_LEFT, UP_RIGHT, UP_LEFT, DOWN_RIGHT, DOWN_LEFT



getEndColor
public ColorProperty getEndColor()(Code)
Returns the end color for the gradient the end color



getMagnitude
public float getMagnitude()(Code)
Returns the value that controls the rate of change from one color to the next. The default value is 1.0f



getStartColor
public ColorProperty getStartColor()(Code)
Returns the start color for the gradient the start color



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



setDirection
public void setDirection(int direction)(Code)
Sets the direction of the gradient: valid values are: TOP_BOTTOM, BOTTOM_TOP, LEFT_RIGHT, RIGHT_LEFT, UP_RIGHT, UP_LEFT, DOWN_RIGHT, DOWN_LEFT
Parameters:
  direction - the direction



setEndColor
public void setEndColor(ColorProperty c)(Code)
Sets the end color for the gradient
Parameters:
  c - the end color



setMagnitude
public void setMagnitude(float mag)(Code)
Sets the value that controls the rate of change from the start color to the end color. The default value is 1.0f
Parameters:
  mag - the magnitude.



setStartColor
public void setStartColor(ColorProperty c)(Code)
Sets the start color for the gradient
Parameters:
  c - the start color



setValue
public void setValue(Object prop)(Code)
Sets this property to that of another GradientProperty
Parameters:
  prop - a GradientProperty instance



toString
public String toString()(Code)
a string representation of this proprety



updateBean
public void updateBean(JETABean jbean)(Code)
Updates the bean. Gets the underlying Java bean component associated with this property and if that component implements the Paintable interface, sets the background painter.



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



Fields inherited from com.jeta.forms.store.properties.JETAProperty
final public static int VERSION(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.