public class AxisTransformLambda extends Object implements AxisTransform, Serializable
| Constructor and Description |
|---|
AxisTransformLambda()
Creates an AxisTransformLambda instance where all dataset values are visible in the plot
and the dataset to axis space transform and its inverse are the identity function.
|
AxisTransformLambda(DoubleUnaryOperator dataToAxis,
DoubleUnaryOperator axisToData)
Creates an AxisTransformLambda instance where all dataset values are visible in the plot.
|
AxisTransformLambda(DoubleUnaryOperator dataToAxis,
DoubleUnaryOperator axisToData,
DoublePredicate isVisible)
Creates an AxisTransformLambda instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
inverseTransform(double axisValue) |
boolean |
isVisible(double dataValue) |
double |
transform(double dataValue) |
public AxisTransformLambda(DoubleUnaryOperator dataToAxis, DoubleUnaryOperator axisToData, DoublePredicate isVisible)
dataToAxis - transform from dataset space to axis spaceaxisToData - transform from axis space to dataset spaceisVisible - function that determines if a particular data point should be displayedpublic AxisTransformLambda(DoubleUnaryOperator dataToAxis, DoubleUnaryOperator axisToData)
dataToAxis - transform from dataset space to axis spaceaxisToData - transform from axis space to dataset spacepublic AxisTransformLambda()
public double transform(double dataValue)
transform in interface com.jfreechartextensions.axistransformations.BasicAxisTransformpublic double inverseTransform(double axisValue)
inverseTransform in interface com.jfreechartextensions.axistransformations.BasicAxisTransformpublic boolean isVisible(double dataValue)
isVisible in interface com.jfreechartextensions.axistransformations.BasicAxisTransform