|
||||||||||
| 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.FrontDrawer
public class FrontDrawer
FrontDrawer is the VisAD class for manipulation of fronts. Is was originally taken from the class visad.bom.FrontDrawer
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData |
|---|
DisplayableData.DragAdapter |
| Field Summary | |
|---|---|
double |
baseScale
default base scale |
static String[] |
BASETYPES
base type to use |
static String[] |
LABELS
labels for types |
static String |
TYPE_COLD_FRONT
identifier for cold front |
static String |
TYPE_CONVERGENCE
identifier for convergence |
static String |
TYPE_DRY_LINE
identifier for dry line |
static String |
TYPE_FRONTOGENESIS
identifier for frontogenesis |
static String |
TYPE_FRONTOLYSIS
identifier for frontolysis |
static String |
TYPE_ISOTHERMS
identifier for isotherms |
static String |
TYPE_LIFTED_INDEX
identifier for lifted index |
static String |
TYPE_LOW_LEVEL_JET
identifier for low level jet |
static String |
TYPE_LOWER_THERMAL_TROUGH
identifier for lower level thermal trough |
static String |
TYPE_MOISTURE
identifier for moisture |
static String |
TYPE_OCCLUDED_FRONT
identifier for occluded front |
static String |
TYPE_RIDGE
identifier for ridge |
static String |
TYPE_STATIONARY_FRONT
identifier for stationary front |
static String |
TYPE_THICKNESS_RIDGE
identifier for thickness ridge |
static String |
TYPE_TOTAL_TOTALS
identifier for total-totals |
static String |
TYPE_TROUGH
identifier for trough |
static String |
TYPE_UNEVEN_LOW_LEVEL_JET
identifier for uneven low level jet |
static String |
TYPE_UPPER_COLD_FRONT
identifier for upper cold front |
static String |
TYPE_UPPER_LEVEL_JET
identifier for upper level jet |
static String |
TYPE_UPPER_THERMAL_TROUGH
identifier for upper level thermal trough |
static String |
TYPE_UPPER_WARM_FRONT
identifier for upper warm front |
static String |
TYPE_WARM_FRONT
identifier for warm front |
static String[] |
TYPES
all types |
| Fields inherited from class ucar.visad.display.DisplayableData |
|---|
LINE_WIDTH, MANIPULABLE, renderer, VISIBLE |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
FrontDrawer(FrontDrawer that)
Create a front drawer from another instance |
|
FrontDrawer(int fw,
String frontType)
Create a front drawer with the front type |
|
FrontDrawer(int fw,
String frontType,
boolean doColors)
Create a front drawer with the front type |
|
| Method Summary | |
|---|---|
Displayable |
cloneForDisplay()
Clone for display |
static float |
curveLength(float[][] curve,
float[] seg_length)
Get the curve length; assumes curve is float[2][len] and seg_length is float[len-1] |
boolean |
getFlipTheFlip()
Get the FlipTheFlip property. |
static String |
getLabel(String type)
Get the label for the type |
void |
initLatLonMap()
Initialize the lat/lon scalar maps |
FieldImpl |
makeFront(float[][] curve_samples)
Make the front |
static float[][] |
resample_curve(float[][] curve,
float increment)
Resample curve into segments approximately increment in length |
FieldImpl |
robustCurveToFront(float[][] curve,
boolean flip)
Robustly make a curve to a front |
void |
setColor(Color color)
Sets the color of the lines for this Displayable. |
void |
setCurve(float[][] curve,
List curveTimes)
Set the curve |
protected void |
setDisplayMaster(DisplayMaster master)
Set the display master |
void |
setFlipTheFlip(boolean value)
Set the FlipTheFlip property. |
void |
setFrontType(String type)
Set the front type |
void |
setLineWidth(float lineWidth)
Set the line width |
void |
setScale(double baseScale)
Set the scale |
static float[][] |
smooth_curve(float[][] curve,
int window)
Smooth the curve |
| Methods inherited from class ucar.visad.display.DisplayableData |
|---|
addAction, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getLineWidth, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setManipulable, setPickable, setPointMode, setPointSize, setUseFastRendering, setVisible, showme, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_COLD_FRONT
public static final String TYPE_WARM_FRONT
public static final String TYPE_OCCLUDED_FRONT
public static final String TYPE_STATIONARY_FRONT
public static final String TYPE_CONVERGENCE
public static final String TYPE_FRONTOGENESIS
public static final String TYPE_FRONTOLYSIS
public static final String TYPE_UPPER_COLD_FRONT
public static final String TYPE_UPPER_WARM_FRONT
public static final String TYPE_TROUGH
public static final String TYPE_RIDGE
public static final String TYPE_MOISTURE
public static final String TYPE_LOW_LEVEL_JET
public static final String TYPE_UPPER_LEVEL_JET
public static final String TYPE_DRY_LINE
public static final String TYPE_TOTAL_TOTALS
public static final String TYPE_LIFTED_INDEX
public static final String TYPE_ISOTHERMS
public static final String TYPE_THICKNESS_RIDGE
public static final String TYPE_LOWER_THERMAL_TROUGH
public static final String TYPE_UPPER_THERMAL_TROUGH
public static final String TYPE_UNEVEN_LOW_LEVEL_JET
public static final String[] BASETYPES
public static final String[] TYPES
public static final String[] LABELS
public double baseScale
| Constructor Detail |
|---|
public FrontDrawer(int fw,
String frontType)
throws VisADException,
RemoteException
fw - window idfrontType - front type
RemoteException - On badness
VisADException - On badness
public FrontDrawer(int fw,
String frontType,
boolean doColors)
throws VisADException,
RemoteException
fw - window idfrontType - front typedoColors - true to use colors
RemoteException - On badness
VisADException - On badness
public FrontDrawer(FrontDrawer that)
throws RemoteException,
VisADException
that - the other instance
RemoteException - On badness
VisADException - On badness| Method Detail |
|---|
public void setColor(Color color)
throws VisADException,
RemoteException
setColor in class Displayablecolor - color for the line.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setLineWidth(float lineWidth)
throws VisADException,
RemoteException
setLineWidth in class DisplayableDatalineWidth - the line width
RemoteException - On badness
VisADException - On badness
public Displayable cloneForDisplay()
throws RemoteException,
VisADException
cloneForDisplay in class DisplayableDataRemoteException - On badness
VisADException - On badness
public void setScale(double baseScale)
throws VisADException,
RemoteException
baseScale - the base scale
RemoteException - On badness
VisADException - On badnesspublic static String getLabel(String type)
type - the type
public void setFrontType(String type)
throws VisADException,
RemoteException
type - the type
RemoteException - On badness
VisADException - On badness
protected void setDisplayMaster(DisplayMaster master)
throws VisADException,
RemoteException
setDisplayMaster in class Displayablemaster - the display master
RemoteException - On badness
VisADException - On badness
public void setCurve(float[][] curve,
List curveTimes)
throws VisADException,
RemoteException
curve - the curve coordinatescurveTimes - the curve times
RemoteException - On badness
VisADException - On badness
public void initLatLonMap()
throws VisADException,
RemoteException
RemoteException - On badness
VisADException - On badness
public FieldImpl makeFront(float[][] curve_samples)
throws VisADException,
RemoteException
curve_samples - the front samples (coords,rgb)
RemoteException - On badness
VisADException - On badness
public FieldImpl robustCurveToFront(float[][] curve,
boolean flip)
throws RemoteException
curve - the curveflip - true to flip the pips
RemoteException - On badness
public static float[][] smooth_curve(float[][] curve,
int window)
curve - the curvewindow - the window id
public static float[][] resample_curve(float[][] curve,
float increment)
curve - the curveincrement - the increment
public static float curveLength(float[][] curve,
float[] seg_length)
curve - the curveseg_length - the segment lengths
public void setFlipTheFlip(boolean value)
value - The new value for FlipTheFlippublic boolean getFlipTheFlip()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||