|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.comrom.chart.Scale
The scale converts the data to screen coordinates.
Most charts have two scales, one per axis.
Example:
// create axis
Axis XAxis=new Axis(Axis.HORIZONTAL,new Scale());
Axis YAxis=new Axis(Axis.VERTICAL,new Scale());
XAxis.scale.min=0;
XAxis.scale.max=7;
YAxis.scale.min=0;
YAxis.scale.max=7;
If the min and max properties are not specified, Chart will calculate them from the DataSeries
| Field Summary | |
boolean |
exactMaxValue
if true, Chart will calculate the max value of the scale using the preferred min/max values list default value is true for Y axis and false for X axis. |
boolean |
exactMinValue
|
double |
max
maximum value of the scale. |
double |
min
minimum value of the scale. |
double[] |
preferred_MaxMin_values
sorted list of preferred values for minimum and maximum values. |
boolean |
reverse
|
int |
screenMax
maximum value of scale on the screen. |
int |
screenMaxMargin
|
int |
screenMin
|
| Constructor Summary | |
Scale()
|
|
Scale(int ma,
int mi)
|
|
| Method Summary | |
int |
getScreenCoord(double v)
|
double |
getValue(int c)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean exactMaxValue
public boolean exactMinValue
public double[] preferred_MaxMin_values
public double max
public double min
public int screenMax
public int screenMaxMargin
public int screenMin
public boolean reverse
| Constructor Detail |
public Scale()
public Scale(int ma,
int mi)
ma - | Method Detail |
public int getScreenCoord(double v)
public double getValue(int c)
c -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||