net.comrom.chart
Class Title

java.lang.Object
  extended bynet.comrom.chart.ChartComponent
      extended bynet.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.


Field Summary
 ChartColor color
          color used for the title
 ChartFont font
          Font used for title
 java.lang.String text
          Text used fot text
 
Fields inherited from class net.comrom.chart.ChartComponent
height, width, x, y
 
Constructor Summary
Title(java.lang.String t)
           
 
Method Summary
 void draw(ChartGraphics g)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

Title

public Title(java.lang.String t)
Method Detail

draw

public void draw(ChartGraphics g)