org.jfree.chart.plot

Interface Pannable

public interface Pannable

An interface that the ChartPanel class uses to communicate with plots that support panning.

Since: 1.0.13

Method Summary
PlotOrientationgetOrientation()
Returns the orientation of the plot.
booleanisDomainPannable()
Evaluates if the domain axis can be panned.
booleanisRangePannable()
Evaluates if the range axis can be panned.
voidpanDomainAxes(double percent, PlotRenderingInfo info, Point2D source)
Pans the domain axes by the specified percentage.
voidpanRangeAxes(double percent, PlotRenderingInfo info, Point2D source)
Pans the range axes by the specified percentage.

Method Detail

getOrientation

public PlotOrientation getOrientation()
Returns the orientation of the plot.

Returns: The orientation (never null).

isDomainPannable

public boolean isDomainPannable()
Evaluates if the domain axis can be panned.

Returns: true if the domain axis is pannable.

isRangePannable

public boolean isRangePannable()
Evaluates if the range axis can be panned.

Returns: true if the range axis is pannable.

panDomainAxes

public void panDomainAxes(double percent, PlotRenderingInfo info, Point2D source)
Pans the domain axes by the specified percentage.

Parameters: percent the distance to pan (as a percentage of the axis length). info the plot info source the source point where the pan action started.

panRangeAxes

public void panRangeAxes(double percent, PlotRenderingInfo info, Point2D source)
Pans the range axes by the specified percentage.

Parameters: percent the distance to pan (as a percentage of the axis length). info the plot info source the source point where the pan action started.

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.