|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.ScalarMap
visad.ConstantMap
public class ConstantMap
mapping from constant to DisplayRealType
Constructor Summary | |
---|---|
ConstantMap(double constant,
DisplayRealType display_scalar)
construct a ConstantMap with a double constant; display_scalar may not be Animation, SelectValue, SelectRange or IsoContour |
|
ConstantMap(Real constant,
DisplayRealType display_scalar)
construct a ConstantMap with a Real constant; display_scalar may not be Animation, SelectValue, SelectRange or IsoContour |
Method Summary | |
---|---|
java.lang.Object |
clone()
Create and return a copy of this ScalarMap. |
protected int |
compareTo(ConstantMap that)
Compares this instance to another instance. |
int |
compareTo(java.lang.Object obj)
Compares this instance to another object. |
protected int |
compareTo(ScalarMap that)
Compares this instance to a ScalarMap. |
boolean |
equals(java.lang.Object o)
Indicates if this ScalarMap is the same as another object. |
static boolean |
getAllowMultipleUseKludge()
|
double |
getConstant()
|
static void |
setAllowMultipleUseKludge(boolean k)
|
java.lang.String |
toString(java.lang.String pre)
Returns a string representation of the ScalarMap with the specified prefix prepended. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstantMap(double constant, DisplayRealType display_scalar) throws VisADException
VisADException
public ConstantMap(Real constant, DisplayRealType display_scalar) throws VisADException
VisADException
Method Detail |
---|
public static void setAllowMultipleUseKludge(boolean k)
public static boolean getAllowMultipleUseKludge()
public double getConstant()
public boolean equals(java.lang.Object o)
ScalarMap
equals
in class ScalarMap
o
- The other object.
true
if and only if the other object is a
ScalarMap and compares equal to this ScalarMap.public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
compareTo
in class ScalarMap
obj
- The other object.
protected int compareTo(ConstantMap that)
that
- The other instance.
protected int compareTo(ScalarMap that)
compareTo
in class ScalarMap
that
- The ScalarMap.
public java.lang.Object clone()
ScalarMap
clone
in class ScalarMap
null
if a copy couldn't
be created.public java.lang.String toString(java.lang.String pre)
ScalarMap
toString
in class ScalarMap
pre
- prefix to prepend to the representation
pre
prepended.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |