public abstract class ContourLines extends LineDrawing
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. |
DisplayableData.DragAdapter| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COLOR_FILL
The name of the "color fill" property.
|
static java.lang.String |
CONTOUR_LEVELS
The name of the "contour levels" property.
|
static java.lang.String |
CONTOUR_REAL_TYPE
The name of the "contour real-type" property.
|
static java.lang.String |
LABELING
The name of the "labeling" property.
|
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZEMANIPULABLE, renderer, VISIBLEDISPLAY, parent, SCALAR_MAP_SET| Constructor and Description |
|---|
ContourLines(ContourLines that)
Constructs from another instance.
|
ContourLines(java.lang.String name,
visad.RealType contourRealType)
Constructs from a name for the Displayable and the type of the contour
parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getColorFillEnabled()
Ask if color filled contours are enabled.
|
ContourLevels |
getContourLevels()
Returns the contour levels.
|
visad.RealType |
getContourRealType()
Returns the RealType of the contoured parameter.
|
float[] |
getContourValues()
Gets the contour values.
|
int |
getDashedStyle()
Set the dashed style.
|
boolean |
isLabeling()
Returns the labeling of contour lines.
|
void |
setColorFill(boolean yesorno)
Set whether the contours should be displayed as color-filled
contours.
|
void |
setContourInfo(ContourInfo contourInfo)
Set appropriate contour levels info
|
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(visad.RealType realType)
Sets the RealType of the contoured parameter.
|
void |
setDashedStyle(int style)
Set the dashed style.
|
void |
setDisplayUnit(visad.Unit unit)
Set the units for the displayed range
|
void |
setFont(java.lang.Object font,
int size,
boolean align)
Set the font
|
void |
setLabelFreq(int freq)
Set the label frequency
|
void |
setLabeling(boolean on)
Sets the labeling of contour lines.
|
void |
setLabelSkip(int skip)
Set the label skip
|
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.
|
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBAaddAction, cloneForDisplay, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, showme, toStringaddConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFrontpublic static final java.lang.String CONTOUR_LEVELS
public static final java.lang.String LABELING
public static final java.lang.String CONTOUR_REAL_TYPE
public static final java.lang.String COLOR_FILL
public ContourLines(java.lang.String name,
visad.RealType contourRealType)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.contourRealType - The type of the contour parameter. May be
null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public ContourLines(ContourLines that) throws visad.VisADException, java.rmi.RemoteException
that - The other instance.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected void setContourRealType(visad.RealType realType)
throws java.rmi.RemoteException,
visad.VisADException
realType - The RealType of the contoured parameter. May
not be null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.RealType getContourRealType()
null.protected void setRange(float min,
float max)
throws java.rmi.RemoteException,
visad.VisADException
min - The minimum contour value.max - The maximum contour value.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public final void setContourLevels(ContourLevels contourLevels) throws java.rmi.RemoteException, visad.VisADException
contourLevels - The contour values.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.CONTOUR_LEVELSpublic final void setContourInterval(float inter,
float base,
float min,
float max)
throws java.rmi.RemoteException,
visad.VisADException
inter - The contour interval.min - The minimum contour value.max - The maximum contour value.base - The base contour value.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.CONTOUR_LEVELSpublic final void setContourInterval(float inter,
float base,
float min,
float max,
boolean dash)
throws java.rmi.RemoteException,
visad.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.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.CONTOUR_LEVELSprotected void setScalarMaps(ScalarMapSet maps) throws visad.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.visad.BadMappingException - The RealType of the contour parameter
has not been set or its ScalarMap is already in
the set.public final ContourLevels getContourLevels()
public final float[] getContourValues()
throws visad.VisADException
visad.VisADException - VisAD failure.public void setContourInfo(ContourInfo contourInfo) throws visad.VisADException, java.rmi.RemoteException
setContourInfo in class DisplayablecontourInfo - Contains contour and labeling informationvisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setColorFill(boolean yesorno)
throws visad.VisADException,
java.rmi.RemoteException
yesorno - true for color fillvisad.VisADException - unable to set thisjava.rmi.RemoteException - unable to set this on remote displaypublic boolean getColorFillEnabled()
public final void setLabeling(boolean on)
throws visad.VisADException,
java.rmi.RemoteException
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 should be labeled.public void setDisplayUnit(visad.Unit unit)
throws visad.VisADException,
java.rmi.RemoteException
setDisplayUnit in class Displayableunit - Unit for displayvisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setLabelFreq(int freq)
throws java.rmi.RemoteException,
visad.VisADException
freq - label frequencyjava.rmi.RemoteException - Java RMI Exceptionvisad.VisADException - Problem setting the dashed stylepublic void setLabelSkip(int skip)
throws java.rmi.RemoteException,
visad.VisADException
skip - label skipjava.rmi.RemoteException - Java RMI Exceptionvisad.VisADException - Problem setting the dashed stylepublic void setDashedStyle(int style)
throws java.rmi.RemoteException,
visad.VisADException
style - dashed line stylejava.rmi.RemoteException - Java RMI Exceptionvisad.VisADException - Problem setting the dashed stylepublic void setFont(java.lang.Object font,
int size,
boolean align)
throws java.rmi.RemoteException,
visad.VisADException
font - the font name/weightsize - the label (font) sizealign - _more_java.rmi.RemoteException - Java RMI Exceptionvisad.VisADException - Problem setting the dashed stylepublic int getDashedStyle()