Class ExportRelationToGpxAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.actions.JosmAction
org.openstreetmap.josm.actions.DiskAccessAction
org.openstreetmap.josm.actions.GpxExportAction
org.openstreetmap.josm.actions.relation.ExportRelationToGpxAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,IPrimitiveAction,Destroyable
Exports the current relation to a single GPX track,
currently for type=route and type=superroute relations only.
- Since:
- 13210
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of export variantsNested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Set<ExportRelationToGpxAction.Mode>Mode of this ExportToGpxActionprotected Collection<Relation>Primitives this action works onFields inherited from class org.openstreetmap.josm.actions.JosmAction
scFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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
ConstructorsConstructorDescriptionConstruct a new ExportRelationToGpxAction with default modeConstructs a newExportRelationToGpxAction -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected LayergetLayer()Get the layer to export.private <T> Iterator<T>modeAwareIterator(List<T> list) private static StringvoidsetPrimitives(Collection<? extends IPrimitive> primitives) Specifies the working set of primitives.private static Stringprotected voidRefreshes the enabled stateMethods inherited from class org.openstreetmap.josm.actions.GpxExportAction
export, listenToSelectionChangeMethods inherited from class org.openstreetmap.josm.actions.DiskAccessAction
createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, showSavedNotification, showSavingNotificationMethods inherited from class org.openstreetmap.josm.actions.JosmAction
buildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, setHelpId, setToolbarId, setTooltip, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFutureMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
mode
Mode of this ExportToGpxAction -
relations
Primitives this action works on
-
-
Constructor Details
-
ExportRelationToGpxAction
public ExportRelationToGpxAction()Construct a new ExportRelationToGpxAction with default mode -
ExportRelationToGpxAction
Constructs a newExportRelationToGpxAction- Parameters:
mode- which mode to use, seeExportRelationToGpxAction.Mode
-
-
Method Details
-
name
-
tooltip
-
getLayer
Description copied from class:GpxExportActionGet the layer to export.- Overrides:
getLayerin classGpxExportAction- Returns:
- The layer to export, if supported, otherwise
null.
-
modeAwareIterator
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classGpxExportAction- Parameters:
e- the ActionEvent
-
setPrimitives
Description copied from interface:IPrimitiveActionSpecifies the working set of primitives.- Specified by:
setPrimitivesin interfaceIPrimitiveAction- Parameters:
primitives- The new working set of primitives. Can be null or empty
-
updateEnabledState
Description copied from class:GpxExportActionRefreshes the enabled state- Overrides:
updateEnabledStatein classGpxExportAction- See Also:
-