Package com.neptuny.xgrapher.gen.model

Examples of com.neptuny.xgrapher.gen.model.Edge


              .getY());
          if (jedge != null) {
            // an edge has been selected
            System.out.println(jedge.toString());
            // convert jung edge into XGrapher edge
            Edge XGrapherEdge = mapper.toXGrapher(jedge);
            // fire event
            app.commBus().fireEvent(
                XGrapherEventType.EDGE_SELECTION, null,
                XGrapherEdge);
View Full Code Here


    metrat=nodo2.getMetricAttribute();
    metrat.add(metr);
    //aggiungo il 2� nodo
    nodi.add(nodo2);
    //creo l'arco
    Edge edg1=factory.createEdge();
    edg1.setId("31457-31616");
    edg1.setName("CPU_UTIL-CPU_UTIL");
    edg1.setDeepness(0);
    edg1.setNodeFromId("31457");
    edg1.setNodeToId("31616");
    //creo lista metricattribute per arco
    metrat=edg1.getMetricAttribute();
    metr=factory.createMetricAttribute();
    metr.setName("COR");
    metr.setValue(0.8);
    metrat.add(metr);
    //aggiungo arco
View Full Code Here

            metrat.add(metr);
            //aggiungo il 2 nodo
            nodi.add(nodo3);
           
            //creo l'arco
            Edge edg1=factory.createEdge();
            edg1.setId("31457-31616");
            edg1.setName("CPU_UTIL-CPU_UTIL");
            edg1.setDeepness(0);
            edg1.setNodeFromId("31457");
            edg1.setNodeToId("31616");
            //creo lista metricattribute per arco
            metrat=edg1.getMetricAttribute();
            metr=factory.createMetricAttribute();
            metr.setName("SIZE");
            metr.setValue(0.9);
            metrat.add(metr);
            //aggiungo arco
            archi.add(edg1);
           
            Edge edg2=factory.createEdge();
            edg2.setId("31457-31616b");
            edg2.setDeepness(0);
            edg2.setNodeFromId("31457");
            edg2.setNodeToId("31616b");
            //creo lista metricattribute per arco
            metrat=edg2.getMetricAttribute();
            metr=factory.createMetricAttribute();
            metr.setName("SIZE");
            metr.setValue(0.2);
            metrat.add(metr);
            //aggiungo arco
View Full Code Here

TOP

Related Classes of com.neptuny.xgrapher.gen.model.Edge

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.