visad
Class DisplayRealType
- java.lang.Object
-
- visad.MathType
-
- visad.ScalarType
-
- visad.RealType
-
- visad.DisplayRealType
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class DisplayRealType extends RealType
DisplayRealType is the class for display real scalar types. ScalarMaps map ScalarTypes to DisplayRealType. A fixed set is defined by the system, users may add others.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class visad.RealType
Altitude, Declination, Generic, INTERVAL, Latitude, Longitude, Radius, RightAscension, Time, TimeInterval, XAxis, YAxis, ZAxis
-
-
Constructor Summary
Constructors Constructor and Description DisplayRealType(java.lang.String name, boolean single, double low, double hi, double def, Unit unit)construct a DisplayRealTypeDisplayRealType(java.lang.String name, boolean single, double def, Unit unit)construct a DisplayRealType whose values are not scaled
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleangetCircular()doublegetDefaultValue()booleangetRange(double[] range_values)get the range of values is defined for thisbooleangetText()DisplayTupleTypegetTuple()intgetTupleIndex()booleanisSingle()voidsetTuple(DisplayTupleType t, int i, boolean c)Sets the DisplayTupleType to which this DisplayRealType will belong.-
Methods inherited from class visad.RealType
binary, buildShadowType, cloneDerivative, equals, equalsExceptName, equalsExceptNameButUnits, getAttributeMask, getDefaultSet, getDefaultUnit, getRealType, getRealType, getRealType, getRealType, getRealType, getRealType, getRealTypeByName, isInterval, main, missingData, prettyString, setDefaultSet, unary
-
Methods inherited from class visad.ScalarType
alias, compareTo, getAlias, getName, getNameWithBlanks, getOriginalName, getScalarTypeByName, hashCode, validateName
-
Methods inherited from class visad.MathType
addTimeAlias, findScalarType, guessMaps, prettyString, stringToType, toString
-
-
-
-
Constructor Detail
-
DisplayRealType
public DisplayRealType(java.lang.String name, boolean single, double low, double hi, double def, Unit unit) throws VisADExceptionconstruct a DisplayRealType- Parameters:
name- String name for this DisplayRealTypesingle- if true, this may occur at most once at a terminal node in the ShadowType tree; see Appendix A of the Developer's Guidelow- start of range of values for scalinghi- end of range of values for scalingdef- default valueunit- Unit for this DisplayRealType- Throws:
VisADException- a VisAD error occurred
-
DisplayRealType
public DisplayRealType(java.lang.String name, boolean single, double def, Unit unit) throws VisADExceptionconstruct a DisplayRealType whose values are not scaled- Parameters:
name- String name for this DisplayRealTypesingle- if true, this may occur at most once at a terminal node in the ShadowType tree; see Appendix A of the Developer's Guidedef- default valueunit- Unit for this DisplayRealType- Throws:
VisADException- a VisAD error occurred
-
-
Method Detail
-
getTuple
public DisplayTupleType getTuple()
- Returns:
- the unique DisplayTupleType that this DisplayRealType is a component of, or return null if it is not a component of any DisplayTupleType
-
getTupleIndex
public int getTupleIndex()
- Returns:
- index of this as component of a DisplayTupleType (-1 if it isn't a component of any DisplayTupleType)
-
setTuple
public void setTuple(DisplayTupleType t, int i, boolean c) throws VisADException
Sets the DisplayTupleType to which this DisplayRealType will belong.- Parameters:
t- The DisplayTupleType of which this DisplayRealType will be a component.i- The 0-based index for this as a component of t.c- Flag indicating whether t has a CoordinateSystem whose toReference() is periodic in this with period 2*pi (or equivalent according to unit).- Throws:
VisADException- a VisAD error occurred.
-
isSingle
public boolean isSingle()
- Returns:
- flag indicating whether this is 'single'
-
getDefaultValue
public double getDefaultValue()
- Returns:
- default value for this DisplayRealType
-
getRange
public boolean getRange(double[] range_values)
get the range of values is defined for this- Parameters:
range_values- double[2] array used to return low and hi values of the range (if this DisplayRealType has a range)- Returns:
- flag indicating whether this has a range (i.e., is scaled)
-
getText
public boolean getText()
- Returns:
- flag indicating whether this DisplayRealType is really a text type
-
getCircular
public boolean getCircular()
- Returns:
- flag indicating whether this has a DisplayTupleType, which has a CoordinateSystem whose toReference() is periodic in this with period 2*pi (or equivalent according to unit)
-
-
DMelt 3.0 © DataMelt by jWork.ORG