Enum Class AxisTransforms
- All Implemented Interfaces:
AxisTransform
,Serializable
,Comparable<AxisTransforms>
,java.lang.constant.Constable
Common
AxisTransform
s.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AxisTransform
axisTransform
(String name) Returns an axis transform.static String[]
Returns the names of available axis transforms.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.static AxisTransforms
Returns the enum constant of this class with the specified name.static AxisTransforms[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOG
Natural logarithm. Non-positive data values are not displayed. -
SQRT
Square root. Negative data values are not displayed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
transform
public double transform(double dataValue) Description copied from interface:AxisTransform
Transforms a data point to Axis space.- Specified by:
transform
in interfaceAxisTransform
- Parameters:
dataValue
- data point- Returns:
- corresponding value in Axis space
-
inverseTransform
public double inverseTransform(double axisValue) Description copied from interface:AxisTransform
Transforms a point in Axis space to dataset space.- Specified by:
inverseTransform
in interfaceAxisTransform
- Parameters:
axisValue
- Axis space data point- Returns:
- corresponding value in dataset space
-
isVisible
public boolean isVisible(double dataValue) Description copied from interface:AxisTransform
Gets whether a data point is visible in the plot.- Specified by:
isVisible
in interfaceAxisTransform
- Parameters:
dataValue
- data point- Returns:
- whether
dataValue
is visible in the plot
-
axisTransform
Returns an axis transform.- Parameters:
name
- case insensitive transform name.- Returns:
- requested axis transform.
- Throws:
IllegalArgumentException
-name
must not be null.
-
axisTransformNames
Returns the names of available axis transforms.- Returns:
- an array of the available axis transform names.
-