All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class MSBChart.HAxisLabel

java.lang.Object
   |
   +----MSBChart.ChartComponent
           |
           +----MSBChart.AxisLabel
                   |
                   +----MSBChart.HAxisLabel

public class HAxisLabel
extends AxisLabel
 

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;

 


Constructor Index

 o HAxisLabel(String, Color, Font)

Method Index

 o draw(Graphics)

Constructors

 o HAxisLabel
 public HAxisLabel(String t,
                   Color c,
                   Font f)
 creates the horizontal label.

Methods

 o draw
 public void draw(Graphics g)
instructs the label to draw itself at the position specified by the ChartComponent fiels (x,y,width,height).
 
Overrides:
draw in class AxisLabel
 

All Packages  Class Hierarchy  This Package  Previous  Next  Index