| |
|
| java.lang.Object de.progra.charting.Axis
Axis | public class Axis (Code) | | The CoordSystem contains two or possibly three Axis objects for the x-axis
and the at most two y-axis.
author: mueller version: 1.0 |
Method Summary | |
public int | getAlignment() Returns the alignment of the axis. | public int | getLength() Returns length of the axis in pixels. | public double | getPixelForValue(double value) Returns the point on the axis for a specific value.
If the axis is a x-axis and the column values are not numeric,
this isn't needed since then the axis can be divided into
equally long parts. | public double | getPointToPixelRatio() Returns the ratio between a value unit and the screen pixels. | public void | setLength(int length) Sets the Pixel length of the axis. |
HORIZONTAL | final public static int HORIZONTAL(Code) | | Defines a horizontal x-axis.
|
LINEAR | final public static int LINEAR(Code) | | Defines a linear scale.
|
LOGARITHMIC | final public static int LOGARITHMIC(Code) | | Defines a logarithmic scale.
|
VERTICAL | final public static int VERTICAL(Code) | | Defines a vertical y-axis.
|
Axis | public Axis(int align, ChartDataModelConstraints c)(Code) | | Creates new Axis.
Parameters: align - the alignment of the axis. Parameters: c - the ChartDataModelConstraints |
getAlignment | public int getAlignment()(Code) | | Returns the alignment of the axis.
the alignment constant: Axis.VERTICAL or Axis.HORIZONTAL |
getLength | public int getLength()(Code) | | Returns length of the axis in pixels.
the length in pixels |
getPixelForValue | public double getPixelForValue(double value)(Code) | | Returns the point on the axis for a specific value.
If the axis is a x-axis and the column values are not numeric,
this isn't needed since then the axis can be divided into
equally long parts. This is a relative pixel distance to
the starting pixel of the axis.
Parameters: value - the double value to compute the pixel distance for the pixel distance for the given value relative to the start of the axis |
getPointToPixelRatio | public double getPointToPixelRatio()(Code) | | Returns the ratio between a value unit and the screen pixels.
This is only useful for linear scales.
the ratio points / pixel length for the axis. |
setLength | public void setLength(int length)(Code) | | Sets the Pixel length of the axis.
Parameters: length - the length in pixel |
|
|
|