Package org.gephi.tools.api

Examples of org.gephi.tools.api.EditWindowController


        //Add listener of table selection to refresh edit window when the selection changes (and if the table is not being refreshed):
        outlineTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

            public void valueChanged(ListSelectionEvent e) {
                if (!refreshingTable) {
                    EditWindowController edc = Lookup.getDefault().lookup(EditWindowController.class);
                    if (edc.isOpen()) {
                        if (outlineTable.getSelectedRow() != -1) {
                            edc.editNodes(getNodesFromSelectedRows());
                        } else {
                            edc.disableEdit();
                        }
                    }
                }
            }
        });
View Full Code Here


    public void setup(Node[] nodes, Node clickedNode) {
        this.nodes = nodes;
    }

    public void execute() {
        EditWindowController edc = Lookup.getDefault().lookup(EditWindowController.class);
        edc.openEditWindow();
        edc.editNodes(nodes);
    }
View Full Code Here

    public void setup(Edge[] edges, Edge clickedEdge) {
        this.edges=edges;
    }

    public void execute() {
        EditWindowController edc = Lookup.getDefault().lookup(EditWindowController.class);
        edc.openEditWindow();
        edc.editEdges(edges);
    }
View Full Code Here

        //Add listener of table selection to refresh edit window when the selection changes (and if the table is not being refreshed):
        table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

            public void valueChanged(ListSelectionEvent e) {
                if (!refreshingTable) {
                    EditWindowController edc = Lookup.getDefault().lookup(EditWindowController.class);
                    if (edc.isOpen()) {
                        if (table.getSelectedRow() != -1) {
                            edc.editEdges(getEdgesFromSelectedRows());
                        } else {
                            edc.disableEdit();
                        }
                    }
                }
            }
        });
View Full Code Here

    public void setup(Node[] nodes, Node clickedNode) {
        this.nodes = nodes;
    }

    public void execute() {
        EditWindowController edc = Lookup.getDefault().lookup(EditWindowController.class);
        edc.openEditWindow();
        edc.editNodes(nodes);
    }
View Full Code Here

    public void setup(Edge[] edges, Edge clickedEdge) {
        this.edges=edges;
    }

    public void execute() {
        EditWindowController edc = Lookup.getDefault().lookup(EditWindowController.class);
        edc.openEditWindow();
        edc.editEdges(edges);
    }
View Full Code Here

TOP

Related Classes of org.gephi.tools.api.EditWindowController

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.