Interface AxisTransform

All Known Implementing Classes:
AxisTransformBusinessCalendar, AxisTransformLambda, AxisTransforms

public interface AxisTransform
Function applied to transform data before plotting. For example, a log plot is a logarithmic transform of an axis. Determines how dataset values are displayed in the plot by transforming dataset values into Axis space and back. For example, if the forward transform is x -> x^0.5, a dataset value of 1 maps to 1 in Axis space; a dataset value of 4 maps to 2. In the plot these values will be displayed close together.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    inverseTransform(double axisValue)
    Transforms a point in Axis space to dataset space.
    boolean
    isVisible(double dataValue)
    Gets whether a data point is visible in the plot.
    double
    transform(double dataValue)
    Transforms a data point to Axis space.
  • Method Details

    • transform

      double transform(double dataValue)
      Transforms a data point to Axis space.
      Parameters:
      dataValue - data point
      Returns:
      corresponding value in Axis space
    • inverseTransform

      double inverseTransform(double axisValue)
      Transforms a point in Axis space to dataset space.
      Parameters:
      axisValue - Axis space data point
      Returns:
      corresponding value in dataset space
    • isVisible

      boolean isVisible(double dataValue)
      Gets whether a data point is visible in the plot.
      Parameters:
      dataValue - data point
      Returns:
      whether dataValue is visible in the plot