edu.wisc.ssec.mcidasv.data
Class GeoSubsetRubberBandBox

java.lang.Object
  extended by ucar.visad.display.Displayable
      extended by ucar.visad.display.DisplayableData
          extended by ucar.visad.display.LineDrawing
              extended by edu.wisc.ssec.mcidasv.data.hydra.SubsetRubberBandBox
                  extended by edu.wisc.ssec.mcidasv.data.GeoSubsetRubberBandBox

public class GeoSubsetRubberBandBox
extends SubsetRubberBandBox


Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData
DisplayableData.DragAdapter
 
Field Summary
private  Gridded2DSet bounds
          bounds defined by the rubber band box
private static int count
           
private  FlatField data
           
private  CoordinateSystem dataCS
           
private  CoordinateSystem displayCS
           
private  DisplayMaster dispMaster
           
private  boolean isLL
           
private  boolean lastBoxOn
           
private  int mask
          mouse event mask
private  GeoDataToDisplayCoordinateSystem new_cs
           
private  MyRubberBandBoxRendererJ3D rubberBandBox
          renderer
private  RealType xType
          x type for the box
private  RealType yType
          y type for the box
 
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
  GeoSubsetRubberBandBox(boolean isLL, FlatField data, CoordinateSystem displayCS, int mask)
           
  GeoSubsetRubberBandBox(boolean isLL, FlatField data, CoordinateSystem displayCS, int mask, boolean lastBoxOn)
          Construct a RubberBandBox using xType as the X coordinate and yType as the Y coordinate of the box.
  GeoSubsetRubberBandBox(FlatField data, CoordinateSystem displayCS)
          Construct a RubberBandBox using xType as the X coordinate and yType as the Y coordinate of the box.
  GeoSubsetRubberBandBox(FlatField data, CoordinateSystem displayCS, int mask)
           
  GeoSubsetRubberBandBox(FlatField data, CoordinateSystem displayCS, int mask, boolean lastBoxOn)
           
protected GeoSubsetRubberBandBox(GeoSubsetRubberBandBox that)
          Constructor for creating a RubberBandBox from another instance
 
Method Summary
protected  GeoDataToDisplayCoordinateSystem getDisplayCoordSystem()
           
 float[] getRanges()
           
protected  void resetExtremes()
           
protected  void setDisplayMaster(DisplayMaster dspMaster)
           
 
Methods inherited from class edu.wisc.ssec.mcidasv.data.hydra.SubsetRubberBandBox
cloneForDisplay, dataChange, getBounds, getDataRenderer, getLastBox, setBox
 
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, 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

xType

private RealType xType
x type for the box


yType

private RealType yType
y type for the box


rubberBandBox

private MyRubberBandBoxRendererJ3D rubberBandBox
renderer


bounds

private Gridded2DSet bounds
bounds defined by the rubber band box


mask

private int mask
mouse event mask


data

private FlatField data

isLL

private boolean isLL

lastBoxOn

private boolean lastBoxOn

dataCS

private CoordinateSystem dataCS

displayCS

private CoordinateSystem displayCS

dispMaster

private DisplayMaster dispMaster

new_cs

private GeoDataToDisplayCoordinateSystem new_cs

count

private static int count
Constructor Detail

GeoSubsetRubberBandBox

public GeoSubsetRubberBandBox(FlatField data,
                              CoordinateSystem displayCS)
                       throws VisADException,
                              RemoteException
Construct a RubberBandBox using xType as the X coordinate and yType as the Y coordinate of the box.

Parameters:
xType - RealType of the X coordinate of the box
yType - RealType of the Y coordinate of the box
Throws:
VisADException - VisAD error
RemoteException - Remote error

GeoSubsetRubberBandBox

public GeoSubsetRubberBandBox(FlatField data,
                              CoordinateSystem displayCS,
                              int mask)
                       throws VisADException,
                              RemoteException
Throws:
VisADException
RemoteException

GeoSubsetRubberBandBox

public GeoSubsetRubberBandBox(boolean isLL,
                              FlatField data,
                              CoordinateSystem displayCS,
                              int mask)
                       throws VisADException,
                              RemoteException
Throws:
VisADException
RemoteException

GeoSubsetRubberBandBox

public GeoSubsetRubberBandBox(FlatField data,
                              CoordinateSystem displayCS,
                              int mask,
                              boolean lastBoxOn)
                       throws VisADException,
                              RemoteException
Throws:
VisADException
RemoteException

GeoSubsetRubberBandBox

public GeoSubsetRubberBandBox(boolean isLL,
                              FlatField data,
                              CoordinateSystem displayCS,
                              int mask,
                              boolean lastBoxOn)
                       throws VisADException,
                              RemoteException
Construct a RubberBandBox using xType as the X coordinate and yType as the Y coordinate of the box.

Parameters:
xType - RealType of the X coordinate of the box
yType - RealType of the Y coordinate of the box
mask - key mask to use for rubberbanding
Throws:
VisADException - VisAD error
RemoteException - Remote error

GeoSubsetRubberBandBox

protected GeoSubsetRubberBandBox(GeoSubsetRubberBandBox that)
                          throws VisADException,
                                 RemoteException
Constructor for creating a RubberBandBox from another instance

Parameters:
that - other instance
Throws:
VisADException - VisAD error
RemoteException - Remote error
Method Detail

setDisplayMaster

protected void setDisplayMaster(DisplayMaster dspMaster)
Overrides:
setDisplayMaster in class Displayable

getRanges

public float[] getRanges()

resetExtremes

protected void resetExtremes()

getDisplayCoordSystem

protected GeoDataToDisplayCoordinateSystem getDisplayCoordSystem()