Package ch.rakudave.jnetmap.view.properties

Examples of ch.rakudave.jnetmap.view.properties.InterfaceProperties


        if (vertex != null && startVertex != null) {
          Graph<Device, Connection> graph = vv.getGraphLayout().getGraph();
          Connection newEdge = edgeFactory.create();
          graph.addEdge(newEdge, startVertex, vertex,  edgeIsDirected);
          if (startVertex.equals(vertex)) {
            new InterfaceProperties(owner, vertex.getInterfaceFor(newEdge));
          } else {
            new ConnectionProperties(owner, newEdge);
          }
          vv.repaint();
        }
View Full Code Here


        popup.add(new AbstractAction(Lang.get("connection.properties"), Icons.get("properties")) {
          @Override
          public void actionPerformed(ActionEvent e) {
            Pair<Device> p = Controller.getCurrentMap().getEndpoints(edge);
            if (p.getFirst().equals(p.getSecond())) {
              new InterfaceProperties(owner, p.getFirst().getInterfaceFor(edge));
            } else {
              new ConnectionProperties(owner, edge);
            }
          }
        });
View Full Code Here

TOP

Related Classes of ch.rakudave.jnetmap.view.properties.InterfaceProperties

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.