|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.MapAdapter
ucar.visad.display.ScalarMapAdapter
ucar.visad.display.IsoContourScalarMap
ucar.visad.display.ContourScalarMap
public class ContourScalarMap
Provides support for adapting ScalarMap-s for 2-D contour lines.
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 |
| Field Summary | |
|---|---|
static String |
CONTOUR_LEVELS
The name of the "contour levels" property. |
static String |
LABELING
The name of the "labeling" property. |
| Fields inherited from class ucar.visad.display.ScalarMapAdapter |
|---|
SCALAR_MAP, SCALAR_TYPE |
| Constructor Summary | |
|---|---|
ContourScalarMap(RealType realType,
DisplayAdapter display)
Constructs. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ucar.visad.display.IsoContourScalarMap |
|---|
getContourControl |
| Methods inherited from class ucar.visad.display.ScalarMapAdapter |
|---|
addScalarMapListener, compareTo, equals, getControl, getDisplayType, getScalarType, hashCode, removeScalarMapListener, scalarMapChange, setRange, setScalarType |
| Methods inherited from class ucar.visad.display.MapAdapter |
|---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getDisplayRealType, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONTOUR_LEVELS
public static final String LABELING
| Constructor Detail |
|---|
public ContourScalarMap(RealType realType,
DisplayAdapter display)
throws VisADException,
RemoteException
realType - The type of data that is to be contoured.display - The adapted VisAD display on which to contour
the data.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
public final void setLabeling(boolean on)
throws VisADException,
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.
VisADException - VisAD failure.
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 RemoteException,
VisADException
min - The minimum, possible data value to be
consideredmax - The maximum, possible data value to be
considered
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public final void setContourLevels(ContourLevels contourLevels)
throws RemoteException,
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.
VisADException - VisAD failure.
RemoteException - Java RMI failure.CONTOUR_LEVELSpublic final ContourLevels getContourLevels()
protected void setControl()
throws VisADException,
RemoteException
ScalarMap. This is a
template method.
setControl in class ScalarMapAdapterVisADException - VisAD failure.
RemoteException - Java RMI failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||