public class WindController extends DataController
| Constructor and Description |
|---|
WindController(ucar.unidata.view.sounding.WindDataModel database,
WindProfileDisplay display)
Constructs from an wind-profile database and wind-profile display.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDataDisplayable(int index)
Adds a given displayed datum to the view.
|
protected void |
removeAllDataDisplayables()
Removes all displayed data from the view.
|
protected void |
removeDataDisplayable(int index)
Removes a given displayed datum from the view.
|
protected void |
selectedIndexChange(int index)
Handles a change to the index of the selected wind-profile.
|
protected void |
setVisibility(int index,
boolean visible)
Sets the visibility of a given displayed datum.
|
addDataDisplayables, removeDataDisplayables, setVisibilitypublic WindController(ucar.unidata.view.sounding.WindDataModel database,
WindProfileDisplay display)
database - The wind-profile database.display - The wind-profile display.protected void selectedIndexChange(int index)
throws visad.VisADException,
java.rmi.RemoteException
selectedIndexChange in class DataControllerindex - The index of the selected wind-profile. A
values of -1 means that there is no selected
wind-profile.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected void addDataDisplayable(int index)
throws visad.VisADException,
java.rmi.RemoteException
addDataDisplayable in class DataControllerindex - The index of the displayed datum.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected void removeAllDataDisplayables()
throws visad.VisADException,
java.rmi.RemoteException
removeAllDataDisplayables in class DataControllervisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected void removeDataDisplayable(int index)
throws java.lang.IndexOutOfBoundsException,
visad.VisADException,
java.rmi.RemoteException
removeDataDisplayable in class DataControllerindex - The index of the displayed datum.java.lang.IndexOutOfBoundsException - The index is out of range.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected void setVisibility(int index,
boolean visible)
throws visad.VisADException,
java.rmi.RemoteException
setVisibility in class DataControllerindex - The index of the displayed datum.visible - Whether or not the datum should be visible.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.