Documentation of 'de.erichseifert.gral.plots.PlotNavigator' Java class
PlotNavigator
de.erichseifert.gral.plots

Class PlotNavigator

    • Constructor Detail

      • PlotNavigator

        public PlotNavigator(Plot plot,
                             java.util.List<java.lang.String> axesNames)
        Initializes a new instance that is responsible for zooming and panning the axes with the specified names of the specified plot.
        Parameters:
        plot - AbstractPlot to be zoomed and panned.
        axesNames - Names of the axes that should be controlled by this navigator.
      • PlotNavigator

        public PlotNavigator(Plot plot,
                             java.lang.String... axesNames)
        Initializes a new instance that is responsible for zooming and panning the axes with the specified names of the specified plot.
        Parameters:
        plot - AbstractPlot to be zoomed and panned.
        axesNames - Names of the axes that should be controlled by this navigator.
    • Method Detail

      • getZoom

        public double getZoom()
        Returns the current zoom level of the associated object.
        Returns:
        Current zoom level.
      • setZoom

        public void setZoom(double zoomNew)
        Sets the zoom level of the associated object to the specified value.
        Parameters:
        zoomNew - New zoom level.
      • getCenter

        public PointND<? extends java.lang.Number> getCenter()
        Returns the current center point. The returned point contains value in world units.
        Returns:
        Center point in world units.
      • pan

        public void pan(PointND<? extends java.lang.Number> deltas)
        Moves the center by the relative values of the specified point. The values of the point are in screen units.
        Parameters:
        deltas - Relative values to use for panning.
        See Also:
        Navigator.isPannable(), Navigator.setPannable(boolean)
      • 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.
      • reset

        public void reset()
        Sets the object's position and zoom level to the default state.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.