public class SubsetRubberBandBox extends ucar.visad.display.LineDrawing
Modifier and Type | Field and Description |
---|---|
private visad.Gridded2DSet |
bounds
bounds defined by the rubber band box
|
private static int |
count |
private visad.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 visad.RealType |
xType
x type for the box
|
private visad.RealType |
yType
y type for the box
|
Modifier | Constructor and Description |
---|---|
|
SubsetRubberBandBox(boolean isLL,
visad.FlatField data,
visad.CoordinateSystem displayCS,
int mask) |
|
SubsetRubberBandBox(boolean isLL,
visad.FlatField data,
visad.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(visad.FlatField data,
visad.CoordinateSystem displayCS)
Construct a RubberBandBox using xType as the X coordinate and
yType as the Y coordinate of the box.
|
|
SubsetRubberBandBox(visad.FlatField data,
visad.CoordinateSystem displayCS,
int mask) |
|
SubsetRubberBandBox(visad.FlatField data,
visad.CoordinateSystem displayCS,
int mask,
boolean lastBoxOn) |
protected |
SubsetRubberBandBox(SubsetRubberBandBox that)
Constructor for creating a RubberBandBox from another instance
|
Modifier and Type | Method and Description |
---|---|
ucar.visad.display.Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display.
|
protected void |
dataChange()
Invoked when box mouse is released.
|
visad.Gridded2DSet |
getBounds()
Return the bounds of the RubberBandBox.
|
protected visad.DataRenderer |
getDataRenderer()
Get the DataRenderer used for this displayable.
|
int |
getElemMax() |
visad.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 visad.RealType xType
private visad.RealType yType
private MyRubberBandBoxRendererJ3D rubberBandBox
private visad.Gridded2DSet bounds
private int mask
private boolean lastBoxOn
private int elemMax
private int lineMax
private visad.CoordinateSystem dataCS
private static int count
public SubsetRubberBandBox(visad.FlatField data, visad.CoordinateSystem displayCS) throws visad.VisADException, java.rmi.RemoteException
data
- displayCS
- visad.VisADException
- VisAD errorjava.rmi.RemoteException
- Remote errorpublic SubsetRubberBandBox(visad.FlatField data, visad.CoordinateSystem displayCS, int mask) throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
java.rmi.RemoteException
public SubsetRubberBandBox(boolean isLL, visad.FlatField data, visad.CoordinateSystem displayCS, int mask) throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
java.rmi.RemoteException
public SubsetRubberBandBox(visad.FlatField data, visad.CoordinateSystem displayCS, int mask, boolean lastBoxOn) throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
java.rmi.RemoteException
public SubsetRubberBandBox(boolean isLL, visad.FlatField data, visad.CoordinateSystem displayCS, int mask, boolean lastBoxOn) throws visad.VisADException, java.rmi.RemoteException
isLL
- data
- displayCS
- mask
- Key mask to use for rubberbandinglastBoxOn
- visad.VisADException
- VisAD errorjava.rmi.RemoteException
- Remote errorprotected SubsetRubberBandBox(SubsetRubberBandBox that) throws visad.VisADException, java.rmi.RemoteException
that
- other instancevisad.VisADException
- VisAD errorjava.rmi.RemoteException
- Remote errorprotected void dataChange() throws visad.VisADException, java.rmi.RemoteException
dataChange
in class ucar.visad.display.DisplayableData
java.rmi.RemoteException
visad.VisADException
public visad.Gridded2DSet getBounds()
public int getElemMax()
public int getLineMax()
protected visad.DataRenderer getDataRenderer()
getDataRenderer
in class ucar.visad.display.DisplayableData
public ucar.visad.display.Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
cloneForDisplay
in class ucar.visad.display.DisplayableData
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setBox(SubsetRubberBandBox rbb)
public visad.Gridded3DSet getLastBox()