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
    Range getDataRange​(ValueAxis axis)
    Returns the data range that should apply for the specified axis.
    void zoomHorizontalAxes​(double factor)
    Multiplies the range on the horizontal axis/axes by the specified factor.
    void zoomHorizontalAxes​(double lowerPercent, double upperPercent)
    Zooms in on the horizontal axes.
    void zoomVerticalAxes​(double factor)
    Multiplies the range on the vertical axis/axes by the specified factor.
    void zoomVerticalAxes​(double lowerPercent, double upperPercent)
    Zooms in on the vertical axes.
  • Method Details

    • getDataRange

      Range getDataRange​(ValueAxis axis)
      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.