Java Doc for Object2DProperties.java in  » Chart » Chart2D_1.9.6k » net » sourceforge » chart2d » 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 » Chart » Chart2D_1.9.6k » net.sourceforge.chart2d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.chart2d.Properties
      net.sourceforge.chart2d.Object2DProperties

Object2DProperties
final public class Object2DProperties extends Properties (Code)
A data structure for holding the properties common to all Object2D objects. A Object2D object is one with an encolosing area and title. Pass this to any number of Object2D objects.


Field Summary
final public static  intBOTTOM
     Signifies bottom.
final public static  intLEFT
     Signifies left.
final public static  intNONE
     Signifies none.
final public static  ColorOBJECT_BACKGROUND_COLOR_DEFAULT
     The default is new Color (215, 215, 215).
final public static  booleanOBJECT_BACKGROUND_EXISTENCE_DEFAULT
     The default is true.
final public static  intOBJECT_BACKGROUND_LIGHT_SOURCE_DEFAULT
     The default is TOP.
final public static  ColorOBJECT_BORDER_COLOR_DEFAULT
     The default is Color.black.
final public static  booleanOBJECT_BORDER_EXISTENCE_DEFAULT
     The default is true.
final public static  intOBJECT_BORDER_THICKNESS_MODEL_DEFAULT
     The default is 2.
final public static  booleanOBJECT_GAP_EXISTENCE_DEFAULT
     The default is true.
final public static  intOBJECT_GAP_THICKNESS_MODEL_DEFAULT
     The default is 5.
final public static  booleanOBJECT_MAGNIFY_WHEN_RESIZE_DEFAULT
     The default is true.
final public static  booleanOBJECT_TITLE_BETWEEN_REST_GAP_EXISTENCE_DEFAULT
     The default is true.
final public static  intOBJECT_TITLE_BETWEEN_REST_GAP_THICKNESS_MODEL_DEFAULT
     The default is 3.
final public static  booleanOBJECT_TITLE_EXISTENCE_DEFAULT
     The default is true.
final public static  ColorOBJECT_TITLE_FONT_COLOR_DEFAULT
     The default is Color.black.
final public static  StringOBJECT_TITLE_FONT_NAME_DEFAULT
     The default is "SansSerif".
final public static  intOBJECT_TITLE_FONT_POINT_MODEL_DEFAULT
     The default is 12.
final public static  intOBJECT_TITLE_FONT_STYLE_DEFAULT
     The default is Font.PLAIN.
final public static  StringOBJECT_TITLE_TEXT_DEFAULT
     The default is "".
final public static  intRIGHT
     Signifies right.
final public static  intTOP
     Signifies top.

Constructor Summary
public  Object2DProperties()
     Creates a Object2DProperties object with the documented default values.
public  Object2DProperties(Object2DProperties object2DProps)
     Creates a Object2DProperties object with property values copied from another object.

Method Summary
final  voidaddObject2D(Object2D object2D)
     Adds an Object2D to the set of objects using these properties.
final  booleangetObject2DNeedsUpdate(Object2D object2D)
     Gets whether this object needs to be updated with new properties.
Parameters:
  object2D - The object that may need to be updated.
final public  ColorgetObjectBackgroundColor()
     Gets the color of the background for the object.
final public  booleangetObjectBackgroundExistence()
     Gets whether the object will have a painted background or not. If not, then the background of the content pane to which the object was added will show through which by default is gray, or if the object was not added to a content pane but only a BufferedImage of the object is obtained, then the background will be the default background of BufferedImage which is black.
final public  intgetObjectBackgroundLightSource()
     Gets the light source of the object's background. If there is a light source, the side of the source will be one shade brighter than the specified background color.
final public  ColorgetObjectBorderColor()
     Gets the color of the object's border.
final public  booleangetObjectBorderExistence()
     Gets whether a border around the object will exist.
final public  intgetObjectBorderThicknessModel()
     Gets the thickness of the border for the model size of the object.
final public  booleangetObjectGapExistence()
     Gets whether a gap between the border or edge of the object and the object's interior components exists.
