|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.plots.axes.Axis
public class Axis
Class that represents an arbitrary axis.
Functionality includes:
AxisListeners
Constructor Summary | |
---|---|
Axis(Number min,
Number max)
Initializes a new instance with the specified minimum and maximum values. |
Method Summary | |
---|---|
void |
addAxisListener(AxisListener listener)
Adds the specified AxisListener to this Axis. |
Number |
getMax()
Returns the maximum value to be displayed. |
Number |
getMin()
Returns the minimum value to be displayed. |
double |
getRange()
Returns the range of values to be displayed. |
void |
removeAxisListener(AxisListener listener)
Removes the specified AxisListener from this Axis. |
void |
setMax(Number max)
Sets the maximum value to be displayed. |
void |
setMin(Number min)
Sets the minimum value to be displayed. |
void |
setRange(Number min,
Number max)
Sets the range of values to be displayed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Axis(Number min, Number max)
min
- minimum valuemax
- maximum valueMethod Detail |
---|
public void addAxisListener(AxisListener listener)
AxisListener
to this Axis.
The Listeners will be notified if changes to the Axis occur,
for Example if the minimum or maximum value changes.
listener
- Listener to be addedAxisListener
public void removeAxisListener(AxisListener listener)
AxisListener
from this Axis.
listener
- Listener to be removedAxisListener
public Number getMin()
public void setMin(Number min)
min
- Minimum value.public Number getMax()
public void setMax(Number max)
max
- Maximum value.public double getRange()
public void setRange(Number min, Number max)
min
- Minimum value.max
- Maximum value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |