|
||||||||||
| 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
ucar.visad.display.Contour2DDisplayable
public class Contour2DDisplayable
A class to support showing 2D gridded data as colored contours on a plane in a NavigatedDisplay.
| Field Summary | |
|---|---|
static String |
RGB_REAL_TYPE
The name of the "RGB real-type" property. |
| Fields inherited from class ucar.visad.display.ContourLines |
|---|
COLOR_FILL, CONTOUR_LEVELS, CONTOUR_REAL_TYPE, LABELING |
| 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 | |
|---|---|
protected |
Contour2DDisplayable(Contour2DDisplayable that)
Constructs from a Contour2DDisplayable. |
|
Contour2DDisplayable(String name)
Constructs an instance with the supplied name and null initial RealType. |
|
Contour2DDisplayable(String name,
boolean alphaFlag)
Constructs an instance with the supplied name and null initial RealType and given alphaFlag |
|
Contour2DDisplayable(String name,
boolean alphaFlag,
boolean colorFill)
Constructs an instance with the supplied name and null initial RealType and given alphaFlag and colorFill |
|
Contour2DDisplayable(String name,
RealType c2dRealType,
float[][] colorPalette)
Constructs from a name for the Displayable and the type of the parameter. |
|
Contour2DDisplayable(String name,
RealType c2dRealType,
float[][] colorPalette,
boolean alphaFlag)
Constructs from a name for the Displayable and the type of the parameter. |
|
Contour2DDisplayable(String name,
RealType c2dRealType,
float[][] colorPalette,
float[] rangeLimits)
Deprecated. rangeLimits not needed |
| Method Summary | |
|---|---|
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 |
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(FieldImpl field)
Set the appropriate ScalarMaps based on the data and then load the data into the DataReference. |
void |
setC2DRealType(RealType realType)
Sets the RealType of the parameter. |
void |
setColor(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(Unit unit)
Set the units for the displayed range |
void |
setContourInfo(ContourInfo contourInfo)
Set appropriate contour levels info |
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(Unit unit)
Set the units for the displayed range |
void |
setGrid2D(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(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. |
| Methods inherited from class ucar.visad.display.ContourLines |
|---|
getColorFillEnabled, getContourLevels, getContourRealType, getContourValues, isLabeling, setContourInterval, setContourInterval, setContourLevels, setContourRealType, setLabeling, setRange, setScalarMaps |
| Methods inherited from class ucar.visad.display.LineDrawing |
|---|
getColor, getLineStyle, getLineWidth, getPointSize, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA |
| Methods inherited from class ucar.visad.display.DisplayableData |
|---|
addAction, 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 RGB_REAL_TYPE
| Constructor Detail |
|---|
public Contour2DDisplayable(String name)
throws VisADException,
RemoteException
name - a String identifier
VisADException - from construction of super class
RemoteException - from construction of super class
public Contour2DDisplayable(String name,
boolean alphaFlag)
throws VisADException,
RemoteException
name - a String identifieralphaFlag - true if should use RGBA
VisADException - from construction of super class
RemoteException - from construction of super class
public Contour2DDisplayable(String name,
boolean alphaFlag,
boolean colorFill)
throws VisADException,
RemoteException
name - a String identifieralphaFlag - true if should use RGBAcolorFill - true if contours should be color filled
VisADException - from construction of super class
RemoteException - from construction of super class
public Contour2DDisplayable(String name,
RealType c2dRealType,
float[][] colorPalette,
float[] rangeLimits)
throws VisADException,
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 range
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Contour2DDisplayable(String name,
RealType c2dRealType,
float[][] colorPalette)
throws VisADException,
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).
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Contour2DDisplayable(String name,
RealType c2dRealType,
float[][] colorPalette,
boolean alphaFlag)
throws VisADException,
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 RGBA
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected Contour2DDisplayable(Contour2DDisplayable that)
throws VisADException,
RemoteException
that - a Contour2DDisplayable.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
protected boolean useDisplayUnitForColor()
public void setC2DRealType(RealType realType)
throws RemoteException,
VisADException
realType - The RealType of the parameter. May
not be null.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setColorPalette()
throws RemoteException,
VisADException
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setColor(Color color)
throws RemoteException,
VisADException
setColor in class LineDrawingcolor - Color to use
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setColorPalette(float[][] colorPalette)
throws RemoteException,
VisADException
setColorPalette in class DisplayablecolorPalette - The initial colorPalette to use. May be
null (Vis5D palette used
as default).
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setRangeForColor(double low,
double high)
throws VisADException,
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.
VisADException - VisAD failure.
RemoteException - Java RMI failure.public double[] getRangeforColor()
public double[] getRangeForColor()
public float[][] getColorPalette()
public void setGrid2D(FieldImpl field)
throws RemoteException,
VisADException
field - a VisAD FieldImpl with a 2D nature.
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void loadData(FieldImpl field)
throws VisADException,
RemoteException
loadData in interface GridDisplayablefield - a 2D VisAD Field representing the data
RemoteException - Java RMI error
VisADException - problem creating VisAD object
protected void setRGBRealType(RealType realType)
throws RemoteException,
VisADException
realType - The RealType of the RGB parameter. May
not be null.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setColorFill(boolean yesorno)
throws VisADException,
RemoteException
setColorFill in class ContourLinesyesorno - true for color fill
VisADException - unable to set this
RemoteException - unable to set this on remote displaypublic RealType getRGBRealType()
null.
public void setContourLevels(float interval,
float base,
float min,
float max)
throws VisADException,
RemoteException
interval - delta value between contoursbase - one contour must be of this valuemin - no contour below this valuemax - no contour above this value
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setContourInfo(ContourInfo contourInfo)
throws VisADException,
RemoteException
setContourInfo in class DisplayablecontourInfo - Contains contour and labeling information
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setContourLevels(float interval,
float base,
float min,
float max,
boolean dash)
throws VisADException,
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 base
VisADException - VisAD failure.
RemoteException - Java RMI failure.public boolean hasRange()
public void setDisplayUnit(Unit unit)
throws VisADException,
RemoteException
setDisplayUnit in class ContourLinesunit - Unit for display
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setColorUnit(Unit unit)
throws VisADException,
RemoteException
setColorUnit in class Displayableunit - Unit for display
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public Displayable cloneForDisplay()
throws RemoteException,
VisADException
cloneForDisplay in class DisplayableDataVisADException - VisAD failure.
RemoteException - Java RMI failure.public void setColoredByAnother(boolean yesno)
setColoredByAnother in interface GridDisplayableyesno - true if colored by another
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||