|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
ucar.visad.display.ContourLines
public abstract class ContourLines
Provides support for a Displayable that comprises a set of contour lines.
Instances of this class have the following bound properties:
| Name | Type | Access | Default | Description |
|---|---|---|---|---|
| contourLevels | ContourLevels | set/get | no contour levels | The displayed contour levels associated with this instance. |
| labeling | boolean | set/is | false |
Whether or not the contour lines should be labeled. |
| contourRealType | visad.RealType | set/get | null |
The VisAD type of the contoured quantity. |
| colorFill | boolean | set/get | null |
Whether or not the contour lines are color filled. |
| Field Summary | |
|---|---|
static String |
COLOR_FILL
The name of the "color fill" property. |
static String |
CONTOUR_LEVELS
The name of the "contour levels" property. |
static String |
CONTOUR_REAL_TYPE
The name of the "contour real-type" property. |
static String |
LABELING
The name of the "labeling" property. |
| Fields inherited from class ucar.visad.display.LineDrawing |
|---|
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE |
| Fields inherited from class ucar.visad.display.DisplayableData |
|---|
MANIPULABLE, VISIBLE |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
ContourLines(ContourLines that)
Constructs from another instance. |
|
ContourLines(String name,
RealType contourRealType)
Constructs from a name for the Displayable and the type of the contour parameter. |
|
| Method Summary | |
|---|---|
boolean |
getColorFillEnabled()
Ask if color filled contours are enabled. |
ContourLevels |
getContourLevels()
Returns the contour levels. |
RealType |
getContourRealType()
Returns the RealType of the contoured parameter. |
float[] |
getContourValues()
Gets the contour values. |
boolean |
isLabeling()
Returns the labeling of contour lines. |
void |
setColorFill(boolean yesorno)
Set whether the contours should be displayed as color-filled contours. |
void |
setContourInterval(float inter,
float base,
float min,
float max)
Sets the contour values, with interval, min, max, base. |
void |
setContourInterval(float inter,
float base,
float min,
float max,
boolean dash)
Sets the contour values, with interval, min, max, base and dash. |
void |
setContourLevels(ContourLevels contourLevels)
Sets the contour values. |
protected void |
setContourRealType(RealType realType)
Sets the RealType of the contoured parameter. |
void |
setDisplayUnit(Unit unit)
Set the units for the displayed range |
void |
setLabeling(boolean on)
Sets the labeling of contour lines. |
protected void |
setRange(float min,
float max)
Sets the range of contour values. |
protected void |
setScalarMaps(ScalarMapSet maps)
Sets the set of ScalarMap-s of this instance. |
| Methods inherited from class ucar.visad.display.LineDrawing |
|---|
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA |
| Methods inherited from class ucar.visad.display.DisplayableData |
|---|
addAction, cloneForDisplay, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String CONTOUR_LEVELS
public static final String LABELING
public static final String CONTOUR_REAL_TYPE
public static final String COLOR_FILL
| Constructor Detail |
|---|
public ContourLines(String name,
RealType contourRealType)
throws VisADException,
RemoteException
name - The name for the displayable.contourRealType - The type of the contour parameter. May be
null.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public ContourLines(ContourLines that)
throws VisADException,
RemoteException
that - The other instance.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
protected void setContourRealType(RealType realType)
throws RemoteException,
VisADException
realType - The RealType of the contoured parameter. May
not be null.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public RealType getContourRealType()
null.
protected void setRange(float min,
float max)
throws RemoteException,
VisADException
min - The minimum contour value.max - The maximum contour value.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public final void setContourLevels(ContourLevels contourLevels)
throws RemoteException,
VisADException
contourLevels - The contour values.
VisADException - VisAD failure.
RemoteException - Java RMI failure.CONTOUR_LEVELS
public final void setContourInterval(float inter,
float base,
float min,
float max)
throws RemoteException,
VisADException
inter - The contour interval.min - The minimum contour value.max - The maximum contour value.base - The base contour value.
VisADException - VisAD failure.
RemoteException - Java RMI failure.CONTOUR_LEVELS
public final void setContourInterval(float inter,
float base,
float min,
float max,
boolean dash)
throws RemoteException,
VisADException
inter - The contour interval.min - The minimum contour value.max - The maximum contour value.base - The base contour value.dash - Whether or not to draw dashed lines for contours
less than the base contour value.
VisADException - VisAD failure.
RemoteException - Java RMI failure.CONTOUR_LEVELS
protected void setScalarMaps(ScalarMapSet maps)
throws BadMappingException
null for the old value and the new
set of ScalarMap-s for the new Value. Intermediate subclasses that
have their own ScalarMap-s should override this method and invoke
super.setScalarMaps(ScalarMapSet).
maps - The set of ScalarMap-s to be added.
BadMappingException - The RealType of the contour parameter
has not been set or its ScalarMap is alread in
the set.public final ContourLevels getContourLevels()
public final float[] getContourValues()
throws VisADException
VisADException - VisAD failure.
public void setColorFill(boolean yesorno)
throws VisADException,
RemoteException
yesorno - true for color fill
VisADException - unable to set this
RemoteException - unable to set this on remote displaypublic boolean getColorFillEnabled()
public final void setLabeling(boolean on)
throws VisADException,
RemoteException
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 should be labeled.
public void setDisplayUnit(Unit unit)
throws VisADException,
RemoteException
setDisplayUnit in class Displayableunit - Unit for display
VisADException - VisAD failure.
RemoteException - Java RMI failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||