public class ContourScalarMap extends IsoContourScalarMap
Instances of this class have the following, bound, JavaBean
properties:
Name | Type | Access | Default | Description |
---|---|---|---|---|
contourLevels | ContourLevels |
set/get | empty-set of levels | The contour levels of this instance |
labeling | boolean |
set/get | false |
Whether or not contour-line labeling is enabled |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTOUR_LEVELS
The name of the "contour levels" property.
|
static java.lang.String |
LABELING
The name of the "labeling" property.
|
SCALAR_MAP, SCALAR_TYPE
Constructor and Description |
---|
ContourScalarMap(visad.RealType realType,
DisplayAdapter display)
Constructs.
|
Modifier and Type | Method and Description |
---|---|
ContourLevels |
getContourLevels()
Returns the contour levels.
|
boolean |
isLabeling()
Indicates whether or not contour-line labeling is enabled.
|
void |
setContourLevels(ContourLevels contourLevels)
Sets the contour values.
|
protected void |
setControl()
Sets the control of the underlying
ScalarMap . |
void |
setLabeling(boolean on)
Sets the labeling of contour lines.
|
void |
setRange(float min,
float max)
Sets the range of data to be contoured.
|
getContourControl
addScalarMapListener, compareTo, equals, getControl, getDisplayType, getScalarType, hashCode, removeScalarMapListener, scalarMapChange, setRange, setScalarType
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getDisplayRealType, removePropertyChangeListener, removePropertyChangeListener
public static final java.lang.String CONTOUR_LEVELS
public static final java.lang.String LABELING
public ContourScalarMap(visad.RealType realType, DisplayAdapter display) throws visad.VisADException, java.rmi.RemoteException
realType
- The type of data that is to be contoured.display
- The adapted VisAD display on which to contour
the data.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public final void setLabeling(boolean on) throws visad.VisADException, java.rmi.RemoteException
PropertyChangeEvent
for LABELING
with this
instance as the source and the old and new values appropriately set.
The event is fired synchronously -- so watch out for deadlock.on
- Whether or not the contour lines should be
labeled.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public final boolean isLabeling()
true
if and only if the contour
lines are labeled.public void setRange(float min, float max) throws java.rmi.RemoteException, visad.VisADException
min
- The minimum, possible data value to be
consideredmax
- The maximum, possible data value to be
consideredvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public final void setContourLevels(ContourLevels contourLevels) throws java.rmi.RemoteException, visad.VisADException
PropertyChangeEvent
for CONTOUR_LEVELS
with this instance as the source and
the old and new values appropriately set. The firing is done
synchronously -- so watch out for deadlock.contourLevels
- The contour values.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.CONTOUR_LEVELS
public final ContourLevels getContourLevels()
protected void setControl() throws visad.VisADException, java.rmi.RemoteException
ScalarMap
. This is a
template method.setControl
in class ScalarMapAdapter
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.