Package org.freeplane.plugin.workspace.components

Examples of org.freeplane.plugin.workspace.components.WorkspaceNodeRenderer


    JTree tree = ((JTree) e.getSource());
    TreePath path = tree.getPathForLocation(e.getX(), e.getY());
    if (path == getLastSelectionPath()) {
      return;
    }
    WorkspaceNodeRenderer renderer = (WorkspaceNodeRenderer) tree.getCellRenderer();
    if (path != null && path != getLastSelectionPath()) {
      lastSelection = path;
      renderer.highlightRow(tree.getRowForLocation(e.getX(), e.getY()));
      tree.repaint();
    } else if (getLastSelectionPath() != null) {
      lastSelection = null;
      renderer.highlightRow(-1);
      tree.repaint();
    }
  }
View Full Code Here


    autoscroll(this.tree, dtde.getLocation());   
    TreePath path = tree.getPathForLocation(dtde.getLocation().x, dtde.getLocation().y);
    if(path == lastPathLocation) {
      return;
    }
    WorkspaceNodeRenderer renderer = (WorkspaceNodeRenderer) tree.getCellRenderer();
    if(path != null && path != lastPathLocation) {               
      lastPathLocation = path;     
      renderer.highlightRow(tree.getRowForLocation(dtde.getLocation().x, dtde.getLocation().y));
      tree.repaint();
    }
    else if(lastPathLocation != null) {     
      lastPathLocation = null;
      renderer.highlightRow(-1);
      tree.repaint();
    }
  }
View Full Code Here

TOP

Related Classes of org.freeplane.plugin.workspace.components.WorkspaceNodeRenderer

Copyright © 2018 www.massapicom. 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.