org.jfree.chart.plot
Interface Zoomable
- CategoryPlot, CombinedDomainCategoryPlot, CombinedDomainXYPlot, CombinedRangeCategoryPlot, CombinedRangeXYPlot, FastScatterPlot, PolarPlot, ThermometerPlot, XYPlot
A plot that is zoomable must implement this interface to provide a
mechanism for the
ChartPanel
to control the zooming.
PlotOrientation | getOrientation() - Returns the orientation of the plot.
|
boolean | isDomainZoomable() - Returns
true if the plot's domain is zoomable, and
false otherwise.
|
boolean | isRangeZoomable() - Returns
true if the plot's range is zoomable, and
false otherwise.
|
void | zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source) - Zooms in on the domain axes.
|
void | zoomDomainAxes(double factor, PlotRenderingInfo state, Point2D source) - Multiplies the range on the domain axis/axes by the specified factor.
|
void | zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source) - Zooms in on the range axes.
|
void | zoomRangeAxes(double factor, PlotRenderingInfo state, Point2D source) - Multiplies the range on the range axis/axes by the specified factor.
|
isDomainZoomable
public boolean isDomainZoomable()
Returns true
if the plot's domain is zoomable, and
false
otherwise.
isRangeZoomable
public boolean isRangeZoomable()
Returns true
if the plot's range is zoomable, and
false
otherwise.
zoomDomainAxes
public void zoomDomainAxes(double lowerPercent,
double upperPercent,
PlotRenderingInfo state,
Point2D source)
Zooms in on the domain axes.
lowerPercent
- the new lower bound.upperPercent
- the new upper bound.state
- the plot state.source
- the source point (in Java2D coordinates).
zoomDomainAxes
public void zoomDomainAxes(double factor,
PlotRenderingInfo state,
Point2D source)
Multiplies the range on the domain axis/axes by the specified factor.
factor
- the zoom factor.state
- the plot state.source
- the source point (in Java2D coordinates).
zoomRangeAxes
public void zoomRangeAxes(double lowerPercent,
double upperPercent,
PlotRenderingInfo state,
Point2D source)
Zooms in on the range axes.
lowerPercent
- the new lower bound.upperPercent
- the new upper bound.state
- the plot state.source
- the source point (in Java2D coordinates).
zoomRangeAxes
public void zoomRangeAxes(double factor,
PlotRenderingInfo state,
Point2D source)
Multiplies the range on the range axis/axes by the specified factor.
factor
- the zoom factor.state
- the plot state.source
- the source point (in Java2D coordinates).