visad
Class DisplayRealType

java.lang.Object
  extended by visad.MathType
      extended by visad.ScalarType
          extended by visad.RealType
              extended by 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. 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
DisplayRealType(java.lang.String name, boolean single, double low, double hi, double def, Unit unit)
          construct a DisplayRealType with given name (used only for user interfaces), single flag (if true, this DisplayRealType may only occur once in a path to a terminal node, as defined in Appendix A), (low, hi) range of values, default value = def, and unit
DisplayRealType(java.lang.String name, boolean single, double def, Unit unit)
          construct a DisplayRealType with given name (used only for user interfaces), single flag (if true, this DisplayRealType may only occur once in a path to a terminal node, as defined in Appendix A), default value = def, and unit; this DisplayRealType is not scaled (no range of values)
 
Method Summary
static int getCount()
           
 double getDefaultValue()
          return default value for this DisplayRealType
 int getIndex()
           
 boolean getRange(double[] range_values)
          return true is a range of values is defined for this DisplayRealType, and return the range in range_values[0] and range_values[1]; range_values must be passed in as a double[2] array
 boolean getText()
           
 DisplayTupleType getTuple()
          return the unique DisplayTupleType that this DisplayRealType is a component of, or return null if it is not a component of any DisplayTupleType
 int getTupleIndex()
          return index of this as component of a DisplayTupleType
 boolean isSingle()
          return true if this DisplayRealType is 'single'
 void setTuple(DisplayTupleType t, int i)
          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, readResolve, validateName
 
Methods inherited from class visad.MathType
addTimeAlias, findScalarType, guessMaps, prettyString, stringToType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisplayRealType

public DisplayRealType(java.lang.String name,
                       boolean single,
                       double low,
                       double hi,
                       double def,
                       Unit unit)
                throws VisADException
construct a DisplayRealType with given name (used only for user interfaces), single flag (if true, this DisplayRealType may only occur once in a path to a terminal node, as defined in Appendix A), (low, hi) range of values, default value = def, and unit

Throws:
VisADException

DisplayRealType

public DisplayRealType(java.lang.String name,
                       boolean single,
                       double def,
                       Unit unit)
                throws VisADException
construct a DisplayRealType with given name (used only for user interfaces), single flag (if true, this DisplayRealType may only occur once in a path to a terminal node, as defined in Appendix A), default value = def, and unit; this DisplayRealType is not scaled (no range of values)

Throws:
VisADException
Method Detail

getIndex

public int getIndex()

getCount

public static int getCount()

getTuple

public DisplayTupleType getTuple()
return 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()
return index of this as component of a DisplayTupleType


setTuple

public void setTuple(DisplayTupleType t,
                     int i)
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 component-index for this DisplayRealType.

isSingle

public boolean isSingle()
return true if this DisplayRealType is 'single'


getDefaultValue

public double getDefaultValue()
return default value for this DisplayRealType


getRange

public boolean getRange(double[] range_values)
return true is a range of values is defined for this DisplayRealType, and return the range in range_values[0] and range_values[1]; range_values must be passed in as a double[2] array


getText

public boolean getText()