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

Constructor Index

 o AxisX()

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 placeLabelUpside(boolean)
 o placeTickUpside(boolean)
 o setBeginEndRelative(double, double, Canvas)
the beginning x-coordinate of this x-axis.
 o setLocRelative(double, Canvas)
the y-coordinate of this x-axis.

Constructors

 o AxisX
 protected AxisX()

Methods

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

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