public static class PiePlot.PiePlotNavigator extends AbstractNavigator
RADIUS
setting and panning the CENTER
setting.DEFAULT_ZOOM_FACTOR, DEFAULT_ZOOM_MAX, DEFAULT_ZOOM_MIN
Constructor and Description |
---|
PiePlot.PiePlotNavigator(PiePlot plot)
Initializes a new instance with a pie plot to be navigated.
|
Modifier and Type | Method and Description |
---|---|
PointND<? extends java.lang.Number> |
getCenter()
Returns the current center point.
|
double |
getZoom()
Returns the current zoom level of the associated object.
|
void |
pan(PointND<? extends java.lang.Number> deltas)
Moves the center by the relative values of the specified point.
|
void |
reset()
Sets the object's position and zoom level to the default state.
|
void |
setCenter(PointND<? extends java.lang.Number> center)
Sets a new center point.
|
void |
setDefaultState()
Sets the current state as the default state of the object.
|
void |
setZoom(double zoomNew)
Sets the zoom level of the associated object to the specified value.
|
addNavigationListener, centerChanged, connect, disconnect, fireCenterChanged, fireZoomChanged, getDirection, getZoomFactor, getZoomMax, getZoomMin, isPannable, isZoomable, removeNavigationListener, setDirection, setPannable, setZoomable, setZoomFactor, setZoomMax, setZoomMin, zoomChanged, zoomIn, zoomOut
public PiePlot.PiePlotNavigator(PiePlot plot)
plot
- Pie plot.public double getZoom()
public void setZoom(double zoomNew)
zoomNew
- New zoom level.public PointND<? extends java.lang.Number> getCenter()
public void setCenter(PointND<? extends java.lang.Number> center)
center
- New center point in world units.Navigator.isPannable()
,
Navigator.setPannable(boolean)
public void pan(PointND<? extends java.lang.Number> deltas)
deltas
- Relative values to use for panning.Navigator.isPannable()
,
Navigator.setPannable(boolean)
public void reset()
public void setDefaultState()