Package org.jfree.chart.plot
Interface Zoomable
-
- All Known Implementing Classes:
CategoryPlot
,CombinedDomainCategoryPlot
,CombinedDomainXYPlot
,CombinedRangeCategoryPlot
,CombinedRangeXYPlot
,FastScatterPlot
,PolarPlot
,ThermometerPlot
,XYPlot
public interface Zoomable
A plot that is zoomable must implement this interface to provide a mechanism for theChartPanel
to control the zooming.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PlotOrientation
getOrientation()
Returns the orientation of the plot.boolean
isDomainZoomable()
Returnstrue
if the plot's domain is zoomable, andfalse
otherwise.boolean
isRangeZoomable()
Returnstrue
if the plot's range is zoomable, andfalse
otherwise.void
zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, java.awt.geom.Point2D source)
Zooms in on the domain axes.void
zoomDomainAxes(double factor, PlotRenderingInfo state, java.awt.geom.Point2D source)
Multiplies the range on the domain axis/axes by the specified factor.void
zoomDomainAxes(double factor, PlotRenderingInfo state, java.awt.geom.Point2D source, boolean useAnchor)
Multiplies the range on the domain axis/axes by the specified factor.void
zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, java.awt.geom.Point2D source)
Zooms in on the range axes.void
zoomRangeAxes(double factor, PlotRenderingInfo state, java.awt.geom.Point2D source)
Multiplies the range on the range axis/axes by the specified factor.void
zoomRangeAxes(double factor, PlotRenderingInfo state, java.awt.geom.Point2D source, boolean useAnchor)
Multiplies the range on the range axis/axes by the specified factor.
-
-
-
Method Detail
-
isDomainZoomable
boolean isDomainZoomable()
Returnstrue
if the plot's domain is zoomable, andfalse
otherwise.- Returns:
- A boolean.
- See Also:
isRangeZoomable()
-
isRangeZoomable
boolean isRangeZoomable()
Returnstrue
if the plot's range is zoomable, andfalse
otherwise.- Returns:
- A boolean.
- See Also:
isDomainZoomable()
-
getOrientation
PlotOrientation getOrientation()
Returns the orientation of the plot.- Returns:
- The orientation (never
null
).
-
zoomDomainAxes
void zoomDomainAxes(double factor, PlotRenderingInfo state, java.awt.geom.Point2D source)
Multiplies the range on the domain axis/axes by the specified factor. Thesource
point can be used in some cases to identify a subplot, or to determine the center of zooming (refer to the documentation of the implementing class for details).- Parameters:
factor
- the zoom factor.state
- the plot state.source
- the source point (in Java2D coordinates).- See Also:
zoomRangeAxes(double, PlotRenderingInfo, Point2D)
-
zoomDomainAxes
void zoomDomainAxes(double factor, PlotRenderingInfo state, java.awt.geom.Point2D source, boolean useAnchor)
Multiplies the range on the domain axis/axes by the specified factor. Thesource
point can be used in some cases to identify a subplot, or to determine the center of zooming (refer to the documentation of the implementing class for details).- Parameters:
factor
- the zoom factor.state
- the plot state.source
- the source point (in Java2D coordinates).useAnchor
- use source point as zoom anchor?- See Also:
zoomRangeAxes(double, PlotRenderingInfo, Point2D, boolean)
-
zoomDomainAxes
void zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, java.awt.geom.Point2D source)
Zooms in on the domain axes. Thesource
point can be used in some cases to identify a subplot for zooming.- Parameters:
lowerPercent
- the new lower bound.upperPercent
- the new upper bound.state
- the plot state.source
- the source point (in Java2D coordinates).- See Also:
zoomRangeAxes(double, double, PlotRenderingInfo, Point2D)
-
zoomRangeAxes
void zoomRangeAxes(double factor, PlotRenderingInfo state, java.awt.geom.Point2D source)
Multiplies the range on the range axis/axes by the specified factor. Thesource
point can be used in some cases to identify a subplot, or to determine the center of zooming (refer to the documentation of the implementing class for details).- Parameters:
factor
- the zoom factor.state
- the plot state.source
- the source point (in Java2D coordinates).- See Also:
zoomDomainAxes(double, PlotRenderingInfo, Point2D)
-
zoomRangeAxes
void zoomRangeAxes(double factor, PlotRenderingInfo state, java.awt.geom.Point2D source, boolean useAnchor)
Multiplies the range on the range axis/axes by the specified factor. Thesource
point can be used in some cases to identify a subplot, or to determine the center of zooming (refer to the documentation of the implementing class for details).- Parameters:
factor
- the zoom factor.state
- the plot state.source
- the source point (in Java2D coordinates).useAnchor
- use source point as zoom anchor?- See Also:
zoomDomainAxes(double, PlotRenderingInfo, Point2D)
-
zoomRangeAxes
void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, java.awt.geom.Point2D source)
Zooms in on the range axes. Thesource
point can be used in some cases to identify a subplot for zooming.- Parameters:
lowerPercent
- the new lower bound.upperPercent
- the new upper bound.state
- the plot state.source
- the source point (in Java2D coordinates).- See Also:
zoomDomainAxes(double, double, PlotRenderingInfo, Point2D)
-
-