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 Gridded2DSet
bounds defined by the rubber band boxprivate static int
private CoordinateSystem
private int
private boolean
private int
private static final org.slf4j.Logger
private int
mouse event maskprivate MyRubberBandBoxRendererJ3D
rendererprivate RealType
x type for the boxprivate RealType
y type for the boxFields 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
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.protected
Constructor 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 void
Invoked when box mouse is released.Return the bounds of the RubberBandBox.protected DataRenderer
Get the DataRenderer used for this displayable.int
int
void
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
-
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:
VisADException
RemoteException
-
SubsetRubberBandBox
public SubsetRubberBandBox(boolean isLL, FlatField data, CoordinateSystem displayCS, int mask) throws VisADException, RemoteException - Throws:
VisADException
RemoteException
-
SubsetRubberBandBox
public SubsetRubberBandBox(FlatField data, CoordinateSystem displayCS, int mask, boolean lastBoxOn) throws VisADException, RemoteException - Throws:
VisADException
RemoteException
-
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:
dataChange
in classDisplayableData
- Throws:
RemoteException
VisADException
-
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:
getDataRenderer
in 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:
cloneForDisplay
in classDisplayableData
- Returns:
- A semi-deep clone of this instance.
- Throws:
VisADException
- VisAD failure.RemoteException
- Java RMI failure.
-
setBox
-
getLastBox
-