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


org.jfree.chart.title.Title
   org.jfree.chart.title.TextTitle

All known Subclasses:   org.jfree.chart.title.DateTitle,
TextTitle
public class TextTitle extends Title implements Serializable,Cloneable,PublicCloneable(Code)
A chart title that displays a text string with automatic wrapping as required.


Field Summary
final public static  FontDEFAULT_FONT
     The default font.
final public static  PaintDEFAULT_TEXT_PAINT
     The default text color.

Constructor Summary
public  TextTitle()
     Creates a new title, using default attributes where necessary.
public  TextTitle(String text)
     Creates a new title, using default attributes where necessary.
public  TextTitle(String text, Font font)
     Creates a new title, using default attributes where necessary.
public  TextTitle(String text, Font font, Paint paint, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)
     Creates a new title.

Method Summary
public  Size2Darrange(Graphics2D g2, RectangleConstraint constraint)
     Arranges the contents of the block, within the given constraints, and returns the block size.
Parameters:
  g2 - the graphics device.
Parameters:
  constraint - the constraint (null not permitted).
protected  Size2DarrangeRR(Graphics2D g2, Range widthRange, Range heightRange)
     Returns the content size for the title.
public  Objectclone()
     Returns a clone of this object.
public  voiddraw(Graphics2D g2, Rectangle2D area)
     Draws the title on a Java 2D graphics device (such as the screen or a printer).
public  Objectdraw(Graphics2D g2, Rectangle2D area, Object params)
     Draws the block within the specified area.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area.
Parameters:
  params - if this is an instance of EntityBlockParams itis used to determine whether or not an EntityCollection is returned by this method.
protected  voiddrawHorizontal(Graphics2D g2, Rectangle2D area)
     Draws a the title horizontally within the specified area.
protected  voiddrawVertical(Graphics2D g2, Rectangle2D area)
     Draws a the title vertically within the specified area.
public  booleanequals(Object obj)
     Tests this title for equality with another object.
Parameters:
  obj - the object (null permitted).
public  PaintgetBackgroundPaint()
     Returns the background paint.
public  booleangetExpandToFitSpace()
     Returns the flag that controls whether or not the title expands to fit the available space.
public  FontgetFont()
     Returns the font used to display the title string.
public  PaintgetPaint()
     Returns the paint used to display the title string.
public  StringgetText()
     Returns the title text.
public  HorizontalAlignmentgetTextAlignment()
     Returns the text alignment.
public  StringgetToolTipText()
     Returns the tool tip text.
public  StringgetURLText()
     Returns the URL text.
public  inthashCode()
     Returns a hash code.
public  voidsetBackgroundPaint(Paint paint)
     Sets the background paint and sends a TitleChangeEvent to all registered listeners.
public  voidsetExpandToFitSpace(boolean expand)
     Sets the flag that controls whether the title expands to fit the available space, and sends a TitleChangeEvent to all registered listeners.
public  voidsetFont(Font font)
     Sets the font used to display the title string.
public  voidsetPaint(Paint paint)
     Sets the paint used to display the title string.
public  voidsetText(String text)
     Sets the title to the specified text and sends a TitleChangeEvent to all registered listeners.
public  voidsetTextAlignment(HorizontalAlignment alignment)
     Sets the text alignment.
public  voidsetToolTipText(String text)
     Sets the tool tip text to the specified text and sends a TitleChangeEvent to all registered listeners.
public  voidsetURLText(String text)
     Sets the URL text to the specified text and sends a TitleChangeEvent to all registered listeners.

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



DEFAULT_TEXT_PAINT
final public static Paint DEFAULT_TEXT_PAINT(Code)
The default text color.




Constructor Detail
TextTitle
public TextTitle()(Code)
Creates a new title, using default attributes where necessary.



TextTitle
public TextTitle(String text)(Code)
Creates a new title, using default attributes where necessary.
Parameters:
  text - the title text (null not permitted).



TextTitle
public TextTitle(String text, Font font)(Code)
Creates a new title, using default attributes where necessary.
Parameters:
  text - the title text (null not permitted).
Parameters:
  font - the title font (null not permitted).



TextTitle
public TextTitle(String text, Font font, Paint paint, RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding)(Code)
Creates a new title.
Parameters:
  text - the text for the title (null not permitted).
Parameters:
  font - the title font (null not permitted).
Parameters:
  paint - the title paint (null not permitted).
Parameters:
  position - the title position (null not permitted).
Parameters:
  horizontalAlignment - the horizontal alignment (null not permitted).
Parameters:
  verticalAlignment - the vertical alignment (null not permitted).
Parameters:
  padding - the space to leave around the outside of the title.




Method Detail
arrange
public Size2D arrange(Graphics2D g2, RectangleConstraint constraint)(Code)
Arranges the contents of the block, within the given constraints, and returns the block size.
Parameters:
  g2 - the graphics device.
Parameters:
  constraint - the constraint (null not permitted). The block size (in Java2D units, never null).



arrangeRR
protected Size2D arrangeRR(Graphics2D g2, Range widthRange, Range heightRange)(Code)
Returns the content size for the title. This will reflect the fact that a text title positioned on the left or right of a chart will be rotated 90 degrees.
Parameters:
  g2 - the graphics device.
Parameters:
  widthRange - the width range.
Parameters:
  heightRange - the height range. The content size.



