Klasse PiePlot.PiePlotNavigator
java.lang.Object
de.erichseifert.gral.navigation.AbstractNavigator
de.erichseifert.gral.plots.PiePlot.PiePlotNavigator
- Alle implementierten Schnittstellen:
NavigationListener, Navigator
- Umschließende Klasse:
PiePlot
Navigator implementation for pie plots. Zooming changes the
RADIUS setting and panning the CENTER setting.-
Feldübersicht
Von Klasse geerbte Felder AbstractNavigator
DEFAULT_ZOOM_FACTOR, DEFAULT_ZOOM_MAX, DEFAULT_ZOOM_MIN -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPiePlotNavigator(PiePlot plot) Initializes a new instance with a pie plot to be navigated. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungReturns the current center point.doublegetZoom()Returns the current zoom level of the associated object.voidMoves the center by the relative values of the specified point.voidreset()Sets the object's position and zoom level to the default state.voidSets a new center point.voidSets the current state as the default state of the object.voidsetZoom(double zoomNew) Sets the zoom level of the associated object to the specified value.Von Klasse geerbte Methoden AbstractNavigator
addNavigationListener, centerChanged, connect, disconnect, fireCenterChanged, fireZoomChanged, getDirection, getZoomFactor, getZoomMax, getZoomMin, isPannable, isZoomable, removeNavigationListener, setDirection, setPannable, setZoomable, setZoomFactor, setZoomMax, setZoomMin, zoomAt, zoomChanged, zoomIn, zoomInAt, zoomOut, zoomOutAt
-
Konstruktordetails
-
PiePlotNavigator
Initializes a new instance with a pie plot to be navigated.- Parameter:
plot- Pie plot.
-
-
Methodendetails
-
getZoom
public double getZoom()Returns the current zoom level of the associated object.- Gibt zurück:
- Current zoom level.
-
setZoom
public void setZoom(double zoomNew) Sets the zoom level of the associated object to the specified value.- Parameter:
zoomNew- New zoom level.
-
getCenter
-
setCenter
-
pan
-
reset
public void reset()Sets the object's position and zoom level to the default state. -
setDefaultState
public void setDefaultState()Sets the current state as the default state of the object. Resetting the navigator will then return to the default state.
-