Interface JPedalActionHandler


public interface JPedalActionHandler
Replaces the Viewer's own action for a command.

Put each handler in a Map<Integer, Object> keyed by the command ID (a Commands constant) and pass the Map to viewer.addExternalHandler(map, Options.JPedalActionHandler). When that command runs, the handler is called instead of the Viewer's action and the command returns null.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    actionPerformed(org.jpedal.examples.viewer.gui.SwingGUI currentGUI, Commands commands)
    Called in place of the Viewer's action for the command this handler is registered for.
  • Method Details

    • actionPerformed

      void actionPerformed(org.jpedal.examples.viewer.gui.SwingGUI currentGUI, Commands commands)
      Called in place of the Viewer's action for the command this handler is registered for.
      Parameters:
      currentGUI - the Viewer's GUI
      commands - the Viewer's Commands object, which can be used to run other commands