public class AddNoteAction extends MapMode implements KeyPressReleaseListener
JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
Modifier and Type | Field and Description |
---|---|
private NoteData |
noteData |
sc
Constructor and Description |
---|
AddNoteAction(MapFrame mapFrame,
NoteData data)
Construct a new map mode.
|
Modifier and Type | Method and Description |
---|---|
void |
doKeyPressed(java.awt.event.KeyEvent e)
This is called when key press event is actually pressed
(no fake events while holding key)
|
void |
doKeyReleased(java.awt.event.KeyEvent e)
This is called when key press event is actually released
(no fake events while holding key)
|
void |
enterMode()
Makes this map mode active.
|
void |
exitMode()
Makes this map mode inactive.
|
java.lang.String |
getModeHelpText() |
void |
mouseClicked(java.awt.event.MouseEvent e) |
actionPerformed, layerIsSupported, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, preferenceChanged, readPreferences, requestFocusInMapView, updateKeyModifiers, updateKeyModifiers, updateKeyModifiers, updateStatusLine
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledState, waitFuture
public AddNoteAction(MapFrame mapFrame, NoteData data)
mapFrame
- Map frame to pass to the superconstructordata
- Note data container. Must not be nullpublic java.lang.String getModeHelpText()
getModeHelpText
in class MapMode
public void enterMode()
MapMode
public void exitMode()
MapMode
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class MapMode
public void doKeyPressed(java.awt.event.KeyEvent e)
KeyPressReleaseListener
doKeyPressed
in interface KeyPressReleaseListener
e
- key eventpublic void doKeyReleased(java.awt.event.KeyEvent e)
KeyPressReleaseListener
doKeyReleased
in interface KeyPressReleaseListener
e
- key event