com.java4less.rchart
Class AxisLabel

java.lang.Object
  |
  +--com.java4less.rchart.ChartComponent
        |
        +--com.java4less.rchart.AxisLabel
Direct Known Subclasses:
HAxisLabel, VAxisLabel

public class AxisLabel
extends ChartComponent

Axislabel are texts that are displayed along the Axis.


Field Summary
 java.awt.Color color
          color of the text.
 java.awt.Font font
          font of the text.
 java.lang.String title
          text of the label.
 boolean vertical
          set the property to true if you want to paint vertical labels (see also Chart.tmpImage).
 
Fields inherited from class com.java4less.rchart.ChartComponent
height, width, x, y
 
Constructor Summary
AxisLabel(java.lang.String t, java.awt.Color c, java.awt.Font f)
          creates a label with the specified text, color and font.
 
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
 

Field Detail

color

public java.awt.Color color
color of the text.

font

public java.awt.Font font
font of the text.

title

public java.lang.String title
text of the label.

vertical

public boolean vertical
set the property to true if you want to paint vertical labels (see also Chart.tmpImage).
Constructor Detail

AxisLabel

public AxisLabel(java.lang.String t,
                 java.awt.Color c,
                 java.awt.Font f)
creates a label with the specified text, color and font.
Method Detail

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).