com.java4less.rchart
Class HAxisLabel
java.lang.Object
|
+--com.java4less.rchart.ChartComponent
|
+--com.java4less.rchart.AxisLabel
|
+--com.java4less.rchart.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:
com.java4less.rchart.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 Summary |
HAxisLabel(java.lang.String t,
java.awt.Color c,
java.awt.Font f)
creates the horizontal label. |
Method Summary |
void |
draw(java.awt.Graphics g)
instructs the label to draw itself at the position specified by the ChartComponent fiels (x,y,width,height). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HAxisLabel
public HAxisLabel(java.lang.String t,
java.awt.Color c,
java.awt.Font f)
- creates the horizontal label.
draw
public void draw(java.awt.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