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 |
sc
changeSupport, enabled
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 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, updateStatusLine
getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledState
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mouseClicked, mouseEntered, mouseExited
mouseMoved
private 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()
MapMode
protected void addListeners()
public void exitMode()
MapMode
protected void removeListeners()
public void eventDispatched(AWTEvent event)
eventDispatched
in interface AWTEventListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class MapMode
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class MapMode
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class MapMode
public void actionPerformed(ActionEvent e)
MapMode
actionPerformed
in interface ActionListener
actionPerformed
in class MapMode
public void destroy()
Destroyable
destroy
in interface Destroyable
destroy
in class JosmAction