|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.render.AbstractRenderer
com.approximatrix.charting.Title
public class Title
This class contains the Chart Title. It's also a Renderer object with some extra properties.
| Field Summary | |
|---|---|
protected java.awt.Font |
font
|
protected java.lang.String |
text
|
| Constructor Summary | |
|---|---|
Title()
Creates a new Title with the default settings |
|
Title(java.lang.String text)
Creates a new Title with the given text. |
|
Title(java.lang.String text,
java.awt.Font font)
Creates a new Title with the given text and font. |
|
| Method Summary | |
|---|---|
java.awt.Font |
getFont()
Returns this title's Font. |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size needed for the renderer. |
java.lang.String |
getText()
Returns this title's text. |
void |
paintDefault(java.awt.Graphics2D g)
This method is called by the paint method to do the actual painting. |
void |
setFont(java.awt.Font f)
Sets the Font that is used to render the title. |
void |
setText(java.lang.String text)
Sets this title's text. |
| Methods inherited from class com.approximatrix.charting.render.AbstractRenderer |
|---|
getBounds, getDirectRender, render, setBounds, setDirectRender |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String text
protected java.awt.Font font
| Constructor Detail |
|---|
public Title()
public Title(java.lang.String text)
text - the Title content
public Title(java.lang.String text,
java.awt.Font font)
text - the Title contentfont - the Title format| Method Detail |
|---|
public void setText(java.lang.String text)
text - the new textpublic java.lang.String getText()
public void setFont(java.awt.Font f)
f - Sets the new font.public java.awt.Font getFont()
public void paintDefault(java.awt.Graphics2D g)
paintDefault in class AbstractRendererg - the Graphics2D object to paint inpublic java.awt.Dimension getPreferredSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||