public class Contour2DDisplayable extends ContourLines implements GridDisplayable
DisplayableData.DragAdapter| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RGB_REAL_TYPE
The name of the "RGB real-type" property.
|
COLOR_FILL, CONTOUR_LEVELS, CONTOUR_REAL_TYPE, LABELINGCOLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZEMANIPULABLE, renderer, VISIBLEDISPLAY, parent, SCALAR_MAP_SET| Modifier | Constructor and Description |
|---|---|
protected |
Contour2DDisplayable(Contour2DDisplayable that)
Constructs from a Contour2DDisplayable.
|
|
Contour2DDisplayable(java.lang.String name)
Constructs an instance with the supplied name and null initial RealType.
|
|
Contour2DDisplayable(java.lang.String name,
boolean alphaFlag)
Constructs an instance with the supplied name and null initial RealType
and given alphaFlag
|
|
Contour2DDisplayable(java.lang.String name,
boolean alphaFlag,
boolean colorFill)
Constructs an instance with the supplied name and null initial RealType
and given alphaFlag and colorFill
|
|
Contour2DDisplayable(java.lang.String name,
visad.RealType c2dRealType,
float[][] colorPalette)
Constructs from a name for the Displayable and the type of the
parameter.
|
|
Contour2DDisplayable(java.lang.String name,
visad.RealType c2dRealType,
float[][] colorPalette,
boolean alphaFlag)
Constructs from a name for the Displayable and the type of the
parameter.
|
|
Contour2DDisplayable(java.lang.String name,
visad.RealType c2dRealType,
float[][] colorPalette,
float[] rangeLimits)
Deprecated.
rangeLimits not needed
|
| Modifier and Type | Method and Description |
|---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display.
|
float[][] |
getColorPalette()
Return the current color palette (color table).
|
double[] |
getRangeforColor()
Deprecated.
use #getRangeForColor()
|
double[] |
getRangeForColor()
Get the color range
|
visad.RealType |
getRGBRealType()
Returns the RealType of the RGB parameter.
|
boolean |
hasRange()
Returns whether this Displayable has a valid range (i.e., lowRange and
highRange are both not NaN's
|
void |
loadData(visad.FieldImpl field)
Set the appropriate ScalarMaps based on the data and then
load the data into the DataReference.
|
void |
setC2DRealType(visad.RealType realType)
Sets the RealType of the parameter.
|
void |
setColor(java.awt.Color color)
Override setColor to actually set a color palette since this
class has both
|
void |
setColoredByAnother(boolean yesno)
Set whether this GridDisplayable should have the data colored
by another parameter.
|
void |
setColorFill(boolean yesorno)
Set whether the contours should be displayed as color-filled
contours.
|
void |
setColorPalette()
This method with no argument sets the default Vis5D color spectrum.
|
void |
setColorPalette(float[][] colorPalette)
This method sets the color palette
according to the color table in argument;
pair this method with setRangeForColor below to get
a fixed association of color table and range of values.
|
void |
setColorUnit(visad.Unit unit)
Set the units for the displayed range
|
void |
setContourLevels(float interval,
float base,
float min,
float max)
Set appropriate contour levels with super class's methods
(BOTH REQUIRED IN THIS ORDER)
setRange(min, max);
& setContourLevels (interval, base, min, max);
|
void |
setContourLevels(float interval,
float base,
float min,
float max,
boolean dash)
Set appropriate contour levels with super class's methods
(BOTH REQUIRED IN THIS ORDER)
setRange(min, max);
setContourLevels (interval, base, min, max);
|
void |
setDisplayUnit(visad.Unit unit)
Set the units for the displayed range
|
void |
setGrid2D(visad.FieldImpl field)
Deprecated.
Should use loadData now
|
void |
setRangeForColor(double low,
double high)
To make a connection between a particular color and a particular data
value or a range of data values ...
|
protected void |
setRGBRealType(visad.RealType realType)
Sets the RealType of the RGB parameter.
|
protected boolean |
useDisplayUnitForColor()
Does this object use the displayUnit (or the colorUnit) for its
display unit.
|
getColorFillEnabled, getContourLevels, getContourRealType, getContourValues, getDashedStyle, isLabeling, setContourInfo, setContourInterval, setContourInterval, setContourLevels, setContourRealType, setDashedStyle, setFont, setLabelFreq, setLabeling, setLabelSkip, setRange, setScalarMapsgetColor, getLineStyle, getLineWidth, getPointSize, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBAaddAction, 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, setConstantPosition, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFrontpublic static final java.lang.String RGB_REAL_TYPE
public Contour2DDisplayable(java.lang.String name)
throws visad.VisADException,
java.rmi.RemoteException
name - a String identifiervisad.VisADException - from construction of super classjava.rmi.RemoteException - from construction of super classpublic Contour2DDisplayable(java.lang.String name,
boolean alphaFlag)
throws visad.VisADException,
java.rmi.RemoteException
name - a String identifieralphaFlag - true if should use RGBAvisad.VisADException - from construction of super classjava.rmi.RemoteException - from construction of super classpublic Contour2DDisplayable(java.lang.String name,
boolean alphaFlag,
boolean colorFill)
throws visad.VisADException,
java.rmi.RemoteException
name - a String identifieralphaFlag - true if should use RGBAcolorFill - true if contours should be color filledvisad.VisADException - from construction of super classjava.rmi.RemoteException - from construction of super classpublic Contour2DDisplayable(java.lang.String name,
visad.RealType c2dRealType,
float[][] colorPalette,
float[] rangeLimits)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.c2dRealType - The type of the parameter. May be
null.colorPalette - The initial colorPalette to use. May be
null (Vis5D palette used
as default).rangeLimits - limits of the color rangevisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public Contour2DDisplayable(java.lang.String name,
visad.RealType c2dRealType,
float[][] colorPalette)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.c2dRealType - The type of the parameter. May be
null.colorPalette - The initial colorPalette to use. May be
null (Vis5D palette used
as default).visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public Contour2DDisplayable(java.lang.String name,
visad.RealType c2dRealType,
float[][] colorPalette,
boolean alphaFlag)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.c2dRealType - The type of the parameter. May be
null.colorPalette - The initial colorPalette to use. May be
null (Vis5D palette used
as default).alphaFlag - true if should use RGBAvisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected Contour2DDisplayable(Contour2DDisplayable that) throws visad.VisADException, java.rmi.RemoteException
that - a Contour2DDisplayable.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected boolean useDisplayUnitForColor()
public void setC2DRealType(visad.RealType realType)
throws java.rmi.RemoteException,
visad.VisADException
realType - The RealType of the parameter. May
not be null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setColorPalette()
throws java.rmi.RemoteException,
visad.VisADException
java.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setColor(java.awt.Color color)
throws java.rmi.RemoteException,
visad.VisADException
setColor in class LineDrawingcolor - Color to usejava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setColorPalette(float[][] colorPalette)
throws java.rmi.RemoteException,
visad.VisADException
setColorPalette in class DisplayablecolorPalette - The initial colorPalette to use. May be
null (Vis5D palette used
as default).visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setRangeForColor(double low,
double high)
throws visad.VisADException,
java.rmi.RemoteException
setRangeForColor in class Displayablelow - The minimum value of the parameter matched to
the low end of the color table.high - The maximum value of the parameter matched to
the high end of the color table.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public double[] getRangeforColor()
public double[] getRangeForColor()
public float[][] getColorPalette()
public void setGrid2D(visad.FieldImpl field)
throws java.rmi.RemoteException,
visad.VisADException
field - a VisAD FieldImpl with a 2D nature.java.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void loadData(visad.FieldImpl field)
throws visad.VisADException,
java.rmi.RemoteException
loadData in interface GridDisplayablefield - a 2D VisAD Field representing the datajava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectprotected void setRGBRealType(visad.RealType realType)
throws java.rmi.RemoteException,
visad.VisADException
realType - The RealType of the RGB parameter. May
not be null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setColorFill(boolean yesorno)
throws visad.VisADException,
java.rmi.RemoteException
setColorFill in class ContourLinesyesorno - true for color fillvisad.VisADException - unable to set thisjava.rmi.RemoteException - unable to set this on remote displaypublic visad.RealType getRGBRealType()
null.public void setContourLevels(float interval,
float base,
float min,
float max)
throws visad.VisADException,
java.rmi.RemoteException
interval - delta value between contoursbase - one contour must be of this valuemin - no contour below this valuemax - no contour above this valuevisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setContourLevels(float interval,
float base,
float min,
float max,
boolean dash)
throws visad.VisADException,
java.rmi.RemoteException
interval - delta value between contoursbase - one contour must be of this valuemin - no contour below this valuemax - no contour above this valuedash - dash contours below basevisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public boolean hasRange()
public void setDisplayUnit(visad.Unit unit)
throws visad.VisADException,
java.rmi.RemoteException
setDisplayUnit in class ContourLinesunit - Unit for displayjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setColorUnit(visad.Unit unit)
throws visad.VisADException,
java.rmi.RemoteException
setColorUnit in class Displayableunit - Unit for displayjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
cloneForDisplay in class DisplayableDatavisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setColoredByAnother(boolean yesno)
setColoredByAnother in interface GridDisplayableyesno - true if colored by another