ucar.visad.display
Class FrontDrawer

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.DisplayableData
          extended by ucar.visad.display.FrontDrawer

public class FrontDrawer
extends DisplayableData

FrontDrawer is the VisAD class for manipulation of fronts. Is was originally taken from the class visad.bom.FrontDrawer


Field Summary
 double baseScale
          _more_
static String[] BASETYPES
          _more_
static String[] LABELS
          _more_
static String TYPE_COLD_FRONT
          _more_
static String TYPE_CONVERGENCE
          _more_
static String TYPE_DRY_LINE
          _more_
static String TYPE_FRONTOGENESIS
          _more_
static String TYPE_FRONTOLYSIS
          _more_
static String TYPE_ISOTHERMS
          _more_
static String TYPE_LIFTED_INDEX
          _more_
static String TYPE_LOW_LEVEL_JET
          _more_
static String TYPE_LOWER_THERMAL_TROUGH
          _more_
static String TYPE_MOISTURE
          _more_
static String TYPE_OCCLUDED_FRONT
          _more_
static String TYPE_RIDGE
          _more_
static String TYPE_STATIONARY_FRONT
          _more_
static String TYPE_THICKNESS_RIDGE
          _more_
static String TYPE_TOTAL_TOTALS
          _more_
static String TYPE_TROUGH
          _more_
static String TYPE_UNEVEN_LOW_LEVEL_JET
          _more_
static String TYPE_UPPER_COLD_FRONT
          _more_
static String TYPE_UPPER_LEVEL_JET
          _more_
static String TYPE_UPPER_THERMAL_TROUGH
          _more_
static String TYPE_UPPER_WARM_FRONT
          _more_
static String TYPE_WARM_FRONT
          _more_
static String[] TYPES
          _more_
 
Fields inherited from class ucar.visad.display.DisplayableData
LINE_WIDTH, MANIPULABLE, VISIBLE
 
Fields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET
 
Constructor Summary
FrontDrawer(FrontDrawer that)
          _more_
FrontDrawer(int fw, String frontType)
          _more_
FrontDrawer(int fw, String frontType, boolean doColors)
          _more_
 
Method Summary
 Displayable cloneForDisplay()
          _more_
static float curveLength(float[][] curve, float[] seg_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)
          _more_
 void initLatLonMap()
          _more_
 FieldImpl makeFront(float[][] curve_samples)
          _more_
static float[][] resample_curve(float[][] curve, float increment)
          resmaple curve into segments approximately increment in length
 FieldImpl robustCurveToFront(float[][] curve, boolean flip)
          _more_
 void setColor(Color color)
          Sets the color of the lines for this Displayable.
 void setCurve(float[][] curve, List curveTimes)
          _more_
protected  void setDisplayMaster(DisplayMaster master)
          _more_
 void setFlipTheFlip(boolean value)
          Set the FlipTheFlip property.
 void setFrontType(String type)
          _more_
 void setLineWidth(float lineWidth)
          _more_
 void setScale(double baseScale)
          _more_
static float[][] smooth_curve(float[][] curve, int window)
          _more_
 
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, setManipulable, setPickable, setPointMode, setPointSize, setUseFastRendering, setVisible, toString
 
Methods inherited from class ucar.visad.display.Displayable
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, 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, toFront
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_COLD_FRONT

public static final String TYPE_COLD_FRONT
_more_

See Also:
Constant Field Values

TYPE_WARM_FRONT

public static final String TYPE_WARM_FRONT
_more_

See Also:
Constant Field Values

TYPE_OCCLUDED_FRONT

public static final String TYPE_OCCLUDED_FRONT
_more_

See Also:
Constant Field Values

TYPE_STATIONARY_FRONT

public static final String TYPE_STATIONARY_FRONT
_more_

See Also:
Constant Field Values

TYPE_CONVERGENCE

public static final String TYPE_CONVERGENCE
_more_

See Also:
Constant Field Values

TYPE_FRONTOGENESIS

public static final String TYPE_FRONTOGENESIS
_more_

See Also:
Constant Field Values

TYPE_FRONTOLYSIS

public static final String TYPE_FRONTOLYSIS
_more_

See Also:
Constant Field Values

TYPE_UPPER_COLD_FRONT

public static final String TYPE_UPPER_COLD_FRONT
_more_

See Also:
Constant Field Values

TYPE_UPPER_WARM_FRONT

public static final String TYPE_UPPER_WARM_FRONT
_more_

See Also:
Constant Field Values

TYPE_TROUGH

public static final String TYPE_TROUGH
_more_

See Also:
Constant Field Values

TYPE_RIDGE

public static final String TYPE_RIDGE
_more_

See Also:
Constant Field Values

TYPE_MOISTURE

public static final String TYPE_MOISTURE
_more_

See Also:
Constant Field Values

TYPE_LOW_LEVEL_JET

public static final String TYPE_LOW_LEVEL_JET
_more_

See Also:
Constant Field Values

TYPE_UPPER_LEVEL_JET

public static final String TYPE_UPPER_LEVEL_JET
_more_

See Also:
Constant Field Values

TYPE_DRY_LINE

public static final String TYPE_DRY_LINE
_more_

See Also:
Constant Field Values

TYPE_TOTAL_TOTALS

