All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----MSBChart.ChartComponent | +----MSBChart.AxisLabel | +----MSBChart.HAxisLabel
A horizontal label is an axis label that will be draw along the horizontal axis. The following example illustrates this feature:
MSBChart.HAxisLabel XLabel= new HAxisLabel("million $",java.awt.Color.black,new Font("Arial",Font.BOLD,12));
the label must be assigned to the chart like this:
chart.XLabel=XLabel;
public HAxisLabel(String t, Color c, Font f)
creates the horizontal label.
public void draw(Graphics g)
instructs the label to draw itself at the position specified by the ChartComponent fiels (x,y,width,height).
All Packages Class Hierarchy This Package Previous Next Index