|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
org.openstreetmap.josm.actions.JosmAction
org.openstreetmap.josm.actions.DiskAccessAction
org.openstreetmap.josm.actions.GpxExportAction
public class GpxExportAction
Exports data to gpx.
| Field Summary |
|---|
| Fields inherited from class org.openstreetmap.josm.actions.JosmAction |
|---|
sc |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| 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 |
| Constructor Summary | |
|---|---|
GpxExportAction()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
export(Layer layer)
Exports a layer to a file. |
protected Layer |
getLayer()
Get the layer to export. |
protected void |
updateEnabledState()
Refreshes the enabled state |
| Methods inherited from class org.openstreetmap.josm.actions.DiskAccessAction |
|---|
createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser |
| Methods inherited from class org.openstreetmap.josm.actions.JosmAction |
|---|
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GpxExportAction()
| Method Detail |
|---|
protected Layer getLayer()
GpxLayer or OsmDataLayer.public void actionPerformed(java.awt.event.ActionEvent e)
public void export(Layer layer)
layer must not be null. layer must be an instance of
OsmDataLayer or GpxLayer.
layer - the layer
java.lang.IllegalArgumentException - thrown if layer is null
java.lang.IllegalArgumentException - thrown if layer is neither an instance of OsmDataLayer
nor of GpxLayerprotected void updateEnabledState()
updateEnabledState in class JosmActionJosmAction.updateEnabledState(Collection),
JosmAction.initEnabledState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||