Package org.andrewberman.ui.tools

Examples of org.andrewberman.ui.tools.Tool.respondToOtherEvents()


    switch (e.getID())
    {
      case (MouseEvent.MOUSE_MOVED):
      case (MouseEvent.MOUSE_DRAGGED):
        PhyloTree tree = (PhyloTree) PhyloWidget.trees.getTree();
        if (containsPoint && t.respondToOtherEvents())
        {
          UIUtils.setCursor(this, p, Cursor.HAND_CURSOR);
          tree.setHoveredNode(getCurRange().node);
        } else
        {
View Full Code Here


          UIUtils.releaseCursor(this, p);
          tree.setHoveredNode(null);
        }
        break;
      case (MouseEvent.MOUSE_PRESSED):
        if (containsPoint && t.respondToOtherEvents())
        {
          openContextMenu();
          isGlowing = false;
        }
        break;
View Full Code Here

          openContextMenu();
          isGlowing = false;
        }
        break;
    }
    if (!t.respondToOtherEvents())
    {
      PhyloTree tree = (PhyloTree) PhyloWidget.trees.getTree();
      tree.setHoveredNode(null);
      setCurRange(null);
    }
View Full Code Here

  public void setCurRange(NodeRange r)
  {
    if (r != null && r != curNodeRange)
    {
      Tool t = EventManager.instance.getToolManager().getCurrentTool();
      if (t.respondToOtherEvents())
      {
        RootedTree tree = r.render.getTree();
        PhyloWidget.ui.updateNodeInfo(tree, r.node);
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.