public class RubberBandBox extends LineDrawing
Sample usage:
RubberBandBox rbBox = new RubberBandBox(RealType.Latitude, RealType.Longitude); rbBox.addAction(new ActionImpl() { public void doAction() throws VisADException, RemoteException { Gridded2DSet bounds = rbBox.getBounds(); (do something useful with the box) } });
DisplayableData.DragAdapter
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE
MANIPULABLE, renderer, VISIBLE
DISPLAY, parent, SCALAR_MAP_SET
Modifier | Constructor and Description |
---|---|
|
RubberBandBox(visad.RealType xType,
visad.RealType yType)
Construct a RubberBandBox using xType as the X coordinate and
yType as the Y coordinate of the box.
|
|
RubberBandBox(visad.RealType xType,
visad.RealType yType,
int mask)
Construct a RubberBandBox using xType as the X coordinate and
yType as the Y coordinate of the box.
|
protected |
RubberBandBox(RubberBandBox 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.
|
visad.Gridded2DSet |
getBounds()
Return the bounds of the RubberBandBox.
|
protected visad.DataRenderer |
getDataRenderer()
Get the DataRenderer used for this displayable.
|
void |
reSetBounds()
_more_
|
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
public RubberBandBox(visad.RealType xType, visad.RealType yType) throws visad.VisADException, java.rmi.RemoteException
xType
- RealType of the X coordinate of the boxyType
- RealType of the Y coordinate of the boxvisad.VisADException
- VisAD errorjava.rmi.RemoteException
- Remote errorpublic RubberBandBox(visad.RealType xType, visad.RealType yType, int mask) throws visad.VisADException, java.rmi.RemoteException
xType
- RealType of the X coordinate of the boxyType
- RealType of the Y coordinate of the boxmask
- key mask to use for rubberbandingvisad.VisADException
- VisAD errorjava.rmi.RemoteException
- Remote errorprotected RubberBandBox(RubberBandBox 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 DisplayableData
java.rmi.RemoteException
visad.VisADException
public visad.Gridded2DSet getBounds()
protected visad.DataRenderer getDataRenderer()
getDataRenderer
in class DisplayableData
public void reSetBounds()
public Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
cloneForDisplay
in class DisplayableData
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.