Package org.openstreetmap.josm.actions
Class ImageryAdjustAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.actions.JosmAction
org.openstreetmap.josm.actions.mapmode.MapMode
org.openstreetmap.josm.actions.ImageryAdjustAction
- All Implemented Interfaces:
ActionListener,AWTEventListener,MouseListener,MouseMotionListener,Serializable,Cloneable,EventListener,Action,PreferenceChangedListener,Destroyable
Adjust the position of an imagery layer.
- Since:
- 3715
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate classNested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate AbstractTileSourceLayer<?>private static ImageryAdjustAction.ImageryOffsetDialogprivate OffsetBookmarkprivate MapModeprivate EastNorthprivate booleanprivate OffsetBookmarkFields inherited from class org.openstreetmap.josm.actions.mapmode.MapMode
alt, ctrl, cursor, meta, platformMenuShortcutKeyMask, shiftFields 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
ConstructorsConstructorDescriptionImageryAdjustAction(AbstractTileSourceLayer<?> layer) Constructs a newImageryAdjustActionfor the given layer. -
Method Summary
Modifier and TypeMethodDescriptionvoidCall selectMapMode(this) on the parent mapFrame.protected voidvoiddestroy()Called when the object has been destroyed.private voidvoidMakes this map mode active.voideventDispatched(AWTEvent event) voidexitMode()Makes this map mode inactive.private static voidvoidvoidvoidprotected voidprivate static voidMethods inherited from class org.openstreetmap.josm.actions.mapmode.MapMode
getModeHelpText, isEditableDataLayer, isPanning, layerIsSupported, mouseClicked, mouseEntered, mouseExited, mouseMoved, preferenceChanged, readPreferences, requestFocusInMapView, updateKeyModifiers, updateKeyModifiers, updateKeyModifiers, updateKeyModifiersEx, updateStatusLineMethods inherited from class org.openstreetmap.josm.actions.JosmAction
buildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setToolbarId, setTooltip, updateEnabledState, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFutureMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
offsetDialog
-
old
-
tempOffset
-
prevEastNorth
-
layer
-
oldMapMode
-
exitingMode
-
restoreOldMode
-
-
Constructor Details
-
ImageryAdjustAction
Constructs a newImageryAdjustActionfor the given layer.- Parameters:
layer- The imagery layer
-
-
Method Details
-
enterMode
Description copied from class:MapModeMakes this map mode active. -
showOffsetDialog
-
hideOffsetDialog
-
addListeners
-
exitMode
Description copied from class:MapModeMakes this map mode inactive. -
doExitMode
-
removeListeners
-
eventDispatched
- Specified by:
eventDispatchedin interfaceAWTEventListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMapMode
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classMapMode
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classMapMode
-
actionPerformed
Description copied from class:MapModeCall selectMapMode(this) on the parent mapFrame.- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classMapMode
-
destroy
Description copied from interface:DestroyableCalled when the object has been destroyed.- Specified by:
destroyin interfaceDestroyable- Overrides:
destroyin classJosmAction
-