Package org.jitterbit.ui.graph.model

Examples of org.jitterbit.ui.graph.model.GraphModel


     */
    public void setModel(GraphModel data, GraphLayout2D layout) {
        if (data == null) {
            throw new NullPointerException("data");
        }
        GraphModel oldModel = this.dataModel;
        if (oldModel != null) {
            clearCanvas();
            oldModel.removeModelListener(modelListener);
        }
        GraphLayout2D oldLayout = this.layout;
        if (oldLayout != null) {
            oldLayout.removeGraphLayoutListener(modelListener);
            oldLayout.removeNodeExpansionListener(modelListener);
View Full Code Here


        // a
    }

    private int getLevelOfNode(Object node) {
        int level = 0;
        GraphModel graph = controller.getGraph().getModel();
        while ((node = graph.getParentOf(node)) != null) {
            ++level;
        }
        return level;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.graph.model.GraphModel

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.