public interface

Zoomable

org.jfree.chart.plot.Zoomable
Known Indirect Subclasses

Class Overview

A plot that is zoomable must implement this interface to provide a mechanism for the ChartPanel to control the zooming.

Summary

Public Methods
abstract PlotOrientation getOrientation()
Returns the orientation of the plot.
abstract boolean isDomainZoomable()
Returns true if the plot's domain is zoomable, and false otherwise.
abstract boolean isRangeZoomable()
Returns true if the plot's range is zoomable, and false otherwise.
abstract void zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source)
Zooms in on the domain axes.
abstract void zoomDomainAxes(double factor, PlotRenderingInfo state, Point2D source)
Multiplies the range on the domain axis/axes by the specified factor.
abstract void zoomDomainAxes(double factor, PlotRenderingInfo state, Point2D source, boolean useAnchor)
Multiplies the range on the domain axis/axes by the specified factor.
abstract void zoomRangeAxes(double factor, PlotRenderingInfo state, Point2D source)
Multiplies the range on the range axis/axes by the specified factor.
abstract void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source)
Zooms in on the range axes.
abstract void zoomRangeAxes(double factor, PlotRenderingInfo state, Point2D source, boolean useAnchor)
Multiplies the range on the range axis/axes by the specified factor.

Public Methods

public abstract PlotOrientation getOrientation ()

Returns the orientation of the plot.

Returns
  • The orientation.

public abstract boolean isDomainZoomable ()

Returns true if the plot's domain is zoomable, and false otherwise.

Returns
  • A boolean.

public abstract boolean isRangeZoomable ()

Returns true if the plot's range is zoomable, and false otherwise.

Returns
  • A boolean.

public abstract void zoomDomainAxes (double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source)

Zooms in on the domain axes. The source 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).

public abstract void zoomDomainAxes (double factor, PlotRenderingInfo state, Point2D source)

Multiplies the range on the domain axis/axes by the specified factor. The source 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).

public abstract void zoomDomainAxes (double factor, PlotRenderingInfo state, Point2D source, boolean useAnchor)

Multiplies the range on the domain axis/axes by the specified factor. The source 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?

public abstract void zoomRangeAxes (double factor, PlotRenderingInfo state, Point2D source)

Multiplies the range on the range axis/axes by the specified factor. The source 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).

public abstract void zoomRangeAxes (double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source)

Zooms in on the range axes. The source 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).

public abstract void zoomRangeAxes (double factor, PlotRenderingInfo state, Point2D source, boolean useAnchor)

Multiplies the range on the range axis/axes by the specified factor. The source 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?