public class AddNoteAction extends MapMode implements KeyPressReleaseListener
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter| Modifier and Type | Field and Description |
|---|---|
private NoteData |
noteData |
sc| Constructor and Description |
|---|
AddNoteAction(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()
Returns a short translated help message describing how this map mode can be used, to be displayed in status line.
|
void |
mouseClicked(java.awt.event.MouseEvent e) |
actionPerformed, isEditableDataLayer, layerIsSupported, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, preferenceChanged, readPreferences, requestFocusInMapView, updateKeyModifiers, updateKeyModifiers, updateKeyModifiers, updateKeyModifiersEx, updateStatusLinebuildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setTooltip, updateEnabledState, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFuturepublic AddNoteAction(NoteData data)
data - Note data container. Must not be nullpublic java.lang.String getModeHelpText()
MapModegetModeHelpText in class MapModepublic void enterMode()
MapModepublic void exitMode()
MapModepublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class MapModepublic void doKeyPressed(java.awt.event.KeyEvent e)
KeyPressReleaseListenerdoKeyPressed in interface KeyPressReleaseListenere - key eventpublic void doKeyReleased(java.awt.event.KeyEvent e)
KeyPressReleaseListenerdoKeyReleased in interface KeyPressReleaseListenere - key event