public class ExportRelationToGpxAction extends GpxExportAction implements IPrimitiveAction
Modifier and Type | Class and Description |
---|---|
private static class |
ExportRelationToGpxAction.BidiIterableList |
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 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
|
export
createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser, createAndOpenFileChooser
checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setTooltip, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFuture
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected final java.util.Set<ExportRelationToGpxAction.Mode> mode
public ExportRelationToGpxAction()
public ExportRelationToGpxAction(java.util.Set<ExportRelationToGpxAction.Mode> mode)
ExportRelationToGpxAction
mode
- which mode to use, see ExportRelationToGpxAction.Mode
private 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()
GpxExportAction
getLayer
in class GpxExportAction
GpxLayer
or OsmDataLayer
.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class GpxExportAction
e
- the ActionEventpublic void setPrimitives(java.util.Collection<? extends IPrimitive> primitives)
IPrimitiveAction
setPrimitives
in interface IPrimitiveAction
primitives
- The new working set of primitives. Can be null or emptyprotected void updateEnabledState()
GpxExportAction
updateEnabledState
in class GpxExportAction
JosmAction.updateEnabledState(Collection)
,
JosmAction.initEnabledState()
,
JosmAction.listenToLayerChange()