public class ImageryAdjustAction extends MapMode implements java.awt.event.AWTEventListener
Modifier and Type | Class and Description |
---|---|
private static class |
ImageryAdjustAction.ConfirmOverwriteBookmarkDialog |
private class |
ImageryAdjustAction.ImageryOffsetDialog |
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
Modifier and Type | Field and Description |
---|---|
private boolean |
exitingMode |
private AbstractTileSourceLayer<?> |
layer |
private static ImageryAdjustAction.ImageryOffsetDialog |
offsetDialog |
private OffsetBookmark |
old |
private MapMode |
oldMapMode |
private EastNorth |
prevEastNorth |
private boolean |
restoreOldMode |
private OffsetBookmark |
tempOffset |
sc
Constructor and Description |
---|
ImageryAdjustAction(AbstractTileSourceLayer<?> layer)
Constructs a new
ImageryAdjustAction for the given layer. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Call selectMapMode(this) on the parent mapFrame.
|
protected void |
addListeners() |
void |
destroy()
Called when the object has been destroyed.
|
private void |
doExitMode() |
void |
enterMode()
Makes this map mode active.
|
void |
eventDispatched(java.awt.AWTEvent event) |
void |
exitMode()
Makes this map mode inactive.
|
private static void |
hideOffsetDialog() |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
protected void |
removeListeners() |
private static void |
showOffsetDialog(ImageryAdjustAction.ImageryOffsetDialog dlg) |
getModeHelpText, isEditableDataLayer, layerIsSupported, mouseClicked, mouseEntered, mouseExited, mouseMoved, preferenceChanged, readPreferences, requestFocusInMapView, updateKeyModifiers, updateKeyModifiers, updateKeyModifiers, updateKeyModifiersEx, updateStatusLine
checkAndConfirmOutlyingOperation, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setTooltip, updateEnabledState, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFuture
private static ImageryAdjustAction.ImageryOffsetDialog offsetDialog
private transient OffsetBookmark old
private transient OffsetBookmark tempOffset
private EastNorth prevEastNorth
private transient AbstractTileSourceLayer<?> layer
private MapMode oldMapMode
private boolean exitingMode
private boolean restoreOldMode
public ImageryAdjustAction(AbstractTileSourceLayer<?> layer)
ImageryAdjustAction
for the given layer.layer
- The imagery layerpublic void enterMode()
MapMode
private static void showOffsetDialog(ImageryAdjustAction.ImageryOffsetDialog dlg)
private static void hideOffsetDialog()
protected void addListeners()
public void exitMode()
MapMode
private void doExitMode()
protected void removeListeners()
public void eventDispatched(java.awt.AWTEvent event)
eventDispatched
in interface java.awt.event.AWTEventListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class MapMode
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class MapMode
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class MapMode
public void actionPerformed(java.awt.event.ActionEvent e)
MapMode
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class MapMode
public void destroy()
Destroyable
destroy
in interface Destroyable
destroy
in class JosmAction