Package edu.wisc.ssec.mcidasv.data.hydra
Class SubsetRubberBandBox
java.lang.Object
ucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
edu.wisc.ssec.mcidasv.data.hydra.SubsetRubberBandBox
- Direct Known Subclasses:
GeoSubsetRubberBandBox
-
Nested Class Summary
Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData
DisplayableData.DragAdapter -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Gridded2DSetbounds defined by the rubber band boxprivate static intprivate CoordinateSystemprivate intprivate booleanprivate intprivate static final org.slf4j.Loggerprivate intmouse event maskprivate MyRubberBandBoxRendererJ3Drendererprivate RealTypex type for the boxprivate RealTypey type for the boxFields inherited from class ucar.visad.display.LineDrawing
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZEFields inherited from class ucar.visad.display.DisplayableData
MANIPULABLE, renderer, VISIBLEFields inherited from class ucar.visad.display.Displayable
DISPLAY, parent, SCALAR_MAP_SET -
Constructor Summary
ConstructorsModifierConstructorDescriptionSubsetRubberBandBox(boolean isLL, FlatField data, CoordinateSystem displayCS, int mask) SubsetRubberBandBox(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.protectedConstructor for creating a RubberBandBox from another instanceSubsetRubberBandBox(FlatField data, CoordinateSystem displayCS) Construct a RubberBandBox using xType as the X coordinate and yType as the Y coordinate of the box.SubsetRubberBandBox(FlatField data, CoordinateSystem displayCS, int mask) SubsetRubberBandBox(FlatField data, CoordinateSystem displayCS, int mask, boolean lastBoxOn) -
Method Summary
Modifier and TypeMethodDescriptionReturns a clone of this instance suitable for another VisAD display.protected voidInvoked when box mouse is released.Return the bounds of the RubberBandBox.protected DataRendererGet the DataRenderer used for this displayable.intintvoidMethods inherited from class ucar.visad.display.LineDrawing
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBAMethods 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, toStringMethods 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
-
Field Details
-
logger
-
xType
x type for the box -
yType
y type for the box -
rubberBandBox
renderer -
bounds
bounds defined by the rubber band box -
mask
mouse event mask -
lastBoxOn
-
elemMax
-
lineMax
-
dataCS
-
count
-
-
Constructor Details
-
SubsetRubberBandBox
public SubsetRubberBandBox(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:
data-displayCS-- Throws:
VisADException- VisAD errorRemoteException- Remote error
-
SubsetRubberBandBox
public SubsetRubberBandBox(FlatField data, CoordinateSystem displayCS, int mask) throws VisADException, RemoteException - Throws:
VisADExceptionRemoteException
-
SubsetRubberBandBox
public SubsetRubberBandBox(boolean isLL, FlatField data, CoordinateSystem displayCS, int mask) throws VisADException, RemoteException - Throws:
VisADExceptionRemoteException
-
SubsetRubberBandBox
public SubsetRubberBandBox(FlatField data, CoordinateSystem displayCS, int mask, boolean lastBoxOn) throws VisADException, RemoteException - Throws:
VisADExceptionRemoteException
-
SubsetRubberBandBox
public SubsetRubberBandBox(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:
isLL-data-displayCS-mask- Key mask to use for rubberbandinglastBoxOn-- Throws:
VisADException- VisAD errorRemoteException- Remote error
-
SubsetRubberBandBox
Constructor for creating a RubberBandBox from another instance- Parameters:
that- other instance- Throws:
VisADException- VisAD errorRemoteException- Remote error
-
-
Method Details
-
dataChange
Invoked when box mouse is released. Subclasses should invoke super.dataChange() to ensure the the bounds are set.- Overrides:
dataChangein classDisplayableData- Throws:
RemoteExceptionVisADException
-
getBounds
Return the bounds of the RubberBandBox. The Gridded2DSet that is returned contains the opposite (starting and ending) corners of the box.- Returns:
- set containing the opposite corners of the box.
-
getElemMax
- Returns:
- the elemMax
-
getLineMax
- Returns:
- the lineMax
-
getDataRenderer
Get the DataRenderer used for this displayable.- Overrides:
getDataRendererin classDisplayableData- Returns:
- RubberBandBoxRendererJ3D associated with this displayable
-
cloneForDisplay
Returns a clone of this instance suitable for another VisAD display. Underlying data objects are not cloned.- Overrides:
cloneForDisplayin classDisplayableData- Returns:
- A semi-deep clone of this instance.
- Throws:
VisADException- VisAD failure.RemoteException- Java RMI failure.
-
setBox
-
getLastBox
-