All Implemented Interfaces:
ActionListener, MouseListener, MouseMotionListener, Serializable, Cloneable, EventListener, Action, PreferenceChangedListener, Destroyable
Direct Known Subclasses:
AddNoteAction, DeleteAction, DrawAction, ExtrudeAction, ImageryAdjustAction, ImproveWayAccuracyAction, ParallelWayAction, PlayHeadDragMode, SelectAction, SelectLassoAction, SplitMode, ZoomAction

A class implementing MapMode is able to be selected as an mode for map editing. As example scrolling the map is a MapMode, connecting Nodes to new Ways is another. MapModes should register/deregister all necessary listeners on the map's view control.
See Also:
  • Field Details

    • cursor

      protected final Cursor cursor
    • ctrl

      protected boolean ctrl
    • alt

      protected boolean alt
    • shift

      protected boolean shift
    • meta

      protected boolean meta
      true if the meta key was pressed (the "Windows" key or the Mac "Command" key)
      Since:
      18456
    • platformMenuShortcutKeyMask

      protected boolean platformMenuShortcutKeyMask
      true if the platform specific menu key was pressed ("ctrl" on Linux/Windows, "cmd" on Mac)
      Since:
      18456
      See Also:
  • Constructor Details

    • MapMode

      protected MapMode(String name, String iconName, String tooltip, Shortcut shortcut, Cursor cursor)
      Constructor for mapmodes without a menu
      Parameters:
      name - the action's text
      iconName - icon filename in mapmode directory
      tooltip - a longer description of the action that will be displayed in the tooltip.
      shortcut - a ready-created shortcut object or null if you don't want a shortcut.
      cursor - cursor displayed when map mode is active
      Since:
      11713
    • MapMode

      protected MapMode(String name, String iconName, String tooltip, Cursor cursor)
      Constructor for mapmodes with a menu (no shortcut will be registered)
      Parameters:
      name - the action's text
      iconName - icon filename in mapmode directory
      tooltip - a longer description of the action that will be displayed in the tooltip.
      cursor - cursor displayed when map mode is active
      Since:
      11713
  • Method Details