| |
|
| java.lang.Object de.progra.charting.render.AbstractRenderer de.progra.charting.Title
Title | public class Title extends AbstractRenderer (Code) | | This class contains the Chart Title. It's also a Renderer
object with some extra properties.
author: mueller version: 1.0 |
Constructor Summary | |
public | Title() | public | Title(String text) Creates a new Title with the given text. | public | Title(String text, Font font) Creates a new Title with the given text and font. |
Method Summary | |
public Font | getFont() Returns this title's Font. | public Dimension | getPreferredSize() Returns the preferred size needed for the renderer. | public String | getText() Returns this title's text. | public void | paintDefault(Graphics2D g) This method is called by the paint method to do the actual painting.
The painting is supposed to start at point (0,0) and the size is
always the same as the preferred size. | public void | setFont(Font f) Sets the Font that is used to render the title. | public void | setText(String text) Sets this title's text. |
Title | public Title()(Code) | | Creates a new Title with the default settings
|
Title | public Title(String text)(Code) | | Creates a new Title with the given text.
Parameters: text - the Title content |
Title | public Title(String text, Font font)(Code) | | Creates a new Title with the given text and font.
Parameters: text - the Title content Parameters: font - the Title format |
getFont | public Font getFont()(Code) | | Returns this title's Font.
the Title's font |
getPreferredSize | public Dimension getPreferredSize()(Code) | | Returns the preferred size needed for the renderer.
a non-null Dimension object |
getText | public String getText()(Code) | | Returns this title's text.
the String object containing the Title's text |
paintDefault | public void paintDefault(Graphics2D g)(Code) | | This method is called by the paint method to do the actual painting.
The painting is supposed to start at point (0,0) and the size is
always the same as the preferred size. The paint method performs
the possible scaling.
Parameters: g - the Graphics2D object to paint in |
setFont | public void setFont(Font f)(Code) | | Sets the Font that is used to render the title.
Parameters: f - Sets the new font. |
setText | public void setText(String text)(Code) | | Sets this title's text.
Parameters: text - the new text |
|
|
|