gov.nasa.worldwindx.applications.worldwindow.features
Class ImportedDataDialog
java.lang.Object
javax.swing.AbstractAction
gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeatureDialog
gov.nasa.worldwindx.applications.worldwindow.features.ImportedDataDialog
- All Implemented Interfaces:
- Initializable, WWODialog, Feature, NetworkActivitySignal.NetworkUser, ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action
public class ImportedDataDialog
- extends AbstractFeatureDialog
- implements NetworkActivitySignal.NetworkUser
- See Also:
- Serialized Form
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
|
Method Summary |
protected static void |
addImportedData(Document dataConfig,
AVList params,
ImportedDataPanel panel)
|
protected static Document |
createDataStoreFromFile(File file,
FileStore fileStore,
DataStoreProducer producer)
|
protected static DataStoreProducer |
createDataStoreProducerFromFile(File file)
|
boolean |
hasNetworkActivity()
|
protected static Document |
importDataFromFile(Component parentComponent,
File file,
FileStore fileStore)
|
protected void |
importFromFile()
|
void |
initialize(Controller controller)
|
boolean |
isOn()
|
boolean |
isTwoState()
Indicates whether the feature can be either on or off, without any other states. |
protected void |
layoutComponents()
|
protected static void |
loadImportedDataFromDirectory(File dir,
ImportedDataPanel panel)
|
protected static void |
loadImportedDataFromFileStore(FileStore fileStore,
ImportedDataPanel panel)
|
protected void |
loadPreviouslyImportedData()
|
protected static void |
setFallbackParams(Document dataConfig,
String filename,
AVList params)
|
| Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeatureDialog |
getJDialog, insertCenterDialogComponent, insertDialogComponent, insertLeftDialogComponent, insertRightDialogComponent, setLocation, setTaskComponent, setTaskPanel, setTaskPanel, setTitle, setVisible, turnOn |
| Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature |
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, propertyChange, register, setMenuAccellerator |
dataConfigPanel
protected ImportedDataPanel dataConfigPanel
fileStore
protected FileStore fileStore
importThread
protected Thread importThread
ImportedDataDialog
public ImportedDataDialog(Registry registry)
addImportedData
protected static void addImportedData(Document dataConfig,
AVList params,
ImportedDataPanel panel)
createDataStoreFromFile
protected static Document createDataStoreFromFile(File file,
FileStore fileStore,
DataStoreProducer producer)
throws Exception
- Throws:
Exception
createDataStoreProducerFromFile
protected static DataStoreProducer createDataStoreProducerFromFile(File file)
hasNetworkActivity
public boolean hasNetworkActivity()
- Specified by:
hasNetworkActivity in interface NetworkActivitySignal.NetworkUser
importDataFromFile
protected static Document importDataFromFile(Component parentComponent,
File file,
FileStore fileStore)
throws Exception
- Throws:
Exception
importFromFile
protected void importFromFile()
initialize
public void initialize(Controller controller)
- Specified by:
initialize in interface Initializable- Overrides:
initialize in class AbstractFeatureDialog
isOn
public boolean isOn()
- Specified by:
isOn in interface Feature- Overrides:
isOn in class AbstractFeature
isTwoState
public boolean isTwoState()
- Description copied from interface:
Feature
- Indicates whether the feature can be either on or off, without any other states. This is used by the tool bar and
menu-bar menus to determine whether the feature's enable/disable button or menu item should be displayed with an
indicator that it's either on or off. In the case of a menu the indicator is a check box. In the case of a tool
bar button the indicator is a dot above the button.
- Specified by:
isTwoState in interface Feature- Overrides:
isTwoState in class AbstractFeature
- Returns:
- true if the feature has only two states, otherwise off.
layoutComponents
protected void layoutComponents()
loadImportedDataFromDirectory
protected static void loadImportedDataFromDirectory(File dir,
ImportedDataPanel panel)
loadImportedDataFromFileStore
protected static void loadImportedDataFromFileStore(FileStore fileStore,
ImportedDataPanel panel)
loadPreviouslyImportedData
protected void loadPreviouslyImportedData()
setFallbackParams
protected static void setFallbackParams(Document dataConfig,
String filename,
AVList params)