public class SubsetRubberBandBox extends LineDrawing
DisplayableData.DragAdapter
Modifier and Type | Field and Description |
---|---|
private Gridded2DSet |
bounds
bounds defined by the rubber band box
|
private static int |
count |
private CoordinateSystem |
dataCS |
private int |
elemMax |
private boolean |
lastBoxOn |
private int |
lineMax |
private static org.slf4j.Logger |
logger |
private int |
mask
mouse event mask
|
private MyRubberBandBoxRendererJ3D |
rubberBandBox
renderer
|
private RealType |
xType
x type for the box
|
private RealType |
yType
y type for the box
|
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE
MANIPULABLE, renderer, VISIBLE
DISPLAY, parent, SCALAR_MAP_SET
Modifier | Constructor and Description |
---|---|
|
SubsetRubberBandBox(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.
|
|
SubsetRubberBandBox(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) |
protected |
SubsetRubberBandBox(SubsetRubberBandBox that)
Constructor for creating a RubberBandBox from another instance
|
Modifier and Type | Method and Description |
---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display.
|
protected void |
dataChange()
Invoked when box mouse is released.
|
Gridded2DSet |
getBounds()
Return the bounds of the RubberBandBox.
|
protected DataRenderer |
getDataRenderer()
Get the DataRenderer used for this displayable.
|
int |
getElemMax() |
Gridded3DSet |
getLastBox() |
int |
getLineMax() |
void |
setBox(SubsetRubberBandBox rbb) |
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA
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
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
private static final org.slf4j.Logger logger
private MyRubberBandBoxRendererJ3D rubberBandBox
private Gridded2DSet bounds
private int mask
private boolean lastBoxOn
private int elemMax
private int lineMax
private CoordinateSystem dataCS
private static int count
public SubsetRubberBandBox(FlatField data, CoordinateSystem displayCS) throws VisADException, RemoteException
data
- displayCS
- VisADException
- VisAD errorRemoteException
- Remote errorpublic SubsetRubberBandBox(FlatField data, CoordinateSystem displayCS, int mask) throws VisADException, RemoteException
VisADException
RemoteException
public SubsetRubberBandBox(boolean isLL, FlatField data, CoordinateSystem displayCS, int mask) throws VisADException, RemoteException
VisADException
RemoteException
public SubsetRubberBandBox(FlatField data, CoordinateSystem displayCS, int mask, boolean lastBoxOn) throws VisADException, RemoteException
VisADException
RemoteException
public SubsetRubberBandBox(boolean isLL, FlatField data, CoordinateSystem displayCS, int mask, boolean lastBoxOn) throws VisADException, RemoteException
isLL
- data
- displayCS
- mask
- Key mask to use for rubberbandinglastBoxOn
- VisADException
- VisAD errorRemoteException
- Remote errorprotected SubsetRubberBandBox(SubsetRubberBandBox that) throws VisADException, RemoteException
that
- other instanceVisADException
- VisAD errorRemoteException
- Remote errorprotected void dataChange() throws VisADException, RemoteException
dataChange
in class DisplayableData
RemoteException
VisADException
public Gridded2DSet getBounds()
public int getElemMax()
public int getLineMax()
protected DataRenderer getDataRenderer()
getDataRenderer
in class DisplayableData
public Displayable cloneForDisplay() throws RemoteException, VisADException
cloneForDisplay
in class DisplayableData
VisADException
- VisAD failure.RemoteException
- Java RMI failure.public void setBox(SubsetRubberBandBox rbb)
public Gridded3DSet getLastBox()