Java Doc for XYTextAnnotation.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.AbstractXYAnnotation
      org.jfree.chart.annotations.XYTextAnnotation

All known Subclasses:   org.jfree.chart.annotations.XYPointerAnnotation,
XYTextAnnotation
public class XYTextAnnotation extends AbstractXYAnnotation implements Cloneable,PublicCloneable,Serializable(Code)
A text annotation that can be placed at a particular (x, y) location on an XYPlot .


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
public  XYTextAnnotation(String text, double x, double y)
     Creates a new annotation to be displayed at the given coordinates.

Method Summary
public  Objectclone()
     Returns a clone of the annotation.
public  voiddraw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info)
     Draws the annotation.
public  booleanequals(Object obj)
     Tests this annotation 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.
public  StringgetText()
     Returns the text for the annotation.
public  TextAnchorgetTextAnchor()
     Returns the text anchor.
public  doublegetX()
     Returns the x coordinate for the text anchor point (measured against the domain axis).
public  doublegetY()
     Returns the y coordinate for the text anchor point (measured against the range axis).
public  inthashCode()
     Returns a hash code for the object.
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).
public  voidsetX(double x)
     Sets the x coordinate for the text anchor point (measured against the domain axis).
public  voidsetY(double y)
     Sets the y coordinate for the text anchor point (measured against the range axis).

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
XYTextAnnotation
public XYTextAnnotation(String text, double x, double y)(Code)
Creates a new annotation to be displayed at the given coordinates. The coordinates are specified in data space (they will be converted to Java2D space for display).
Parameters:
  text - the text (null not permitted).
Parameters:
  x - the x-coordinate (in data space).
Parameters:
  y - the y-coordinate (in data space).




Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a clone of the annotation. A clone.
throws:
  CloneNotSupportedException - if the annotation can't be cloned.



draw
public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info)(Code)
Draws the annotation.
Parameters:
  g2 - the graphics device.
Parameters:
  plot - the plot.
Parameters:
  dataArea - the data area.
Parameters:
  domainAxis - the domain axis.
Parameters:
  rangeAxis - the range axis.
Parameters:
  rendererIndex - the renderer index.
Parameters:
  info - an optional info object that will be populated withentity information.



equals
public boolean equals(Object obj)(Code)
Tests this annotation for equality with an arbitrary object.
Parameters:
  obj - the object (null permitted). A boolean.



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



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



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



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



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



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



getX
public double getX()(Code)
Returns the x coordinate for the text anchor point (measured against the domain axis). The x coordinate (in data space).
See Also:   XYTextAnnotation.setX(double)



getY
public double getY()(Code)
Returns the y coordinate for the text anchor point (measured against the range axis). The y coordinate (in data space).
See Also:   XYTextAnnotation.setY(double)



hashCode
public int hashCode()(Code)
Returns a hash code for the object. 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:   XYTextAnnotation.getFont()



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



setRotationAnchor
public void setRotationAnchor(TextAnchor anchor)(Code)
Sets the rotation anchor point.
Parameters:
  anchor - the anchor (null not permitted).
See Also:   XYTextAnnotation.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:   XYTextAnnotation.getRotationAngle()



setText
public void setText(String text)(Code)
Sets the text for the annotation.
Parameters:
  text - the text (null not permitted).
See Also:   XYTextAnnotation.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:   XYTextAnnotation.getTextAnchor()



setX
public void setX(double x)(Code)
Sets the x coordinate for the text anchor point (measured against the domain axis).
Parameters:
  x - the x coordinate (in data space).
See Also:   XYTextAnnotation.getX()



setY
public void setY(double y)(Code)
Sets the y coordinate for the text anchor point (measured against the range axis).
Parameters:
  y - the y coordinate.
See Also:   XYTextAnnotation.getY()



Methods inherited from org.jfree.chart.annotations.AbstractXYAnnotation
protected void addEntity(PlotRenderingInfo info, Shape hotspot, int rendererIndex, String toolTipText, String urlText)(Code)(Java Doc)
abstract public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
public String getURL()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public void setToolTipText(String text)(Code)(Java Doc)
public void setURL(String url)(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.