public static final String TYPE_TOTAL_TOTALS
_more_

See Also:
Constant Field Values

TYPE_LIFTED_INDEX

public static final String TYPE_LIFTED_INDEX
_more_

See Also:
Constant Field Values

TYPE_ISOTHERMS

public static final String TYPE_ISOTHERMS
_more_

See Also:
Constant Field Values

TYPE_THICKNESS_RIDGE

public static final String TYPE_THICKNESS_RIDGE
_more_

See Also:
Constant Field Values

TYPE_LOWER_THERMAL_TROUGH

public static final String TYPE_LOWER_THERMAL_TROUGH
_more_

See Also:
Constant Field Values

TYPE_UPPER_THERMAL_TROUGH

public static final String TYPE_UPPER_THERMAL_TROUGH
_more_

See Also:
Constant Field Values

TYPE_UNEVEN_LOW_LEVEL_JET

public static final String TYPE_UNEVEN_LOW_LEVEL_JET
_more_

See Also:
Constant Field Values

BASETYPES

public static final String[] BASETYPES
_more_


TYPES

public static final String[] TYPES
_more_


LABELS

public static final String[] LABELS
_more_


baseScale

public double baseScale
_more_

Constructor Detail

FrontDrawer

public FrontDrawer(int fw,
                   String frontType)
            throws VisADException,
                   RemoteException
_more_

Parameters:
fw - _more_
frontType - _more_
Throws:
RemoteException - On badness
VisADException - On badness

FrontDrawer

public FrontDrawer(int fw,
                   String frontType,
                   boolean doColors)
            throws VisADException,
                   RemoteException
_more_

Parameters:
fw - _more_
frontType - _more_
doColors - _more_
Throws:
RemoteException - On badness
VisADException - On badness

FrontDrawer

public FrontDrawer(FrontDrawer that)
            throws RemoteException,
                   VisADException
_more_

Parameters:
that - _more_
Throws:
RemoteException - On badness
VisADException - On badness
Method Detail

setColor

public void setColor(Color color)
              throws VisADException,
                     RemoteException
Sets the color of the lines for this Displayable.

Overrides:
setColor in class Displayable
Parameters:
color - color for the line.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

setLineWidth

public void setLineWidth(float lineWidth)
                  throws VisADException,
                         RemoteException
_more_

Overrides:
setLineWidth in class DisplayableData
Parameters:
lineWidth - _more_
Throws:
RemoteException - On badness
VisADException - On badness

cloneForDisplay

public Displayable cloneForDisplay()
                            throws RemoteException,
                                   VisADException
_more_

Overrides:
cloneForDisplay in class DisplayableData
Returns:
_more_
Throws:
RemoteException - On badness
VisADException - On badness

setScale

public void setScale(double baseScale)
              throws VisADException,
                     RemoteException
_more_

Parameters:
baseScale - _more_
Throws:
RemoteException - On badness
VisADException - On badness

getLabel

public static String getLabel(String type)
_more_

Parameters:
type - _more_
Returns:
_more_

setFrontType

public void setFrontType(String type)
                  throws VisADException,
                         RemoteException
_more_

Parameters:
type - _more_
Throws:
RemoteException - On badness
VisADException - On badness

setDisplayMaster

protected void setDisplayMaster(DisplayMaster master)
                         throws VisADException,
                                RemoteException
_more_

Overrides:
setDisplayMaster in class Displayable
Parameters:
master - _more_
Throws:
RemoteException - On badness
VisADException - On badness

setCurve

public void setCurve(float[][] curve,
                     List curveTimes)
              throws VisADException,
                     RemoteException
_more_

Parameters:
curve - _more_
curveTimes - _more_
Throws:
RemoteException - On badness
VisADException - On badness

initLatLonMap

public void initLatLonMap()
                   throws VisADException,
                          RemoteException
_more_

Throws:
RemoteException - On badness
VisADException - On badness

makeFront

public FieldImpl makeFront(float[][] curve_samples)
                    throws VisADException,
                           RemoteException
_more_

Parameters:
curve_samples - _more_
Returns:
_more_
Throws:
RemoteException - On badness
VisADException - On badness

robustCurveToFront

public FieldImpl robustCurveToFront(float[][] curve,
                                    boolean flip)
                             throws RemoteException
_more_

Parameters:
curve - _more_
flip - _more_
Returns:
_more_
Throws:
RemoteException - On badness

smooth_curve

public static float[][] smooth_curve(float[][] curve,
                                     int window)
_more_

Parameters:
curve - _more_
window - _more_
Returns:
_more_

resample_curve

public static float[][] resample_curve(float[][] curve,
                                       float increment)
resmaple curve into segments approximately increment in length

Parameters:
curve - _more_
increment - _more_
Returns:
_more_

curveLength

public static float curveLength(float[][] curve,
                                float[] seg_length)
assumes curve is float[2][len] and seg_length is float[len-1]

Parameters:
curve - _more_
seg_length - _more_
Returns:
_more_

setFlipTheFlip

public void setFlipTheFlip(boolean value)
Set the FlipTheFlip property. If true then this flips the orientation of the front

Parameters:
value - The new value for FlipTheFlip

getFlipTheFlip

public boolean getFlipTheFlip()
Get the FlipTheFlip property.

Returns:
The FlipTheFlip