|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.MathType
visad.ScalarType
visad.RealType
visad.DisplayRealType
public class DisplayRealType
DisplayRealType is the class for display real scalar types. A fixed set is defined by the system, users may add others.
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 |
---|
public DisplayRealType(java.lang.String name, boolean single, double low, double hi, double def, Unit unit) throws VisADException
VisADException
public DisplayRealType(java.lang.String name, boolean single, double def, Unit unit) throws VisADException
VisADException
Method Detail |
---|
public int getIndex()
public static int getCount()
public DisplayTupleType getTuple()
public int getTupleIndex()
public void setTuple(DisplayTupleType t, int i)
t
- The DisplayTupleType of which this
DisplayRealType will be a component.i
- The 0-based component-index for this
DisplayRealType.public boolean isSingle()
public double getDefaultValue()
public boolean getRange(double[] range_values)
public boolean getText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |