|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.ScalarMap
visad.ConstantMap
mapping from constant to DisplayRealType
| Field Summary |
| Fields inherited from class visad.ScalarMap |
displayRange, isScaled, ValueIndex |
| Constructor Summary | |
ConstantMap(double constant,
DisplayRealType display_scalar)
construct a ConstantMap with a double constant |
|
ConstantMap(Real constant,
DisplayRealType display_scalar)
construct a ConstantMap with a Real constant; |
|
| Method Summary | |
Object |
clone()
Create and return a copy of this ScalarMap. |
protected int |
compareTo(ConstantMap that)
Compares this instance to another instance. |
int |
compareTo(Object obj)
Compares this instance to another object. |
protected int |
compareTo(ScalarMap that)
Compares this instance to a ScalarMap. |
boolean |
equals(Object o)
Indicates whether or not this instance equals an Object. |
static boolean |
getAllowMultipleUseKludge()
|
double |
getConstant()
|
static void |
setAllowMultipleUseKludge(boolean k)
allow ConstantMaps to be used in multiple calls to DisplayImpl.addReference() or addReferences() such multiple use was not checked in the early releases of VisAD, and this method allows applications to easily avoid more extensive changes |
(package private) void |
setAspectCartesian(double[] aspect)
do nothing over-ride of ScalarMap method |
(package private) void |
setControl()
do nothing over-ride of ScalarMap method |
String |
toString(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
constant - - double equated to DisplayRealTypedisplay_scalar - - DisplayRealType set to constant
(may not be Animation, SelectValue, SelectRange or IsoContour)
VisADException - - a VisAD error occurred
public ConstantMap(Real constant,
DisplayRealType display_scalar)
throws VisADException
constant - - Real whose value is equated to DisplayRealTypedisplay_scalar - - DisplayRealType set to constant
(may not be Animation, SelectValue, SelectRange or IsoContour)
VisADException - - a VisAD error occurred| Method Detail |
public static void setAllowMultipleUseKludge(boolean k)
k - - true to allow multiple usepublic static boolean getAllowMultipleUseKludge()
void setControl()
throws VisADException,
RemoteException
setControl in class ScalarMapVisADException - VisAD failure
RemoteException - Java RMI failurepublic double getConstant()
public boolean equals(Object o)
equals in class ScalarMapo - - A object.
true if and only if this instance is equal to o.public int compareTo(Object obj)
compareTo in interface ComparablecompareTo in class ScalarMapobj - The other object.
protected int compareTo(ConstantMap that)
that - The other instance.
protected int compareTo(ScalarMap that)
compareTo in class ScalarMapthat - The ScalarMap.
public Object clone()
ScalarMap
clone in class ScalarMapnull if a copy couldn't
be created.public String toString(String pre)
ScalarMap
toString in class ScalarMappre - prefix to prepend to the representation
pre prepended.
void setAspectCartesian(double[] aspect)
throws VisADException,
RemoteException
setAspectCartesian in class ScalarMapaspect - ratios; 3 elements for Java3D, 2 for Java2D
VisADException - a VisAD error occurred
RemoteException - an RMI error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||