public class ImageryAdjustAction extends MapMode implements MouseListener, MouseMotionListener, AWTEventListener
| Modifier and Type | Class and Description |
|---|---|
private class |
ImageryAdjustAction.ImageryOffsetDialog |
JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter| Modifier and Type | Field and Description |
|---|---|
private static Cursor |
cursor |
private ImageryLayer |
layer |
private static ImageryAdjustAction.ImageryOffsetDialog |
offsetDialog |
private double |
oldDx |
private double |
oldDy |
private MapMode |
oldMapMode |
private EastNorth |
prevEastNorth |
scchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
ImageryAdjustAction(ImageryLayer layer)
Constructs a new
ImageryAdjustAction for the given layer. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
Call selectMapMode(this) on the parent mapFrame.
|
protected void |
addListeners() |
void |
destroy()
Called when the object has been destroyed.
|
void |
enterMode()
Makes this map mode active.
|
void |
eventDispatched(AWTEvent event) |
void |
exitMode()
Makes this map mode inactive.
|
void |
mouseDragged(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
protected void |
removeListeners() |
getModeHelpText, layerIsSupported, mouseClicked, mouseEntered, mouseExited, mouseMoved, requestFocusInMapView, updateKeyModifiers, updateKeyModifiers, updateKeyModifiers, updateStatusLinegetCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledStateaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmouseClicked, mouseEntered, mouseExitedmouseMovedprivate static volatile ImageryAdjustAction.ImageryOffsetDialog offsetDialog
private double oldDx
private double oldDy
private EastNorth prevEastNorth
private transient ImageryLayer layer
private MapMode oldMapMode
public ImageryAdjustAction(ImageryLayer layer)
ImageryAdjustAction for the given layer.layer - The imagery layerpublic void enterMode()
MapModeprotected void addListeners()
public void exitMode()
MapModeprotected void removeListeners()
public void eventDispatched(AWTEvent event)
eventDispatched in interface AWTEventListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenermousePressed in class MapModepublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenermouseDragged in class MapModepublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class MapModepublic void actionPerformed(ActionEvent e)
MapModeactionPerformed in interface ActionListeneractionPerformed in class MapModepublic void destroy()
Destroyabledestroy in interface Destroyabledestroy in class JosmAction