Examples of forceMove()


Examples of edu.uci.ics.jung.visualization.AbstractLayout.forceMove()

            AbstractLayout l2 = getLayout(key2);
            Vertex v = null;
            for (Object o: _myGraph.getVertices()) {
                if (o instanceof Vertex) {
                    v = (Vertex)o;
                    l2.forceMove(v, l1.getX(v), l1.getY(v));
                    if (v.getUserDatum(userdatumkey+key1) != null) {
                        v.setUserDatum(userdatumkey+key2, v.getUserDatum(userdatumkey+key1), UserData.REMOVE);
                    }
                }
            }
View Full Code Here

Examples of edu.uci.ics.jung.visualization.AbstractLayout.forceMove()

     * @param key The view key name
     */
    public void moveVertex(Vertex v, Coordinates coords, String key) {
        AbstractLayout l = getLayout(key);
        if (l != null && v != null) {
            l.forceMove(v, coords.getX(), coords.getY());
        }
    }
   
    public void removeGraphListener(GraphListener pl) {
        synchronized (_listeners) {
View Full Code Here

Examples of edu.uci.ics.jung.visualization.Layout.forceMove()

               
                for(Iterator iterator=ps.getPickedVertices().iterator(); iterator.hasNext(); ) {
                    Vertex v = (Vertex)iterator.next();
                    Point2D vp = layout.getLocation(v);
                    if (!layout.isLocked(v)) {
                        layout.forceMove(v, vp.getX()+dx, vp.getY()+dy);
                    }
                }
                down = p;

            } else {
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.