public class ParamInfo
extends java.lang.Object
ParamDefaultsEditor
to hold the default display information for a parameter.
Holds a simple min/max range and other metadata about a parameters data, including
unit, color table, and contouring values; with get and set methods.Constructor and Description |
---|
ParamInfo()
ctor
|
ParamInfo(ParamInfo other)
Create this ParamInfo.
|
ParamInfo(java.lang.String name,
java.lang.String colorTableName,
Range range,
ContourInfo ci,
visad.Unit displayUnit)
Create this ParamInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
clearColorTableName()
Set the colorTableName to null
|
void |
clearContourInfo()
Set the contourInfo to null
|
void |
clearDisplayUnit()
Set the displayUnit to null
|
void |
clearRange()
Set the range to null
|
boolean |
equals(java.lang.Object o)
Override equals
|
java.lang.String |
getColorTableName()
Get the color table name
|
ContourInfo |
getContourInfo()
Get the
ContourInfo |
visad.Unit |
getDisplayUnit()
Get the displayUnit
|
double |
getMax()
Get the maximum range value or 0.0 if range is undefined.
|
double |
getMin()
Get the minimum range value or 0.0 if range is undefined.
|
java.lang.String |
getName()
Get the name
|
Range |
getRange()
Get the
Range |
boolean |
hasColorTableName()
Does this have a color table name defined
|
boolean |
hasContourInfo()
Does this have a ContourInfo defined
|
boolean |
hasDisplayUnit()
Does this have a display unit defined
|
boolean |
hasRange()
Does this have a Range defined
|
void |
initWith(ParamInfo that)
Copy the state
|
void |
setColorTableName(java.lang.String value)
Set the color table name
|
void |
setContourInfo(ContourInfo value)
Set the
ContourInfo |
void |
setDisplayUnit(visad.Unit newUnit)
Set the displayUnit
|
void |
setMax(double m)
Set the maximum value for the Range.
|
void |
setMin(double m)
Set the minimum value for the Range.
|
void |
setName(java.lang.String value)
Set the nae
|
void |
setRange(Range value)
Set the range with the given
Range value |
java.lang.String |
toString()
Return the name
|
public ParamInfo()
public ParamInfo(ParamInfo other)
other
- The ParamInfo to initialize frompublic ParamInfo(java.lang.String name, java.lang.String colorTableName, Range range, ContourInfo ci, visad.Unit displayUnit)
name
- The namecolorTableName
- The name of the color tablerange
- The rangeci
- The ContourInfodisplayUnit
- The display unitpublic void initWith(ParamInfo that)
that
- Other object to init withpublic boolean hasRange()
public boolean hasContourInfo()
public boolean hasDisplayUnit()
public boolean hasColorTableName()
public void setMin(double m)
m
- The minimum range valuepublic void setMax(double m)
m
- The maximum range valuepublic double getMin()
public double getMax()
public void setRange(Range value)
Range
valuevalue
- The new range valuepublic void setContourInfo(ContourInfo value)
ContourInfo
value
- The new contour infopublic ContourInfo getContourInfo()
ContourInfo
public void setColorTableName(java.lang.String value)
value
- The color table namepublic java.lang.String getColorTableName()
public void clearColorTableName()
public void clearDisplayUnit()
public void clearRange()
public void clearContourInfo()
public void setName(java.lang.String value)
value
- The new name valuepublic java.lang.String getName()
public visad.Unit getDisplayUnit()
public void setDisplayUnit(visad.Unit newUnit)
newUnit
- The new display unitpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object