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, updateStatusLinebuildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setTooltip, updateEnabledState, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFutureprivate 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()
MapModeprivate static void showOffsetDialog(ImageryAdjustAction.ImageryOffsetDialog dlg)
private static void hideOffsetDialog()
protected void addListeners()
public void exitMode()
MapModeprivate void doExitMode()
protected void removeListeners()
public void eventDispatched(java.awt.AWTEvent event)
eventDispatched in interface java.awt.event.AWTEventListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class MapModepublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class MapModepublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class MapModepublic void actionPerformed(java.awt.event.ActionEvent e)
MapModeactionPerformed in interface java.awt.event.ActionListeneractionPerformed in class MapModepublic void destroy()
Destroyabledestroy in interface Destroyabledestroy in class JosmAction