|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.moioli.drawables.Axes
public class Axes
Represents the x and y axes of the DefaultChart, their measure units, and their legend.
Constructor Summary | |
---|---|
Axes()
Default constructor. |
Method Summary | |
---|---|
void |
drawMe(GraphicsI g,
Scale s,
java.lang.Object c)
This method is automatically called by DefaultChart to draw the objects it contains, so end users should never call drawMe directly. |
double |
maxY(double minX,
double maxX)
Since the axis will be drawn regardless of the scale, always return NaN. |
double |
minY(double minX,
double maxX)
Since the axis will be drawn regardless of the scale, always return NaN. |
double |
xMeasureUnitValue(Scale s)
This object will divide both x and y axes in a number of segments, each one representing a measure unit described in the Legend, to make the DefaultChart easier to read. |
int |
xMeasureUnitWidth(Scale s)
This object will divide both x and y axes in a number of segments, each one representing a measure unit described in the Legend, to make the DefaultChart easier to read. |
double |
yMeasureUnitValue(Scale s)
This object will divide both x and y axes in a number of segments, each one representing a measure unit described in the Legend, to make the DefaultChart easier to read. |
int |
yMeasureUnitWidth(Scale s)
This object will divide both x and y axes in a number of segments, each one representing a measure unit described in the Legend, to make the DefaultChart easier to read. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Axes()
Method Detail |
---|
public int xMeasureUnitWidth(Scale s)
s
- the DefaultChart's Scale object
public int yMeasureUnitWidth(Scale s)
s
- the DefaultChart's Scale object
public double xMeasureUnitValue(Scale s)
s
- the DefaultChart's Scale object
public double yMeasureUnitValue(Scale s)
s
- the DefaultChart's Scale object
public void drawMe(GraphicsI g, Scale s, java.lang.Object c)
DrawableI
drawMe
in interface DrawableI
g
- the surface where this object will be drawns
- the DefaultChart's Scale objectc
- the color to be used for drawingDrawableI.drawMe(GraphicsI, Scale, Object)
public double maxY(double minX, double maxX)
maxY
in interface DrawableI
minX
- the minimum x value represented in this DefaultChartmaxX
- the maximum x value represented in this DefaultChart
public double minY(double minX, double maxX)
minY
in interface DrawableI
minX
- the minimum x value represented in this DefaultChartmaxX
- the maximum x value represented in this DefaultChart
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |