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