Class CurveDrawer

java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
edu.wisc.ssec.mcidasv.data.hydra.CurveDrawer

public class CurveDrawer extends ucar.visad.display.LineDrawing
Provides support for a Displayable that comprises a set of drawn curves. The curves can be drawn in in spherical and other non-Cartesian coordinate systems by selecting the appropriate RealTypes or RealTupleType.

Sample usage:

  CurveDrawer curveDraw =
      new CurveDrawer(RealType.Latitude, RealType.Longitude);
  curveDraw.addAction(new ActionImpl() {
      public void doAction()
          throws VisADException, RemoteException
      {
          UnionSet curves = curveDraw.getData();
          (do something useful with the curves)
      }
  });
 
Version:
$Revision$
Author:
Don Murray
  • Nested Class Summary

    Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData

    ucar.visad.display.DisplayableData.DragAdapter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private UnionSet
    the set of drawn curves
    private int
    mask for mouse events
    The type for the drawing space

    Fields inherited from class ucar.visad.display.LineDrawing

    COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE

    Fields inherited from class ucar.visad.display.DisplayableData

    MANIPULABLE, renderer, VISIBLE

    Fields inherited from class ucar.visad.display.Displayable

    DISPLAY, parent, SCALAR_MAP_SET
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor for creating a CurveDrawer from another instance
     
    Construct a CurveDrawer using the RealTupleType
     
    CurveDrawer(RealTupleType type, int mask)
    Construct a CurveDrawer using the RealTupleType of the drawing space and a mask for the mouse
     
    CurveDrawer(RealType xType, RealType yType)
    Construct a CurveDrawer using xType as the X coordinate and yType as the Y coordinate of the box.
     
    CurveDrawer(RealType xType, RealType yType, int mask)
    Construct a CurveDrawer using xType as the X coordinate and yType as the Y coordinate of the box.
     
    Construct a CurveDrawer with a predefined set of curves.
     
    CurveDrawer(UnionSet curves, int mask)
    Construct a CurveDrawer with a predefined set of curves.
  • Method Summary

    Modifier and Type
    Method
    Description
    ucar.visad.display.Displayable
    Returns a clone of this instance suitable for another VisAD display.
    protected void
    Invoked when box mouse is released.
    Return the curves of the CurveDrawer.
    protected DataRenderer
    Returns the DataRenderer for this displayable.
    boolean
    Set whether the curves are manipulable or not.
    void
    Set the curves of the CurveDrawer.
    void
    setDrawingEnabled(boolean b)
    Set whether the curves are manipulable or not.

    Methods inherited from class ucar.visad.display.LineDrawing

    getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA

    Methods inherited from class ucar.visad.display.DisplayableData

    addAction, destroy, getActive, getAnimationSet, getData, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, showme, toString

    Methods inherited from class ucar.visad.display.Displayable

    addConstantMap, 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, setDisplayMaster, 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