|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.Axis
public class Axis
The CoordSystem contains two or possibly three Axis objects for the x-axis and the at most two y-axis.
| Field Summary | |
|---|---|
private int |
align
The axis' alignment. |
(package private) ChartDataModelConstraints |
constraints
|
static int |
HORIZONTAL
Defines a horizontal x-axis. |
(package private) int |
length
|
static int |
LINEAR
Defines a linear scale. |
static int |
LOGARITHMIC
Defines a logarithmic scale. |
static int |
VERTICAL
Defines a vertical y-axis. |
| Constructor Summary | |
|---|---|
Axis(int align,
ChartDataModelConstraints c)
Creates new Axis. |
|
| Method Summary | |
|---|---|
int |
getAlignment()
Returns the alignment of the axis. |
int |
getLength()
Returns length of the axis in pixels. |
double |
getPixelForValue(double value)
Returns the point on the axis for a specific value. |
double |
getPointToPixelRatio()
Returns the ratio between a value unit and the screen pixels. |
void |
setLength(int length)
Sets the Pixel length of the axis. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HORIZONTAL
public static final int VERTICAL
public static final int LOGARITHMIC
public static final int LINEAR
private int align
ChartDataModelConstraints constraints
int length
| Constructor Detail |
|---|
public Axis(int align,
ChartDataModelConstraints c)
align - the alignment of the axis.c - the ChartDataModelConstraints| Method Detail |
|---|
public int getAlignment()
Axis.VERTICAL or Axis.HORIZONTALpublic void setLength(int length)
length - the length in pixelpublic int getLength()
public double getPixelForValue(double value)
value - the double value to compute the pixel distance for
public double getPointToPixelRatio()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||