public class FrontDrawer extends DisplayableData
DisplayableData.DragAdapter| Modifier and Type | Field and Description |
|---|---|
double |
baseScale
default base scale
|
static java.lang.String[] |
BASETYPES
base type to use
|
static java.lang.String[] |
LABELS
labels for types
|
static java.lang.String |
TYPE_COLD_FRONT
identifier for cold front
|
static java.lang.String |
TYPE_CONVERGENCE
identifier for convergence
|
static java.lang.String |
TYPE_DRY_LINE
identifier for dry line
|
static java.lang.String |
TYPE_FRONTOGENESIS
identifier for frontogenesis
|
static java.lang.String |
TYPE_FRONTOLYSIS
identifier for frontolysis
|
static java.lang.String |
TYPE_ISOTHERMS
identifier for isotherms
|
static java.lang.String |
TYPE_LIFTED_INDEX
identifier for lifted index
|
static java.lang.String |
TYPE_LOW_LEVEL_JET
identifier for low level jet
|
static java.lang.String |
TYPE_LOWER_THERMAL_TROUGH
identifier for lower level thermal trough
|
static java.lang.String |
TYPE_MOISTURE
identifier for moisture
|
static java.lang.String |
TYPE_OCCLUDED_FRONT
identifier for occluded front
|
static java.lang.String |
TYPE_RIDGE
identifier for ridge
|
static java.lang.String |
TYPE_STATIONARY_FRONT
identifier for stationary front
|
static java.lang.String |
TYPE_THICKNESS_RIDGE
identifier for thickness ridge
|
static java.lang.String |
TYPE_TOTAL_TOTALS
identifier for total-totals
|
static java.lang.String |
TYPE_TROUGH
identifier for trough
|
static java.lang.String |
TYPE_UNEVEN_LOW_LEVEL_JET
identifier for uneven low level jet
|
static java.lang.String |
TYPE_UPPER_COLD_FRONT
identifier for upper cold front
|
static java.lang.String |
TYPE_UPPER_LEVEL_JET
identifier for upper level jet
|
static java.lang.String |
TYPE_UPPER_THERMAL_TROUGH
identifier for upper level thermal trough
|
static java.lang.String |
TYPE_UPPER_WARM_FRONT
identifier for upper warm front
|
static java.lang.String |
TYPE_WARM_FRONT
identifier for warm front
|
static java.lang.String |
TYPE_WAVE_LINE
identifier for wave line
|
static java.lang.String[] |
TYPES
all types
|
LINE_WIDTH, MANIPULABLE, renderer, VISIBLEDISPLAY, parent, SCALAR_MAP_SET| Constructor and Description |
|---|
FrontDrawer(FrontDrawer that)
Create a front drawer from another instance
|
FrontDrawer(int fw,
java.lang.String frontType)
Create a front drawer with the front type
|
FrontDrawer(int fw,
java.lang.String frontType,
boolean doColors)
Create a front drawer with the front type
|
| Modifier and Type | Method and Description |
|---|---|
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 java.lang.String |
getLabel(java.lang.String type)
Get the label for the type
|
void |
initLatLonMap()
Initialize the lat/lon scalar maps
|
visad.FieldImpl |
makeFront(float[][] curve_samples)
Make the front
|
static float[][] |
resample_curve(float[][] curve,
float increment)
Resample curve into segments approximately increment in length
|
visad.FieldImpl |
robustCurveToFront(float[][] curve,
boolean flip)
Robustly make a curve to a front
|
void |
setColor(java.awt.Color color)
Sets the color of the lines for this Displayable.
|
void |
setCurve(float[][] curve,
java.util.List curveTimes)
Set the curve
|
protected void |
setDisplayMaster(DisplayMaster master)
Set the display master
|
void |
setFlipTheFlip(boolean value)
Set the FlipTheFlip property.
|
void |
setFrontType(java.lang.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
|
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, 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, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFrontpublic static final java.lang.String TYPE_COLD_FRONT
public static final java.lang.String TYPE_WARM_FRONT
public static final java.lang.String TYPE_OCCLUDED_FRONT
public static final java.lang.String TYPE_STATIONARY_FRONT
public static final java.lang.String TYPE_CONVERGENCE
public static final java.lang.String TYPE_FRONTOGENESIS
public static final java.lang.String TYPE_FRONTOLYSIS
public static final java.lang.String TYPE_UPPER_COLD_FRONT
public static final java.lang.String TYPE_UPPER_WARM_FRONT
public static final java.lang.String TYPE_TROUGH
public static final java.lang.String TYPE_RIDGE
public static final java.lang.String TYPE_MOISTURE
public static final java.lang.String TYPE_LOW_LEVEL_JET
public static final java.lang.String TYPE_UPPER_LEVEL_JET
public static final java.lang.String TYPE_DRY_LINE
public static final java.lang.String TYPE_WAVE_LINE
public static final java.lang.String TYPE_TOTAL_TOTALS
public static final java.lang.String TYPE_LIFTED_INDEX
public static final java.lang.String TYPE_ISOTHERMS
public static final java.lang.String TYPE_THICKNESS_RIDGE
public static final java.lang.String TYPE_LOWER_THERMAL_TROUGH
public static final java.lang.String TYPE_UPPER_THERMAL_TROUGH
public static final java.lang.String TYPE_UNEVEN_LOW_LEVEL_JET
public static final java.lang.String[] BASETYPES
public static final java.lang.String[] TYPES
public static final java.lang.String[] LABELS
public double baseScale
public FrontDrawer(int fw,
java.lang.String frontType)
throws visad.VisADException,
java.rmi.RemoteException
fw - window idfrontType - front typejava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic FrontDrawer(int fw,
java.lang.String frontType,
boolean doColors)
throws visad.VisADException,
java.rmi.RemoteException
fw - window idfrontType - front typedoColors - true to use colorsjava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic FrontDrawer(FrontDrawer that) throws java.rmi.RemoteException, visad.VisADException
that - the other instancejava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void setColor(java.awt.Color color)
throws visad.VisADException,
java.rmi.RemoteException
setColor in class Displayablecolor - color for the line.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setLineWidth(float lineWidth)
throws visad.VisADException,
java.rmi.RemoteException
setLineWidth in class DisplayableDatalineWidth - the line widthjava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
cloneForDisplay in class DisplayableDatajava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void setScale(double baseScale)
throws visad.VisADException,
java.rmi.RemoteException
baseScale - the base scalejava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic static java.lang.String getLabel(java.lang.String type)
type - the typepublic void setFrontType(java.lang.String type)
throws visad.VisADException,
java.rmi.RemoteException
type - the typejava.rmi.RemoteException - On badnessvisad.VisADException - On badnessprotected void setDisplayMaster(DisplayMaster master) throws visad.VisADException, java.rmi.RemoteException
setDisplayMaster in class Displayablemaster - the display masterjava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void setCurve(float[][] curve,
java.util.List curveTimes)
throws visad.VisADException,
java.rmi.RemoteException
curve - the curve coordinatescurveTimes - the curve timesjava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void initLatLonMap()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic visad.FieldImpl makeFront(float[][] curve_samples)
throws visad.VisADException,
java.rmi.RemoteException
curve_samples - the front samples (coords,rgb)java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic visad.FieldImpl robustCurveToFront(float[][] curve,
boolean flip)
throws java.rmi.RemoteException
curve - the curveflip - true to flip the pipsjava.rmi.RemoteException - On badnesspublic static float[][] smooth_curve(float[][] curve,
int window)
curve - the curvewindow - the window idpublic static float[][] resample_curve(float[][] curve,
float increment)
curve - the curveincrement - the incrementpublic static float curveLength(float[][] curve,
float[] seg_length)
curve - the curveseg_length - the segment lengthspublic void setFlipTheFlip(boolean value)
value - The new value for FlipTheFlippublic boolean getFlipTheFlip()