|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectifi.dsb.AxisValues
Class for creation of a linear array. Can be used to aid in creating axis values for plotting.
| Constructor Summary | |
AxisValues(double[] data)
Constructs AxisValues object. |
|
AxisValues(double[] data,
java.lang.String label)
Constructs AxisValues object. |
|
AxisValues(double min,
double max,
int length)
Constructs AxisValues object. |
|
AxisValues(double min,
double max,
int length,
java.lang.String label)
Constructs AxisValues object. |
|
AxisValues(int length)
|
|
| Method Summary | |
java.lang.String |
getLabel()
Return the axis label. |
int |
getLength()
Return the axis length (number of axis samples). |
double |
getMax()
Return the axis maximum value. |
double |
getMin()
Return the axis minimum value. |
double[] |
getValues()
Return the axis values. |
void |
setLabel(java.lang.String label)
Set the axis label. |
void |
setLength(int length)
Set the axis length (number of axis samples), and update the axis values accordingly by calling updateValues. |
void |
setMax(double max)
Set the axis maximum value and update the axis values accordingly by calling updateValues. |
void |
setMin(double min)
Set the axis minimum value and update the axis values accordingly by calling updateValues. |
protected void |
updateValues()
Update the axis values based on the current values of min, max and length. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AxisValues(int length)
public AxisValues(double min,
double max,
int length)
min - Minimum axis value.max - Maximum axis value.length - Number of axis values.
public AxisValues(double min,
double max,
int length,
java.lang.String label)
min - Minimum axis value.max - Maximum axis value.length - Number of axis values.label - Axis label.public AxisValues(double[] data)
data - Axis values. Minimum, maximum and length are set
from these values.
public AxisValues(double[] data,
java.lang.String label)
data - Axis values. Minimum, maximum and length are set
from these values.label - Axis label.| Method Detail |
public double[] getValues()
public double getMin()
public void setMin(double min)
public double getMax()
public void setMax(double max)
public int getLength()
public void setLength(int length)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
protected void updateValues()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||