示例#1
0
  public void setShortcutManager(ShortcutManager manager) {
    if (shortcuts != null) shortcuts.release();

    if (manager == null) manager = new DefaultShortcutManager();

    manager.init(graph, this);

    shortcuts = manager;
  }
示例#2
0
  public void close(GraphicGraph graph) {
    renderer.close();
    graph.addAttribute("ui.viewClosed", getId());

    removeKeyListener(shortcuts);
    shortcuts.release();
    mouseClicks.release();

    openInAFrame(false);
  }