final public  intgetObjectGapThicknessModel()
     Gets the thickness of the object's gap for the model size of the object.
final public  booleangetObjectMagnifyWhenResize()
     Gets whether a object's components will grow or shrink as the size of the space allocated to the object grows or shrinks.
final public  booleangetObjectTitleBetweenRestGapExistence()
     Gets whether a gap below the title and the rest of the object's components exists.
final public  intgetObjectTitleBetweenRestGapThicknessModel()
     Gets the thickness of the gap below the title and the rest of the object's components for the object's model size.
final public  booleangetObjectTitleExistence()
     Gets whether the object is to have a title.
final public  ColorgetObjectTitleFontColor()
     Gets the color of the font for the object's title.
final public  StringgetObjectTitleFontName()
     Gets the name of the font for the object's title.
final public  intgetObjectTitleFontPointModel()
     Gets the point of the font of the title for the object at its model size.
final public  intgetObjectTitleFontStyle()
     Gets the style of the font for the object's title.
final public  StringgetObjectTitleText()
     Gets the text for the object's title.
final  voidremoveObject2D(Object2D object2D)
     Removes a Object2D from the set of objects using these properties.
final public  voidsetObject2DProperties(Object2DProperties object2DProps)
     Sets all properties to be the values of another Object2DProperties object.
final public  voidsetObject2DPropertiesToDefaults()
     Sets all properties to their default values.
final public  voidsetObjectBackgroundColor(Color color)
     Sets the color of the background for the object.
final public  voidsetObjectBackgroundExistence(boolean existence)
     Sets whether the object will have a painted background or not. If not, then the background of the content pane to which the object was added will show through which by default is gray, or if the object was not added to a content pane but only a BufferedImage of the object is obtained, then the background will be the default background of BufferedImage which is black.
final public  voidsetObjectBackgroundLightSource(int source)
     Sets the light source of the object's background. If there is a light source, the side of the source will be one shade brighter than the specified background color.
final public  voidsetObjectBorderColor(Color color)
     Sets the color of the object's border.
final public  voidsetObjectBorderExistence(boolean existence)
     Sets whether a border around the object will exist.
final public  voidsetObjectBorderThicknessModel(int thickness)
     Sets the thickness of the border for the model size of the object.
final public  voidsetObjectGapExistence(boolean existence)
     Sets whether a gap between the border or edge of the object and the object's interior components exists.
final public  voidsetObjectGapThicknessModel(int thickness)
     Sets the thickness of the object's gap for the model size of the object.
