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
Modifier and TypeClassDescriptionstatic final class
Builder for dimension axes. -
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDimensionAxis
<Date> Constant for an axis representing absolute times. -
Method Summary
Modifier and TypeMethodDescriptionReturns the givenTLcdDimensionAxis
as a builder.boolean
Returns 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.int
hashCode()
boolean
Returns true if the axis represents measures like height, altitude etc.static <T> TLcdDimensionAxis.Builder
<T> Returns a new builder using which aTLcdDimensionAxis
can be constructed.toString()
-
Field Details
-
TIME_AXIS
Constant for an axis representing absolute times.
It can for example by used by
multidimensional models
where 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
Date
s.- 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-null
unit, 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 aTLcdDimensionAxis
can be constructed.- Returns:
- a new dimension axis builder.
-
asBuilder
Returns the givenTLcdDimensionAxis
as a builder. This builder instance can be modify and used to create a newTLcdDimensionAxis
.- Returns:
- the given
TLcdDimensionAxis
as a builder.
-
toString
-
equals
-
hashCode
public int hashCode()
-