|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.odesys.chart.Axis
This class represents a coordinate axis. It automatically determines the position of the marks on the axis based on the data range. The automatically determined values can be overriden using methods provided by the class.
Constructor Summary | |
Axis()
Creates a new Axis instance. |
Method Summary | |
AxisMark[] |
getMarks()
Gets the marks of this Axis. |
float |
getMax()
Gets the max value of this Axis. |
float |
getMin()
Gets the min value of this Axis. |
java.lang.String |
getName()
Gets the name of this Axis. |
float |
getPos(float value)
Calculates the position of the specified value. |
float |
getValue(float pos)
Calculates the value that corresponds to the specified position. |
boolean |
isMarksAuto()
Checks if the marks of this Axis are being created automatically. |
boolean |
isMaxAuto()
Checks if the max value is being determined automatically. |
boolean |
isMinAuto()
Checks if the min value is being determined automatically. |
boolean |
isReversed()
Checks if the Axis is reversed. |
boolean |
isZeroInRange()
Checks if the zero is being kept in the range of this Axis. |
void |
setDataRange(float minData,
float maxData)
Sets the data range of this Axis. |
void |
setMarks(AxisMark[] marks)
Sets the Marks of this Axis. |
void |
setMarksAuto(boolean auto)
Sets whether the marks of this Axis should be created automatically |
void |
setMax(float max)
Sets the max value of this Axis. |
void |
setMaxAuto(boolean auto)
Sets whether the max value should be determined automatically. |
void |
setMin(float min)
Sets the min value of this Axis. |
void |
setMinAuto(boolean auto)
Sets whether the min value should be determined automatically. |
void |
setName(java.lang.String name)
Sets the name of this Axis. |
void |
setReversed(boolean reversed)
Sets whether the axis should be reversed. |
void |
setZeroInRange(boolean zeroInRange)
When set to true the zero is always kept in the range of this Axis. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Axis()
Method Detail |
public void setMin(float min)
public float getMin()
public void setMax(float max)
public float getMax()
public void setDataRange(float minData, float maxData)
public void setZeroInRange(boolean zeroInRange)
public boolean isZeroInRange()
public void setMinAuto(boolean auto)
public boolean isMinAuto()
public void setMaxAuto(boolean auto)
public boolean isMaxAuto()
public void setReversed(boolean reversed)
public boolean isReversed()
public float getPos(float value)
public float getValue(float pos)
public void setMarksAuto(boolean auto)
public boolean isMarksAuto()
public void setMarks(AxisMark[] marks)
public AxisMark[] getMarks()
public void setName(java.lang.String name)
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |