gov.nasa.worldwindx.applications.worldwindow.core
Class Controller
java.lang.Object
gov.nasa.worldwindx.applications.worldwindow.core.Controller
public class Controller
- extends Object
|
Method Summary |
Layer |
addInternalActiveLayer(Layer layer)
|
Layer |
addInternalLayer(Layer layer)
|
File |
chooseOutputFile(String defaultName,
String suffixWithoutDot,
String dialogTitle)
|
Object |
createAndRegisterObject(String objectID,
Object className)
|
Object |
createRegistryObject(String className)
|
File |
determineSaveLocation(String dialogTitle,
String defaultFolderName)
|
LayerList |
getActiveLayers()
|
String |
getAppConfigurationLocation()
|
AppFrame |
getAppFrame()
|
AppPanel |
getAppPanel()
|
Dimension |
getAppSize()
|
String |
getAppTitle()
|
Double |
getCurrentAltitude()
|
JFileChooser |
getFileChooser()
|
Frame |
getFrame()
|
LayerManager |
getLayerManager()
|
MenuBar |
getMenuBar()
|
NetworkActivitySignal |
getNetworkActivitySignal()
|
Object |
getRegisteredObject(String objectID)
|
Registry |
getRegistry()
|
StatusPanel |
getStatusPanel()
|
ToolBar |
getToolBar()
|
WWOUnitsFormat |
getUnits()
|
String |
getVersion()
|
WorldWindow |
getWWd()
|
WWPanel |
getWWPanel()
|
void |
moveToLocation(LatLon location)
|
void |
moveToLocation(PointOfInterest location)
|
void |
moveToLocation(Position position)
|
void |
openLink(String link)
|
void |
redraw()
|
void |
registerObject(String objectID,
Object o)
|
void |
setCursor(Cursor cursor)
|
String |
setStatusMessage(String message)
|
void |
showCommunicationErrorDialog(Exception e,
String message,
Object... args)
|
void |
showCommunicationErrorDialogLater(Exception e,
String message,
Object... args)
|
int |
showConfirmFileOverwriteDialog(File outFile)
|
void |
showErrorDialog(Exception e,
String title,
String message,
Object... args)
|
void |
showErrorDialogLater(Exception e,
String title,
String message,
Object... args)
|
void |
showMessageDialog(Component component,
Object message,
String title,
int messageType)
|
void |
showMessageDialog(Component component,
Object message,
String title,
int messageType,
Object... args)
|
void |
showMessageDialog(Object message,
String title,
int messageType)
|
void |
showMessageDialog(Object message,
String title,
int messageType,
Object... args)
|
int |
showOptionDialog(Object message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
|
void |
start(String appConfigurationLocation,
Dimension appSize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Controller
public Controller()
addInternalActiveLayer
public Layer addInternalActiveLayer(Layer layer)
addInternalLayer
public Layer addInternalLayer(Layer layer)
chooseOutputFile
public File chooseOutputFile(String defaultName,
String suffixWithoutDot,
String dialogTitle)
createAndRegisterObject
public Object createAndRegisterObject(String objectID,
Object className)
throws IllegalAccessException,
ClassNotFoundException,
InstantiationException
- Throws:
IllegalAccessException
ClassNotFoundException
InstantiationException
createRegistryObject
public Object createRegistryObject(String className)
throws IllegalAccessException,
ClassNotFoundException,
InstantiationException
- Throws:
IllegalAccessException
ClassNotFoundException
InstantiationException
determineSaveLocation
public File determineSaveLocation(String dialogTitle,
String defaultFolderName)
getActiveLayers
public LayerList getActiveLayers()
getAppConfigurationLocation
public String getAppConfigurationLocation()
getAppFrame
public AppFrame getAppFrame()
getAppPanel
public AppPanel getAppPanel()
getAppSize
public Dimension getAppSize()
getAppTitle
public String getAppTitle()
getCurrentAltitude
public Double getCurrentAltitude()
getFileChooser
public JFileChooser getFileChooser()
getFrame
public Frame getFrame()
getLayerManager
public LayerManager getLayerManager()
getMenuBar
public MenuBar getMenuBar()
getNetworkActivitySignal
public NetworkActivitySignal getNetworkActivitySignal()
getRegisteredObject
public Object getRegisteredObject(String objectID)
getRegistry
public Registry getRegistry()
getStatusPanel
public StatusPanel getStatusPanel()
getToolBar
public ToolBar getToolBar()
getUnits
public WWOUnitsFormat getUnits()
getVersion
public String getVersion()
getWWd
public WorldWindow getWWd()
getWWPanel
public WWPanel getWWPanel()
moveToLocation
public void moveToLocation(LatLon location)
moveToLocation
public void moveToLocation(PointOfInterest location)
moveToLocation
public void moveToLocation(Position position)
openLink
public void openLink(String link)
redraw
public void redraw()
registerObject
public void registerObject(String objectID,
Object o)
setCursor
public void setCursor(Cursor cursor)
setStatusMessage
public String setStatusMessage(String message)
showCommunicationErrorDialog
public void showCommunicationErrorDialog(Exception e,
String message,
Object... args)
showCommunicationErrorDialogLater
public void showCommunicationErrorDialogLater(Exception e,
String message,
Object... args)
showConfirmFileOverwriteDialog
public int showConfirmFileOverwriteDialog(File outFile)
showErrorDialog
public void showErrorDialog(Exception e,
String title,
String message,
Object... args)
showErrorDialogLater
public void showErrorDialogLater(Exception e,
String title,
String message,
Object... args)
showMessageDialog
public void showMessageDialog(Component component,
Object message,
String title,
int messageType)
showMessageDialog
public void showMessageDialog(Component component,
Object message,
String title,
int messageType,
Object... args)
showMessageDialog
public void showMessageDialog(Object message,
String title,
int messageType)
showMessageDialog
public void showMessageDialog(Object message,
String title,
int messageType,
Object... args)
showOptionDialog
public int showOptionDialog(Object message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
start
public void start(String appConfigurationLocation,
Dimension appSize)
throws Exception
- Throws:
Exception