public static class XYPlot.XYPlotNavigator extends PlotNavigator
PlotNavigator.NavigationInfo
DEFAULT_ZOOM_FACTOR, DEFAULT_ZOOM_MAX, DEFAULT_ZOOM_MIN
Constructor and Description |
---|
XYPlot.XYPlotNavigator(XYPlot plot)
Initializes a new Navigator for two-dimensional plots with the
default axes.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getDimensions()
Returns the number dimensions the associated plot can handle.
|
protected Number |
getDimensionValue(String axisName,
PointND<? extends Number> values)
Return the index that can be used to access data for the axis with the
specified name.
|
void |
setDirection(NavigationDirection direction)
Sets the direction of the components that will be taken into account for
zooming and panning.
|
getAxes, getCenter, getInfo, getPlot, getZoom, pan, reset, setAxes, setAxes, setCenter, setDefaultState, setZoom
addNavigationListener, centerChanged, connect, disconnect, fireCenterChanged, fireZoomChanged, getDirection, getZoomFactor, getZoomMax, getZoomMin, isPannable, isZoomable, removeNavigationListener, setPannable, setZoomable, setZoomFactor, setZoomMax, setZoomMin, zoomChanged, zoomIn, zoomOut
public XYPlot.XYPlotNavigator(XYPlot plot)
plot
- Two-dimensional plot that should be controlled.public void setDirection(NavigationDirection direction)
AbstractNavigator
setDirection
in interface Navigator
setDirection
in class AbstractNavigator
direction
- Direction.protected Number getDimensionValue(String axisName, PointND<? extends Number> values)
PlotNavigator
PlotNavigator.getDimensions()
.getDimensionValue
in class PlotNavigator
axisName
- Name of the axis.values
- Data values.protected int getDimensions()
PlotNavigator
PiePlot
this is 1, for a
two-dimensional plot like XYPlot
this is 2, and so on.getDimensions
in class PlotNavigator
Copyright © 2009-2013. All Rights Reserved.