|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
ucar.visad.display.RubberBandBox
public class RubberBandBox
Provides support for a Displayable that comprises a rubber band box. The box can be drawn in spherical and other non-Cartesian coordinate systems by selecting the appropriate X and Y RealTypes.
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)
}
});
| Field Summary |
|---|
| Fields inherited from class ucar.visad.display.LineDrawing |
|---|
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE |
| Fields inherited from class ucar.visad.display.DisplayableData |
|---|
MANIPULABLE, VISIBLE |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
|
RubberBandBox(RealType xType,
RealType yType)
Construct a RubberBandBox using xType as the X coordinate and yType as the Y coordinate of the box. |
|
RubberBandBox(RealType xType,
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 |
| Method Summary | |
|---|---|
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. |
| 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, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RubberBandBox(RealType xType,
RealType yType)
throws VisADException,
RemoteException
xType - RealType of the X coordinate of the boxyType - RealType of the Y coordinate of the box
VisADException - VisAD error
RemoteException - Remote error
public RubberBandBox(RealType xType,
RealType yType,
int mask)
throws VisADException,
RemoteException
xType - RealType of the X coordinate of the boxyType - RealType of the Y coordinate of the boxmask - key mask to use for rubberbanding
VisADException - VisAD error
RemoteException - Remote error
protected RubberBandBox(RubberBandBox that)
throws VisADException,
RemoteException
that - other instance
VisADException - VisAD error
RemoteException - Remote error| Method Detail |
|---|
protected void dataChange()
throws VisADException,
RemoteException
dataChange in class DisplayableDataRemoteException
VisADExceptionpublic Gridded2DSet getBounds()
protected DataRenderer getDataRenderer()
getDataRenderer in class DisplayableData
public Displayable cloneForDisplay()
throws RemoteException,
VisADException
cloneForDisplay in class DisplayableDataVisADException - VisAD failure.
RemoteException - Java RMI failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||