|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.plots.PlotNavigator
public class PlotNavigator
Class that controls the zoom of a Plot.
Constructor Summary | |
---|---|
PlotNavigator(Plot plot)
Creates a new PlotZoomer object that is responsible for the specified plot. |
Method Summary | |
---|---|
Number |
getCenter(Axis axis)
Returns the center point of the specified axis. |
Plot |
getPlot()
Returns the plot stored in this instance. |
double |
getZoom()
Returns the average zoom factor of all axes. |
double |
getZoomMax()
Returns the minimal zoom factor. |
double |
getZoomMin()
Returns the minimal zoom factor. |
void |
reset()
Resets the plot's zoom to the original value. |
void |
setCenter(Axis axis,
Number center)
Sets a new center point for the specified axis. |
void |
setZoom(double zoomNew)
Sets the plot's zoom level to the specified value. |
void |
setZoomMax(double max)
Sets the maximal zoom factor. |
void |
setZoomMin(double min)
Sets the minimal zoom factor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlotNavigator(Plot plot)
PlotZoomer
object that is responsible for the specified plot.
plot
- Plot to be zoomed.Method Detail |
---|
public Plot getPlot()
public double getZoom()
public void setZoom(double zoomNew)
zoomNew
- New zoom level.public Number getCenter(Axis axis)
axis
- Axis.
public void setCenter(Axis axis, Number center)
axis
- Axis.center
- New center point in axis units.public void reset()
public double getZoomMin()
public void setZoomMin(double min)
min
- New minimal zoom factor.public double getZoomMax()
public void setZoomMax(double max)
max
- New maximal zoom factor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |