All Packages Class Hierarchy This Package Previous Next Index
Class crw.data2.AxisX
java.lang.Object
|
+----crw.data2.Axis2
|
+----crw.data2.AxisX
- public class AxisX
- extends Axis2
-
AxisX()
-
-
draw(Graphics)
-
-
drawLabel(Graphics, int, String)
- Draws label at the specified position using the
specified label.
-
drawTick(Graphics, int)
- Draws tick at the specified position of given length.
-
placeLabelUpside(boolean)
-
-
placeTickUpside(boolean)
-
-
setBeginEndRelative(double, double, Canvas)
- the beginning x-coordinate of this x-axis.
-
setLocRelative(double, Canvas)
- the y-coordinate of this x-axis.
AxisX
protected AxisX()
draw
public void draw(Graphics g)
- Overrides:
- draw in class Axis2
setBeginEndRelative
public void setBeginEndRelative(double begin,
double end,
Canvas canvas)
- the beginning x-coordinate of this x-axis.
- Parameters:
- begin - relative position 0 - 1, where 1 for x=canvas.width.
- end - relative position 0 - 1, where 1 for x=canvas.width.
- canvas - the Canvas in which this axis is drawn.
- Overrides:
- setBeginEndRelative in class Axis2
setLocRelative
public void setLocRelative(double loc,
Canvas canvas)
- the y-coordinate of this x-axis.
- Parameters:
- loc - relative position 0 - 1, 1 for y=height.
- canvas - the Canvas in which this axis is drawn.
- Overrides:
- setLocRelative in class Axis2
placeTickUpside
public void placeTickUpside(boolean up)
placeLabelUpside
public void placeLabelUpside(boolean up)
drawTick
protected void drawTick(Graphics g,
int x)
- Draws tick at the specified position of given length.
- Overrides:
- drawTick in class Axis2
drawLabel
protected void drawLabel(Graphics g,
int x,
String label)
- Draws label at the specified position using the
specified label.
- Overrides:
- drawLabel in class Axis2
All Packages Class Hierarchy This Package Previous Next Index