net.comrom.chart
Class Title
java.lang.Object
net.comrom.chart.ChartComponent
net.comrom.chart.Title
- public class Title
- extends ChartComponent
The title will be displayed as text above the chart. You can create a title like this:
Title title=new Title("Sales (thousands $)");
the title is specified in the constructor of the chart class.
If you need more space for the title you can modify the topMargin property of the chart.
You can also construct your own title classes if you want, just implement in the draw method the kind of drawing you want to make.
|
Constructor Summary |
Title(java.lang.String t)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
text
public java.lang.String text
- Text used fot text
font
public ChartFont font
- Font used for title
color
public ChartColor color
- color used for the title
Title
public Title(java.lang.String t)
draw
public void draw(ChartGraphics g)