Package org.jfree.chart.plot
Interface ValueAxisPlot
- All Known Implementing Classes:
CategoryPlot,CombinedDomainCategoryPlot,CombinedDomainXYPlot,CombinedRangeCategoryPlot,CombinedRangeXYPlot,ContourPlot,FastScatterPlot,PolarPlot,ThermometerPlot,XYPlot
public interface ValueAxisPlot
An interface that is implemented by plots that use a
ValueAxis,
providing a standard method to find the current data range.-
Method Summary
Modifier and Type Method Description RangegetDataRange(ValueAxis axis)Returns the data range that should apply for the specified axis.voidzoomHorizontalAxes(double factor)Multiplies the range on the horizontal axis/axes by the specified factor.voidzoomHorizontalAxes(double lowerPercent, double upperPercent)Zooms in on the horizontal axes.voidzoomVerticalAxes(double factor)Multiplies the range on the vertical axis/axes by the specified factor.voidzoomVerticalAxes(double lowerPercent, double upperPercent)Zooms in on the vertical axes.
-
Method Details
-
getDataRange
Returns the data range that should apply for the specified axis.- Parameters:
axis- the axis.- Returns:
- The data range.
-
zoomHorizontalAxes
void zoomHorizontalAxes(double factor)Multiplies the range on the horizontal axis/axes by the specified factor.- Parameters:
factor- the zoom factor.
-
zoomHorizontalAxes
void zoomHorizontalAxes(double lowerPercent, double upperPercent)Zooms in on the horizontal axes.- Parameters:
lowerPercent- the new lower bound.upperPercent- the new upper bound.
-
zoomVerticalAxes
void zoomVerticalAxes(double factor)Multiplies the range on the vertical axis/axes by the specified factor.- Parameters:
factor- the zoom factor.
-
zoomVerticalAxes
void zoomVerticalAxes(double lowerPercent, double upperPercent)Zooms in on the vertical axes.- Parameters:
lowerPercent- the new lower bound.upperPercent- the new upper bound.
-