org.jplot2d.axtype
Class AxisType
- java.lang.Object
-
- org.jplot2d.axtype.AxisType
-
- Direct Known Subclasses:
- DateAxisType, DeclinationAxisType, NumberAxisType, RightAscensionAxisType, TAIMicrosAxisType
public abstract class AxisType extends java.lang.ObjectAn axis type defines a viewport axis transform type(LINEAR/LOGARITHMIC) and a preferred tick algorithm.
-
-
Field Summary
Fields Modifier and Type Field and Description static AxisTypeDATEstatic AxisTypeDATE_UTC_USstatic AxisTypeDECLINATIONstatic AxisTypeNUMBERstatic AxisTypeRIGHT_ASCENSIONstatic AxisTypeTAI_MICROS_UTC_US
-
Constructor Summary
Constructors Constructor and Description AxisType(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract booleancanSupport(TransformType txfType)abstract RangegetBoundary(TransformType txfType)The boundary of the axis nature.RangegetCircularRange()Some axis has a circular nature, such as angle.abstract TransformTypegetDefaultTransformType()abstract RangegetDefaultWorldRange(TransformType txfType)java.lang.StringgetName()abstract TickAlgorithmgetTickAlgorithm(TransformType txfType, AxisTickTransform tickTransform)Returns a TickAlgorithm by the given transform type and tick transform, ornullif the given tick transform is not allowed.java.lang.StringtoString()static AxisTypevalueOf(java.lang.String name)static AxisType[]values()Returns all axis types in a array.
-
-
-
Field Detail
-
NUMBER
public static final AxisType NUMBER
-
DATE
public static final AxisType DATE
-
DATE_UTC_US
public static final AxisType DATE_UTC_US
-
TAI_MICROS_UTC_US
public static final AxisType TAI_MICROS_UTC_US
-
RIGHT_ASCENSION
public static final AxisType RIGHT_ASCENSION
-
DECLINATION
public static final AxisType DECLINATION
-
-
Method Detail
-
getName
public java.lang.String getName()
-
canSupport
public abstract boolean canSupport(TransformType txfType)
-
getDefaultTransformType
public abstract TransformType getDefaultTransformType()
-
getBoundary
public abstract Range getBoundary(TransformType txfType)
The boundary of the axis nature. The returned boundary is never inverted. For circular axis, this boundary is valid limit for data values, not for displayed label values.- Returns:
-
getDefaultWorldRange
public abstract Range getDefaultWorldRange(TransformType txfType)
- Returns:
- the default world range when the axis contains no valid data
-
getTickAlgorithm
public abstract TickAlgorithm getTickAlgorithm(TransformType txfType, AxisTickTransform tickTransform)
Returns a TickAlgorithm by the given transform type and tick transform, ornullif the given tick transform is not allowed.- Parameters:
txfType- the transform typetickTransform- the tick transform, can benull- Returns:
- a TickAlgorithm
-
getCircularRange
public Range getCircularRange()
Some axis has a circular nature, such as angle. This range is a canonical range that all values should displayed in the range.- Returns:
- a range to represent this axis' circular nature, or
nullif this axis is not circular
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
valueOf
public static AxisType valueOf(java.lang.String name)
-
values
public static AxisType[] values()
Returns all axis types in a array.- Returns:
- all axis types
-
-
DMelt 3.0 © DataMelt by jWork.ORG