|
||||||||||
| 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.ZSelector
public class ZSelector
ZSelector is a single small color-filled box on the screen that the user can move vertically by dragging with mouse button three; it can be used to control items whose position has a z value in a VisAD display.
| 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 | |
|---|---|
ZSelector(double x,
double y,
double z)
Construct a ZSelector with default color blue. |
|
ZSelector(double x,
double y,
double z,
Color color)
Construct a ZSelector. |
|
ZSelector(ZSelector that)
Construct a ZSelector from another instance |
|
| Method Summary | |
|---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display. |
Real |
getPosition()
Get the z value from this selector, the z value in the VisAd -1 to 1 scale. |
Real |
getZSelectorPosition()
Get the z value from this selector, the z value in the VisAd -1 to 1 scale. |
void |
setZValue(double newZValue)
Set the location along the Z Axis where you want to place the selector. |
| Methods inherited from class ucar.visad.display.SelectorDisplayable |
|---|
addPropertyChangeListener, getAutoSize, getFiringEvent, getOkToFireEvents, getPointSize, notifyListenersOfMove, removePropertyChangeListener, setAutoSize, setOkToFireEvents, setPointSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ZSelector(double x,
double y,
double z)
throws VisADException,
RemoteException
x - x position in VisAd -1 to 1 scaley - y position in VisAd -1 to 1 scalez - z position in VisAd -1 to 1 scale
VisADException - VisAD error
RemoteException - remote error
public ZSelector(double x,
double y,
double z,
Color color)
throws VisADException,
RemoteException
x - x position in VisAd -1 to 1 scaley - y position in VisAd -1 to 1 scalez - z position in VisAd -1 to 1 scalecolor - the Java Color of the box.
VisADException - VisAD error
RemoteException - remote error
public ZSelector(ZSelector that)
throws VisADException,
RemoteException
that - other instance
VisADException - VisAD error
RemoteException - remote error| Method Detail |
|---|
public Real getZSelectorPosition()
throws VisADException,
RemoteException
VisADException - VisAD error
RemoteException - remote error
public Real getPosition()
throws VisADException,
RemoteException
VisADException - VisAD error
RemoteException - remote error
public void setZValue(double newZValue)
throws VisADException,
RemoteException
newZValue - position along Z axis where component should be
located in the VisAd -1 to 1 scale.
VisADException - VisAD error
RemoteException - remote error
public Displayable cloneForDisplay()
throws VisADException,
RemoteException
cloneForDisplay in class CompositeDisplayableVisADException - VisAD failure.
RemoteException - Java RMI failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||