public class ConstantMap extends ScalarMap
Constructor and Description |
---|
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;
|
Modifier and Type | Method and Description |
---|---|
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
|
String |
toString(String pre)
Returns a string representation of the ScalarMap with the specified
prefix prepended.
|
addScalarMapListener, badRange, checkTicks, copy, disableAutoScale, doInitialize, equalizeFlow, getAxisScale, getControl, getDisplay, getDisplayScalar, getOverrideUnit, getRange, getScalar, getScalarName, getScale, getScaleEnable, getValueIndex, hashCode, incTick, inverseScaleValues, inverseScaleValues, isAutoScale, makeScale, peekTicks, removeScalarMapListener, resetAutoScale, scaleValues, scaleValues, scaleValues, scaleValues, setOverrideUnit, setRange, setRange, setRange, setRangeByUnits, setScalarName, setScaleColor, setScaleEnable, setTicks, setUnderscoreToBlank, setValueIndex, toString
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 occurredpublic 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 occurredpublic static void setAllowMultipleUseKludge(boolean k)
k
- - true to allow multiple usepublic static boolean getAllowMultipleUseKludge()
public double getConstant()
public boolean equals(Object o)
public int compareTo(Object obj)
compareTo
in interface Comparable
compareTo
in class ScalarMap
obj
- The other object.protected int compareTo(ConstantMap that)
that
- The other instance.protected int compareTo(ScalarMap that)
public Object clone()
ScalarMap
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.