Java Doc for TextAnnotation.java in  » Chart » jfreechart » org » jfree » chart » annotations » 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 » jfreechart » org.jfree.chart.annotations 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.chart.annotations.TextAnnotation

All known Subclasses:   org.jfree.chart.annotations.CategoryTextAnnotation,
TextAnnotation
public class TextAnnotation implements Serializable(Code)
A base class for text annotations. This class records the content but not the location of the annotation.


Field Summary
final public static  FontDEFAULT_FONT
     The default font.
final public static  PaintDEFAULT_PAINT
     The default paint.
final public static  TextAnchorDEFAULT_ROTATION_ANCHOR
     The default rotation anchor.
final public static  doubleDEFAULT_ROTATION_ANGLE
     The default rotation angle.
final public static  TextAnchorDEFAULT_TEXT_ANCHOR
     The default text anchor.

Constructor Summary
protected  TextAnnotation(String text)
     Creates a text annotation with default settings.

Method Summary
public  booleanequals(Object obj)
     Tests this object for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted).
public  FontgetFont()
     Returns the font for the annotation.
public  PaintgetPaint()
     Returns the paint for the annotation.
public  TextAnchorgetRotationAnchor()
     Returns the rotation anchor.
public  doublegetRotationAngle()
     Returns the rotation angle in radians.
public  StringgetText()
     Returns the text for the annotation.
public  TextAnchorgetTextAnchor()
     Returns the text anchor.
public  inthashCode()
     Returns a hash code for this instance.
public  voidsetFont(Font font)
     Sets the font for the annotation.
public  voidsetPaint(Paint paint)
     Sets the paint for the annotation.
public  voidsetRotationAnchor(TextAnchor anchor)
     Sets the rotation anchor point.
public  voidsetRotationAngle(double angle)
     Sets the rotation angle.
public  voidsetText(String text)
     Sets the text for the annotation.
public  voidsetTextAnchor(TextAnchor anchor)
     Sets the text anchor (the point on the text bounding rectangle that is aligned to the (x, y) coordinate of the annotation).

Field Detail
DEFAULT_FONT
final public static Font DEFAULT_FONT(Code)
The default font.



DEFAULT_PAINT
final public static Paint DEFAULT_PAINT(Code)
The default paint.



DEFAULT_ROTATION_ANCHOR
final public static TextAnchor DEFAULT_ROTATION_ANCHOR(Code)
The default rotation anchor.



DEFAULT_ROTATION_ANGLE
final public static double DEFAULT_ROTATION_ANGLE(Code)
The default rotation angle.



DEFAULT_TEXT_ANCHOR
final public static TextAnchor DEFAULT_TEXT_ANCHOR(Code)
The default text anchor.




Constructor Detail
TextAnnotation
protected TextAnnotation(String text)(Code)
Creates a text annotation with default settings.
Parameters:
  text - the text (null not permitted).




Method Detail
equals
public boolean equals(Object obj)(Code)
Tests this object for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted). true or false.



getFont
public Font getFont()(Code)
Returns the font for the annotation. The font (never null).
See Also:   TextAnnotation.setFont(Font)



getPaint
public Paint getPaint()(Code)
Returns the paint for the annotation. The paint (never null).
See Also:   TextAnnotation.setPaint(Paint)



getRotationAnchor
public TextAnchor getRotationAnchor()(Code)
Returns the rotation anchor. The rotation anchor point (never null).
See Also:   TextAnnotation.setRotationAnchor(TextAnchor)



getRotationAngle
public double getRotationAngle()(Code)
Returns the rotation angle in radians. The rotation angle.
See Also:   TextAnnotation.setRotationAngle(double)



getText
public String getText()(Code)
Returns the text for the annotation. The text (never null).
See Also:   TextAnnotation.setText(String)



getTextAnchor
public TextAnchor getTextAnchor()(Code)
Returns the text anchor. The text anchor.
See Also:   TextAnnotation.setTextAnchor(TextAnchor)



hashCode
public int hashCode()(Code)
Returns a hash code for this instance. A hash code.



setFont
public void setFont(Font font)(Code)
Sets the font for the annotation.
Parameters:
  font - the font (null not permitted).
See Also:   TextAnnotation.getFont()



setPaint
public void setPaint(Paint paint)(Code)
Sets the paint for the annotation.
Parameters:
  paint - the paint (null not permitted).
See Also:   TextAnnotation.getPaint()



setRotationAnchor
public void setRotationAnchor(TextAnchor anchor)(Code)
Sets the rotation anchor point.
Parameters:
  anchor - the anchor (null not permitted).
See Also:   TextAnnotation.getRotationAnchor()



setRotationAngle
public void setRotationAngle(double angle)(Code)
Sets the rotation angle. The angle is measured clockwise in radians.
Parameters:
  angle - the angle (in radians).
See Also:   TextAnnotation.getRotationAngle()



setText
public void setText(String text)(Code)
Sets the text for the annotation.
Parameters:
  text - the text (null not permitted).
See Also:   TextAnnotation.getText()



setTextAnchor
public void setTextAnchor(TextAnchor anchor)(Code)
Sets the text anchor (the point on the text bounding rectangle that is aligned to the (x, y) coordinate of the annotation).
Parameters:
  anchor - the anchor point (null not permitted).
See Also:   TextAnnotation.getTextAnchor()



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.