Class SimEditingModalGraphMouse.ModeKeyAdapter

java.lang.Object
java.awt.event.KeyAdapter
net.simplace.client.sim.graphpanel.event.SimEditingModalGraphMouse.ModeKeyAdapter
All Implemented Interfaces:
KeyListener, EventListener
Enclosing class:
SimEditingModalGraphMouse

public static class SimEditingModalGraphMouse.ModeKeyAdapter extends KeyAdapter
Switches the mode by key (default t, p, e, a) if the mode is visible.
Author:
XPMUser
  • Field Details

    • graphMouse

      protected edu.uci.ics.jung.visualization.control.ModalGraphMouse graphMouse
      The graph mouse whose mode is switched (must be a SimEditingModalGraphMouse).
  • Constructor Details

    • ModeKeyAdapter

      public ModeKeyAdapter(edu.uci.ics.jung.visualization.control.ModalGraphMouse graphMouse)
      Parameters:
      graphMouse - the graph mouse
    • ModeKeyAdapter

      public ModeKeyAdapter(char t, char p, char e, char a, SimEditingModalGraphMouse graphMouse)
      Parameters:
      t - key for transforming mode
      p - key for picking mode
      e - key for editing mode
      a - key for annotating mode
      graphMouse - the graph mouse
  • Method Details