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

Constructor Index

 o AxisY()

Method Index

 o draw(Graphics)
 o drawLabel(Graphics, int, String)
Draws label at the specified position using the specified label.
 o drawTick(Graphics, int)
Draws tick at the specified position of given length.
 o placeLabelLeftside(boolean)
 o placeTickLeftside(boolean)
 o setBeginEndRelative(double, double, Canvas)
Sets the beginning y-coordinate of this y-axis.
 o setLocRelative(double, Canvas)
Sets the x-coordinate of this y-axis in this canvas.

Constructors

 o AxisY
 public AxisY()

Methods

 o draw
 public void draw(Graphics g)
Overrides:
draw in class Axis2
 o 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
 o 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
 o placeTickLeftside
 public void placeTickLeftside(boolean left)
 o placeLabelLeftside
 public void placeLabelLeftside(boolean left)
 o drawTick
 protected void drawTick(Graphics g,
                         int y)
Draws tick at the specified position of given length.

Overrides:
drawTick in class Axis2
 o 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