public class ImageryAdjustAction extends MapMode implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.AWTEventListener
Modifier and Type | Class and Description |
---|---|
private class |
ImageryAdjustAction.ImageryOffsetDialog |
JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
Modifier and Type | Field and Description |
---|---|
private static java.awt.Cursor |
cursor |
private ImageryLayer |
layer |
private static ImageryAdjustAction.ImageryOffsetDialog |
offsetDialog |
private double |
oldDx |
private double |
oldDy |
private MapMode |
oldMapMode |
private EastNorth |
prevEastNorth |
sc
Constructor and Description |
---|
ImageryAdjustAction(ImageryLayer 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.
|
void |
enterMode()
Makes this map mode active.
|
void |
eventDispatched(java.awt.AWTEvent event) |
void |
exitMode()
Makes this map mode inactive.
|
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.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
private static volatile ImageryAdjustAction.ImageryOffsetDialog offsetDialog
private static java.awt.Cursor cursor
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(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