Ejemplo n.º 1
0
 /**
  * Construct a new DeleteAction. Mnemonic is the delete - key.
  *
  * @param mapFrame The frame this action belongs to.
  */
 public DeleteAction(MapFrame mapFrame) {
   super(
       tr("Delete Mode"),
       "delete",
       tr("Delete nodes or ways."),
       Shortcut.registerShortcut(
           "mapmode:delete", tr("Mode: {0}", tr("Delete")), KeyEvent.VK_DELETE, Shortcut.CTRL),
       mapFrame,
       ImageProvider.getCursor("normal", "delete"));
 }
 public ImageryAdjustMapMode(MapFrame mapFrame) {
   super(
       tr("Adjust imagery"),
       "adjustimg",
       tr("Adjust the position of the selected imagery layer"),
       Shortcut.registerShortcut(
           "imageryadjust:adjustmode",
           tr("Mode: {0}", tr("Adjust imagery")),
           KeyEvent.VK_Y,
           Shortcut.ALT_CTRL),
       mapFrame,
       ImageProvider.getCursor("normal", "move"));
   MapFrame.addMapModeChangeListener(this);
 }
Ejemplo n.º 3
0
 private DeleteMode(String cursorName) {
   c = ImageProvider.getCursor("normal", cursorName);
 }
 private static Cursor getCursor() {
   return ImageProvider.getCursor("crosshair", "info-sml");
 }