clone
public Object clone() throws CloneNotSupportedException(Code)
Returns a clone of this object. A clone.
throws:
  CloneNotSupportedException - never.



draw
public void draw(Graphics2D g2, Rectangle2D area)(Code)
Draws the title on a Java 2D graphics device (such as the screen or a printer).
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area allocated for the title.



draw
public Object draw(Graphics2D g2, Rectangle2D area, Object params)(Code)
Draws the block within the specified area.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area.
Parameters:
  params - if this is an instance of EntityBlockParams itis used to determine whether or not an EntityCollection is returned by this method. An EntityCollection containing a chart entity for thetitle, or null.



drawHorizontal
protected void drawHorizontal(Graphics2D g2, Rectangle2D area)(Code)
Draws a the title horizontally within the specified area. This method will be called from the TextTitle.draw(Graphics2D,Rectangle2D) draw method.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area for the title.



drawVertical
protected void drawVertical(Graphics2D g2, Rectangle2D area)(Code)
Draws a the title vertically within the specified area. This method will be called from the TextTitle.draw(Graphics2D,Rectangle2D) draw method.
Parameters:
  g2 - the graphics device.
Parameters:
  area - the area for the title.



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



getBackgroundPaint
public Paint getBackgroundPaint()(Code)
Returns the background paint. The paint (possibly null).



getExpandToFitSpace
public boolean getExpandToFitSpace()(Code)
Returns the flag that controls whether or not the title expands to fit the available space. The flag.



getFont
public Font getFont()(Code)
Returns the font used to display the title string. The font (never null).
See Also:   TextTitle.setFont(Font)



getPaint
public Paint getPaint()(Code)
Returns the paint used to display the title string. The paint (never null).
See Also:   TextTitle.setPaint(Paint)



getText
public String getText()(Code)
Returns the title text. The text (never null).
See Also:   TextTitle.setText(String)



getTextAlignment
public HorizontalAlignment getTextAlignment()(Code)
Returns the text alignment. This controls how the text is aligned within the title's bounds, whereas the title's horizontal alignment controls how the title's bounding rectangle is aligned within the drawing space. The text alignment.



getToolTipText
public String getToolTipText()(Code)
Returns the tool tip text. The tool tip text (possibly null).



getURLText
public String getURLText()(Code)
Returns the URL text. The URL text (possibly null).



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



setBackgroundPaint
public void setBackgroundPaint(Paint paint)(Code)
Sets the background paint and sends a TitleChangeEvent to all registered listeners. If you set this attribute to null, no background is painted (which makes the title background transparent).
Parameters:
  paint - the background paint (null permitted).



setExpandToFitSpace
public void setExpandToFitSpace(boolean expand)(Code)
Sets the flag that controls whether the title expands to fit the available space, and sends a TitleChangeEvent to all registered listeners.
Parameters:
  expand - the flag.



setFont
public void setFont(Font font)(Code)
Sets the font used to display the title string. Registered listeners are notified that the title has been modified.
Parameters:
  font - the new font (null not permitted).
See Also:   TextTitle.getFont()



setPaint
public void setPaint(Paint paint)(Code)
Sets the paint used to display the title string. Registered listeners are notified that the title has been modified.
Parameters:
  paint - the new paint (null not permitted).
See Also:   TextTitle.getPaint()



setText
public void setText(String text)(Code)
Sets the title to the specified text and sends a TitleChangeEvent to all registered listeners.
Parameters:
  text - the text (null not permitted).



setTextAlignment
public void setTextAlignment(HorizontalAlignment alignment)(Code)
Sets the text alignment.
Parameters:
  alignment - the alignment (null not permitted).



setToolTipText
public void setToolTipText(String text)(Code)
Sets the tool tip text to the specified text and sends a TitleChangeEvent to all registered listeners.
Parameters:
  text - the text (null permitted).



setURLText
public void setURLText(String text)(Code)
Sets the URL text to the specified text and sends a TitleChangeEvent to all registered listeners.
Parameters:
  text - the text (null permitted).



Fields inherited from org.jfree.chart.title.Title
final public static HorizontalAlignment DEFAULT_HORIZONTAL_ALIGNMENT(Code)(Java Doc)
final public static RectangleInsets DEFAULT_PADDING(Code)(Java Doc)
final public static RectangleEdge DEFAULT_POSITION(Code)(Java Doc)
final public static VerticalAlignment DEFAULT_VERTICAL_ALIGNMENT(Code)(Java Doc)

Methods inherited from org.jfree.chart.title.Title
public void addChangeListener(TitleChangeListener listener)(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
abstract public void draw(Graphics2D g2, Rectangle2D area)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public HorizontalAlignment getHorizontalAlignment()(Code)(Java Doc)
public boolean getNotify()(Code)(Java Doc)
public RectangleEdge getPosition()(Code)(Java Doc)
public VerticalAlignment getVerticalAlignment()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
protected void notifyListeners(TitleChangeEvent event)(Code)(Java Doc)
public void removeChangeListener(TitleChangeListener listener)(Code)(Java Doc)
public void setHorizontalAlignment(HorizontalAlignment alignment)(Code)(Java Doc)
public void setNotify(boolean flag)(Code)(Java Doc)
public void setPosition(RectangleEdge position)(Code)(Java Doc)
public void setVerticalAlignment(VerticalAlignment alignment)(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.