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

public static class PiePlot.PiePlotNavigator extends AbstractNavigator
Navigator implementation for pie plots. Zooming changes the RADIUS setting and panning the CENTER setting.
  • Konstruktordetails

    • PiePlotNavigator

      public PiePlotNavigator(PiePlot plot)
      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

      public PointND<? extends Number> getCenter()
      Returns the current center point. The returned point contains value in world units.
      Gibt zurück:
      Center point in world units.
    • setCenter

      public void setCenter(PointND<? extends Number> center)
      Sets a new center point. The values of the point are in world units.
      Parameter:
      center - New center point in world units.
      Siehe auch:
    • pan

      public void pan(PointND<? extends Number> deltas)
      Moves the center by the relative values of the specified point. The values of the point are in screen units.
      Parameter:
      deltas - Relative values to use for panning.
      Siehe auch:
    • 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.