|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.moioli.chart.Scale
public class Scale
Collects some of the necessary data for the DrawableI objects to be drawn on a DefaultChart, and provides common methods to calculate some scale parameters.
Method Summary | |
---|---|
int |
getDetail()
|
double |
getMaxX()
|
double |
getMaxY()
|
double |
getMinX()
|
double |
getMinY()
|
int |
getPixelAccuracy()
|
int |
getScreenMaxX()
|
int |
getScreenMaxY()
|
double |
getStep()
When drawing mathematical functions it is needed to recalculate the function's value every "dx" increment from minX to maxX. |
int |
getX(double x)
Calculates the abscissa on the screen (in pixels) corresponding to the real abscissa passed according to this Scale object. |
int |
getXMeasure(double l)
Given a segment parallel to the x axis which length is l, this method returns the corresponding length in pixels. |
double |
getXZoom()
Returns the x zoom factor |
int |
getY(double y)
Calculates the ordinate on the screen (in pixels) corresponding to the real ordinate passed according to this Scale object. |
int |
getYMeasure(double l)
Given a segment parallel to the y axis which length is l, this method returns the corresponding length in pixels. |
double |
getYZoom()
Returns the y zoom factor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getX(double x)
x
- real abscissa
public int getY(double y)
y
- real abscissa
public double getStep()
public double getXZoom()
public double getYZoom()
public int getXMeasure(double l)
l
- real length of a segment
public int getYMeasure(double l)
l
- real length of a segment
public double getMaxX()
public double getMaxY()
public double getMinX()
public double getMinY()
public int getPixelAccuracy()
public int getScreenMaxX()
public int getScreenMaxY()
public int getDetail()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |