public class ExportRelationToGpxAction extends GpxExportAction implements IPrimitiveAction
| Modifier and Type | Class and Description |
|---|---|
static class |
ExportRelationToGpxAction.Mode
Enumeration of export variants
|
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<ExportRelationToGpxAction.Mode> |
mode
Mode of this ExportToGpxAction
|
protected java.util.Collection<Relation> |
relations
Primitives this action works on
|
sc| Constructor and Description |
|---|
ExportRelationToGpxAction()
Construct a new ExportRelationToGpxAction with default mode
|
ExportRelationToGpxAction(java.util.Set<ExportRelationToGpxAction.Mode> mode)
Constructs a new
ExportRelationToGpxAction |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected Layer |
getLayer()
Get the layer to export.
|
private <T> java.util.Iterator<T> |
modeAwareIterator(java.util.List<T> list) |
private static java.lang.String |
name(java.util.Set<ExportRelationToGpxAction.Mode> mode) |
void |
setPrimitives(java.util.Collection<? extends IPrimitive> primitives)
Specifies the working set of primitives.
|
private static java.lang.String |
tooltip(java.util.Set<ExportRelationToGpxAction.Mode> mode) |
protected void |
updateEnabledState()
Refreshes the enabled state
|
exportcreateAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChoosercheckAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setTooltip, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFutureaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprotected final java.util.Set<ExportRelationToGpxAction.Mode> mode
public ExportRelationToGpxAction()
public ExportRelationToGpxAction(java.util.Set<ExportRelationToGpxAction.Mode> mode)
ExportRelationToGpxActionmode - which mode to use, see ExportRelationToGpxAction.Modeprivate static java.lang.String name(java.util.Set<ExportRelationToGpxAction.Mode> mode)
private static java.lang.String tooltip(java.util.Set<ExportRelationToGpxAction.Mode> mode)
protected Layer getLayer()
GpxExportActiongetLayer in class GpxExportActionGpxLayer or OsmDataLayer.private <T> java.util.Iterator<T> modeAwareIterator(java.util.List<T> list)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class GpxExportActione - the ActionEventpublic void setPrimitives(java.util.Collection<? extends IPrimitive> primitives)
IPrimitiveActionsetPrimitives in interface IPrimitiveActionprimitives - The new working set of primitives. Can be null or emptyprotected void updateEnabledState()
GpxExportActionupdateEnabledState in class GpxExportActionJosmAction.updateEnabledState(Collection),
JosmAction.initEnabledState(),
JosmAction.listenToLayerChange()