Package edu.uci.ics.jung.algorithms.layout

Examples of edu.uci.ics.jung.algorithms.layout.GraphElementAccessor


  {
    if ( (INFORM_EDGE_DOUBLECLICK_LISTENER == type) &&
         ( event.getClickCount() == 2)
        )
    {
      GraphElementAccessor pickSupport = visualizationViewer.getPickSupport();
      Layout  layout = visualizationViewer.getGraphLayout();
      if(pickSupport != null)
      {
        Object vertex = pickSupport.getVertex(layout, event.getX(), event.getY());
        Object edge = pickSupport.getEdge(layout, event.getX(), event.getY());
       
        if ( vertex  == null)
          if edge != null)
          {
            actionListener.actionPerformed( new ActionEvent(edge, ActionEvent.ACTION_PERFORMED, "edge double click"));
View Full Code Here

TOP

Related Classes of edu.uci.ics.jung.algorithms.layout.GraphElementAccessor

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.