final public  voidsetObjectMagnifyWhenResize(boolean magnify)
     Sets whether a object's components will grow or shrink as the size of the space allocated to the object grows or shrinks. The Object's preferred size will be the model size (i.e.
final public  voidsetObjectTitleBetweenRestGapExistence(boolean existence)
     Sets whether a gap below the title and the rest of the object's components exists.
final public  voidsetObjectTitleBetweenRestGapThicknessModel(int thickness)
     Sets the thickness of the gap below the title and the rest of the object's components for the object's model size.
final public  voidsetObjectTitleExistence(boolean existence)
     Sets whether the object is to have a title.
final public  voidsetObjectTitleFontColor(Color color)
     Sets the color of the font for the object's title.
final public  voidsetObjectTitleFontName(String name)
     Sets the name of the font for the object's title.
final public  voidsetObjectTitleFontPointModel(int point)
     Sets the point of the font of the title for the object at its model size.
final public  voidsetObjectTitleFontStyle(int style)
     Sets the style of the font for the object's title.
final public  voidsetObjectTitleText(String text)
     Sets the text for the object's title.
final  voidupdateObject2D(Object2D object2D)
     Updates the properties of this Object2D.
final  booleanvalidate(boolean debug)
     Validates the properties of this object. If debug is true then prints a messages indicating whether each property is valid. Returns true if all the properties were valid and false otherwise.
Parameters:
  debug - If true then will print status messages.

Field Detail
BOTTOM
final public static int BOTTOM(Code)
Signifies bottom.



LEFT
final public static int LEFT(Code)
Signifies left.



NONE
final public static int NONE(Code)
Signifies none.



OBJECT_BACKGROUND_COLOR_DEFAULT
final public static Color OBJECT_BACKGROUND_COLOR_DEFAULT(Code)
The default is new Color (215, 215, 215).



OBJECT_BACKGROUND_EXISTENCE_DEFAULT
final public static boolean OBJECT_BACKGROUND_EXISTENCE_DEFAULT(Code)
The default is true.



OBJECT_BACKGROUND_LIGHT_SOURCE_DEFAULT
final public static int OBJECT_BACKGROUND_LIGHT_SOURCE_DEFAULT(Code)
The default is TOP.



OBJECT_BORDER_COLOR_DEFAULT
final public static Color OBJECT_BORDER_COLOR_DEFAULT(Code)
The default is Color.black.



OBJECT_BORDER_EXISTENCE_DEFAULT
final public static boolean OBJECT_BORDER_EXISTENCE_DEFAULT(Code)
The default is true.



OBJECT_BORDER_THICKNESS_MODEL_DEFAULT
final public static int OBJECT_BORDER_THICKNESS_MODEL_DEFAULT(Code)
The default is 2.



OBJECT_GAP_EXISTENCE_DEFAULT
final public static boolean OBJECT_GAP_EXISTENCE_DEFAULT(Code)
The default is true.



OBJECT_GAP_THICKNESS_MODEL_DEFAULT
final public static int OBJECT_GAP_THICKNESS_MODEL_DEFAULT(Code)
The default is 5.



OBJECT_MAGNIFY_WHEN_RESIZE_DEFAULT
final public static boolean OBJECT_MAGNIFY_WHEN_RESIZE_DEFAULT(Code)
The default is true.



OBJECT_TITLE_BETWEEN_REST_GAP_EXISTENCE_DEFAULT
final public static boolean OBJECT_TITLE_BETWEEN_REST_GAP_EXISTENCE_DEFAULT(Code)
The default is true.



OBJECT_TITLE_BETWEEN_REST_GAP_THICKNESS_MODEL_DEFAULT
final public static int OBJECT_TITLE_BETWEEN_REST_GAP_THICKNESS_MODEL_DEFAULT(Code)
The default is 3.



OBJECT_TITLE_EXISTENCE_DEFAULT
final public static boolean OBJECT_TITLE_EXISTENCE_DEFAULT(Code)
The default is true.



OBJECT_TITLE_FONT_COLOR_DEFAULT
final public static Color OBJECT_TITLE_FONT_COLOR_DEFAULT(Code)
The default is Color.black.



OBJECT_TITLE_FONT_NAME_DEFAULT
final public static String OBJECT_TITLE_FONT_NAME_DEFAULT(Code)
The default is "SansSerif".



OBJECT_TITLE_FONT_POINT_MODEL_DEFAULT
final public static int OBJECT_TITLE_FONT_POINT_MODEL_DEFAULT(Code)
The default is 12.



OBJECT_TITLE_FONT_STYLE_DEFAULT
final public static int OBJECT_TITLE_FONT_STYLE_DEFAULT(Code)
The default is Font.PLAIN.



OBJECT_TITLE_TEXT_DEFAULT
final public static String OBJECT_TITLE_TEXT_DEFAULT(Code)
The default is "".



RIGHT
final public static int RIGHT(Code)
Signifies right.



TOP
final public static int TOP(Code)
Signifies top.




Constructor Detail
Object2DProperties
public Object2DProperties()(Code)
Creates a Object2DProperties object with the documented default values.



Object2DProperties
public Object2DProperties(Object2DProperties object2DProps)(Code)
Creates a Object2DProperties object with property values copied from another object. The copying is a deep copy.
Parameters:
  object2DProps - The properties to copy.




Method Detail
addObject2D
final void addObject2D(Object2D object2D)(Code)
Adds an Object2D to the set of objects using these properties.
Parameters:
  object2D - The Object2D to add.



getObject2DNeedsUpdate
final boolean getObject2DNeedsUpdate(Object2D object2D)(Code)
Gets whether this object needs to be updated with new properties.
Parameters:
  object2D - The object that may need to be updated. If true then needs update.



getObjectBackgroundColor
final public Color getObjectBackgroundColor()(Code)
Gets the color of the background for the object. The color of the object's background.



getObjectBackgroundExistence
final public boolean getObjectBackgroundExistence()(Code)
Gets whether the object will have a painted background or not. If not, then the background of the content pane to which the object was added will show through which by default is gray, or if the object was not added to a content pane but only a BufferedImage of the object is obtained, then the background will be the default background of BufferedImage which is black. Painting the background improves performance considerably. If true, a background for the object will be painted.



getObjectBackgroundLightSource
final public int getObjectBackgroundLightSource()(Code)
Gets the light source of the object's background. If there is a light source, the side of the source will be one shade brighter than the specified background color. Use the TOP, BOTTOM, LEFT, RIGHT, and NONE fields. The source of the light.



getObjectBorderColor
final public Color getObjectBorderColor()(Code)
Gets the color of the object's border. The color of the border.



getObjectBorderExistence
final public boolean getObjectBorderExistence()(Code)
Gets whether a border around the object will exist. If true, then a object border exists.



getObjectBorderThicknessModel
final public int getObjectBorderThicknessModel()(Code)
Gets the thickness of the border for the model size of the object. The model thickness of the object's border.



getObjectGapExistence
final public boolean getObjectGapExistence()(Code)
Gets whether a gap between the border or edge of the object and the object's interior components exists. If true, then a gap exists.



getObjectGapThicknessModel
final public int getObjectGapThicknessModel()(Code)
Gets the thickness of the object's gap for the model size of the object. The model thickness of the object's gap.



getObjectMagnifyWhenResize
final public boolean getObjectMagnifyWhenResize()(Code)
Gets whether a object's components will grow or shrink as the size of the space allocated to the object grows or shrinks. If true, the object will be magnified on resize.



getObjectTitleBetweenRestGapExistence
final public boolean getObjectTitleBetweenRestGapExistence()(Code)
Gets whether a gap below the title and the rest of the object's components exists. If true, then a gap exists.



getObjectTitleBetweenRestGapThicknessModel
final public int getObjectTitleBetweenRestGapThicknessModel()(Code)
Gets the thickness of the gap below the title and the rest of the object's components for the object's model size. The model thickness of the gap.



getObjectTitleExistence
final public boolean getObjectTitleExistence()(Code)
Gets whether the object is to have a title. If true, then the object will have a title.



getObjectTitleFontColor
final public Color getObjectTitleFontColor()(Code)
Gets the color of the font for the object's title. The color of the font for the object's title.



getObjectTitleFontName
final public String getObjectTitleFontName()(Code)
Gets the name of the font for the object's title. Accepts all values accepted by java.awt.Font. The name of the font for the object's title.



getObjectTitleFontPointModel
final public int getObjectTitleFontPointModel()(Code)
Gets the point of the font of the title for the object at its model size. The model font point for the object's title.



getObjectTitleFontStyle
final public int getObjectTitleFontStyle()(Code)
Gets the style of the font for the object's title. Accepts all values that java.awt.Font accepts. The style of the font for the object's title.



getObjectTitleText
final public String getObjectTitleText()(Code)
Gets the text for the object's title. The text for the object's title.



removeObject2D
final void removeObject2D(Object2D object2D)(Code)
Removes a Object2D from the set of objects using these properties.
Parameters:
  object2D - The Object2D to remove.



setObject2DProperties
final public void setObject2DProperties(Object2DProperties object2DProps)(Code)
Sets all properties to be the values of another Object2DProperties object. The copying is a deep copy.
Parameters:
  object2DProps - The properties to copy.



setObject2DPropertiesToDefaults
final public void setObject2DPropertiesToDefaults()(Code)
Sets all properties to their default values.



setObjectBackgroundColor
final public void setObjectBackgroundColor(Color color)(Code)
Sets the color of the background for the object.
Parameters:
  color - The color of the object's background.



setObjectBackgroundExistence
final public void setObjectBackgroundExistence(boolean existence)(Code)
Sets whether the object will have a painted background or not. If not, then the background of the content pane to which the object was added will show through which by default is gray, or if the object was not added to a content pane but only a BufferedImage of the object is obtained, then the background will be the default background of BufferedImage which is black. The existence of a background can improve performance considerably.
Parameters:
  existence - If true, a background for the object will be painted.



setObjectBackgroundLightSource
final public void setObjectBackgroundLightSource(int source)(Code)
Sets the light source of the object's background. If there is a light source, the side of the source will be one shade brighter than the specified background color. Use the TOP, BOTTOM, LEFT, RIGHT, and NONE fields.
Parameters:
  source - The source of the light.



setObjectBorderColor
final public void setObjectBorderColor(Color color)(Code)
Sets the color of the object's border.
Parameters:
  color - The color of the border.



setObjectBorderExistence
final public void setObjectBorderExistence(boolean existence)(Code)
Sets whether a border around the object will exist.
Parameters:
  existence - If true, then a object border exists.



setObjectBorderThicknessModel
final public void setObjectBorderThicknessModel(int thickness)(Code)
Sets the thickness of the border for the model size of the object.
Parameters:
  thickness - The model thickness of the object's border.



setObjectGapExistence
final public void setObjectGapExistence(boolean existence)(Code)
Sets whether a gap between the border or edge of the object and the object's interior components exists.
Parameters:
  existence - If true, then a gap exists.



setObjectGapThicknessModel
final public void setObjectGapThicknessModel(int thickness)(Code)
Sets the thickness of the object's gap for the model size of the object.
Parameters:
  thickness - The model thickness of the object's gap.



setObjectMagnifyWhenResize
final public void setObjectMagnifyWhenResize(boolean magnify)(Code)
Sets whether a object's components will grow or shrink as the size of the space allocated to the object grows or shrinks. The Object's preferred size will be the model size (i.e. the size at which it isn't magnified).
Parameters:
  magnify - If true, the object will be magnified on resize.



setObjectTitleBetweenRestGapExistence
final public void setObjectTitleBetweenRestGapExistence(boolean existence)(Code)
Sets whether a gap below the title and the rest of the object's components exists.
Parameters:
  existence - If true, then a gap exists.



setObjectTitleBetweenRestGapThicknessModel
final public void setObjectTitleBetweenRestGapThicknessModel(int thickness)(Code)
Sets the thickness of the gap below the title and the rest of the object's components for the object's model size.
Parameters:
  thickness - The model thickness of the gap.



setObjectTitleExistence
final public void setObjectTitleExistence(boolean existence)(Code)
Sets whether the object is to have a title.
Parameters:
  existence - If true, then the object will have a title.



setObjectTitleFontColor
final public void setObjectTitleFontColor(Color color)(Code)
Sets the color of the font for the object's title.
Parameters:
  color - The color of the font for the object's title.



setObjectTitleFontName
final public void setObjectTitleFontName(String name)(Code)
Sets the name of the font for the object's title. Accepts all values accepted by java.awt.Font.
Parameters:
  name - The name of the font for the object's title.



setObjectTitleFontPointModel
final public void setObjectTitleFontPointModel(int point)(Code)
Sets the point of the font of the title for the object at its model size.
Parameters:
  point - The model font point for the object's title.



setObjectTitleFontStyle
final public void setObjectTitleFontStyle(int style)(Code)
Sets the style of the font for the object's title. Accepts all values that java.awt.Font accepts.
Parameters:
  style - The style of the font for the object's title.



setObjectTitleText
final public void setObjectTitleText(String text)(Code)
Sets the text for the object's title.
Parameters:
  text - The text for the object's title.



updateObject2D
final void updateObject2D(Object2D object2D)(Code)
Updates the properties of this Object2D.
Parameters:
  object2D - The object to update.



validate
final boolean validate(boolean debug)(Code)
Validates the properties of this object. If debug is true then prints a messages indicating whether each property is valid. Returns true if all the properties were valid and false otherwise.
Parameters:
  debug - If true then will print status messages. If true then valid.



Methods inherited from net.sourceforge.chart2d.Properties
final public synchronized boolean isFontNameExists(String name)(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.