|
||||||||||
| 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.CompositeDisplayable
ucar.visad.display.SelectorDisplayable
ucar.visad.display.AreaProbe
public class AreaProbe
Class for a probe that defines an area.
| Field Summary |
|---|
| Fields inherited from class ucar.visad.display.SelectorDisplayable |
|---|
PROPERTY_POSITION |
| Fields inherited from class ucar.visad.display.CompositeDisplayable |
|---|
cnt, label |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
AreaProbe()
Construct an AreaProbe with the defaults |
|
AreaProbe(RealTuple position)
Construct an AreaProbe using the specified position |
|
AreaProbe(RealTuple position,
Real constant)
Construct an AreaProbe using the specified position using the supplied constant |
|
| Method Summary | |
|---|---|
RealTuple |
getArea()
Get the Area as a RealTuple |
static RealTupleType |
getAreaType()
Get the MathType of the area |
void |
setAutoSize(boolean yesorno)
Set whether the marker should automatically resize as the display is zoomed. |
void |
setManipulable(boolean manip)
set if area probe can be moved by the user with mouse cursor or not |
void |
setPosition(double x1,
double y1,
double x2,
double y2)
Sets the position of the probe. |
void |
setPosition(RealTuple position)
Sets the position of the probe. |
| Methods inherited from class ucar.visad.display.SelectorDisplayable |
|---|
addPropertyChangeListener, getAutoSize, getFiringEvent, getOkToFireEvents, getPointSize, notifyListenersOfMove, removePropertyChangeListener, setOkToFireEvents, setPointSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AreaProbe()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD error
public AreaProbe(RealTuple position)
throws VisADException,
RemoteException
position - position for probe
RemoteException - Java RMI error
VisADException - VisAD error
public AreaProbe(RealTuple position,
Real constant)
throws VisADException,
RemoteException
position - probe positionconstant - Z position
RemoteException - Java RMI error
VisADException - VisAD error| Method Detail |
|---|
public void setManipulable(boolean manip)
throws VisADException,
RemoteException
setManipulable in class CompositeDisplayablemanip - boolean true if can move
RemoteException - Java RMI error
VisADException - VisAD error
public static RealTupleType getAreaType()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD error
public RealTuple getArea()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD error
public void setAutoSize(boolean yesorno)
throws VisADException,
RemoteException
setAutoSize in class SelectorDisplayableyesorno - true to automatically resize the marker.
RemoteException - Java RMI error
VisADException - VisAD error
public void setPosition(double x1,
double y1,
double x2,
double y2)
throws VisADException,
RemoteException
PropertyChangeEvent for SelectorDisplayable.PROPERTY_POSITION.
This implementation uses setPosition(RealTuple) to actually
set the position of the probe.
x1 - x position of the upper left cornery1 - y position of the upper left cornerx2 - x position of the lower right cornery2 - y position of the lower right corner
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
public void setPosition(RealTuple position)
throws VisADException,
RemoteException
PropertyChangeEvent for SelectorDisplayable.PROPERTY_POSITION.
position - The position of the probe.
NullPointerException - if the argument is null.
VisADException - if position.getType().equals(
RealTupleType.SpatialCartesian2DTuple)
is false or if another VisAD failure
occurs.
RemoteException - if a Java RMI failure occurs.RealTupleType.SpatialCartesian2DTuple
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||