public interface IAxis
Minimal axis interface, inspired by org.eclipse.swtchart.IAxis
Since:
6.0
Author:
Matthew Khouzam
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getDataCoordinate(int pixelCoordinate)
    Gets the data coordinate corresponding to the given pixel coordinate on plot area.
    int
    getPixelCoordinate(double dataCoordinate)
    Gets the pixel coordinate corresponding to the given data coordinate.
    Gets the axis range.
    void
    Sets the axis range.
  • Method Details

    • getRange

      AxisRange getRange()
      Gets the axis range.
      Returns:
      the axis range
    • setRange

      void setRange(AxisRange range)
      Sets the axis range.
      Parameters:
      range - the axis range
    • getPixelCoordinate

      int getPixelCoordinate(double dataCoordinate)
      Gets the pixel coordinate corresponding to the given data coordinate.
      Parameters:
      dataCoordinate - the data coordinate
      Returns:
      the pixel coordinate on plot area
    • getDataCoordinate

      double getDataCoordinate(int pixelCoordinate)
      Gets the data coordinate corresponding to the given pixel coordinate on plot area.
      Parameters:
      pixelCoordinate - the pixel coordinate on plot area
      Returns:
      the data coordinate