Package com.luciad.multidimensional
Class TLcdDimensionAxis<T>
java.lang.Object
com.luciad.multidimensional.TLcdDimensionAxis<T>
This class represents a dimension axis. An axis can for example be a time axis or a vertical axis along which
data can be present. This class can be created using the builder pattern. See newBuilder() and
TLcdDimensionAxis.Builder.
- Since:
- 2015.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for dimension axes. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDimensionAxis<Date> Constant for an axis representing absolute times. -
Method Summary
Modifier and TypeMethodDescriptionReturns the givenTLcdDimensionAxisas a builder.booleanReturns a display name for this axis.getType()Returns the type of values along this axis.getUnit()Returns the unit of the values along this axis.inthashCode()booleanReturns true if the axis represents measures like height, altitude etc.static <T> TLcdDimensionAxis.Builder<T> Returns a new builder using which aTLcdDimensionAxiscan be constructed.toString()
-
Field Details
-
TIME_AXIS
Constant for an axis representing absolute times.
It can for example by used by
multidimensional modelswhere the information varies with time (realtime models), e.g. a model containing recorded positions of aircrafts.This axis assumes that the times are expressed as
Dates.- Since:
- 2016.1
-
-
Method Details
-
getType
Returns the type of values along this axis. For example, when this axis represents time, its type can beDate.class.- Returns:
- the type of values along this axis.
-
getUnit
Returns the unit of the values along this axis. For example, when this axis represents a distance, this method could return a distance unit. This method can returnnull. It is however encouraged to return a non-nullunit, for example to combine UI elements for different axes with a compatible or equal unit.- Returns:
- the unit of the values along this axis. Can be
null.
-
getDisplayName
Returns a display name for this axis.- Returns:
- a display name for this axis.
-
isPositive
public boolean isPositive()Returns true if the axis represents measures like height, altitude etc. Returns false if the axis represents measures like depth.- Returns:
- true if the axis is increasing (height etc), false otherwise (depth etc.)
-
newBuilder
Returns a new builder using which aTLcdDimensionAxiscan be constructed.- Returns:
- a new dimension axis builder.
-
asBuilder
Returns the givenTLcdDimensionAxisas a builder. This builder instance can be modify and used to create a newTLcdDimensionAxis.- Returns:
- the given
TLcdDimensionAxisas a builder.
-
toString
-
equals
-
hashCode
public int hashCode()
-