Package org.openstreetmap.josm.actions
Class PasteAtSourcePositionAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.actions.JosmAction
org.openstreetmap.josm.actions.AbstractPasteAction
org.openstreetmap.josm.actions.PasteAtSourcePositionAction
- All Implemented Interfaces:
FlavorListener,ActionListener,Serializable,Cloneable,EventListener,Action,Destroyable
A special version of the
PasteAction that pastes at the exact source location the item was copied from.- Since:
- 10765
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter -
Field Summary
Fields inherited from class org.openstreetmap.josm.actions.AbstractPasteAction
transferHandlerFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EastNorthCompute the location the objects should be pasted at.Methods inherited from class org.openstreetmap.josm.actions.AbstractPasteAction
actionPerformed, doPaste, flavorsChanged, updateEnabledStateMethods inherited from class org.openstreetmap.josm.actions.JosmAction
buildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setToolbarId, setTooltip, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFutureMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
PasteAtSourcePositionAction
public PasteAtSourcePositionAction()Constructs a newPasteAtSourcePositionAction.
-
-
Method Details
-
computePastePosition
Description copied from class:AbstractPasteActionCompute the location the objects should be pasted at.- Overrides:
computePastePositionin classAbstractPasteAction- Parameters:
e- The action event that triggered the paste- Returns:
- The paste position.
-