Package org.jitterbit.integration.client.ui.interchange.entity.operation.graph2d.layout

Examples of org.jitterbit.integration.client.ui.interchange.entity.operation.graph2d.layout.NodeExpansionMemento


        toggleNodeExpansion(Arrays.asList(node));
    }

    @Override
    public void toggleNodeExpansion(List<OperationWrapperNode> nodes) {
        NodeExpansionMemento oldState = graph.getNodeExpansionMemento();
        for (Object node : nodes) {
            if (graph.getLayout().isExpanded(node)) {
                graph.getLayout().collapse(node);
            } else {
                graph.getLayout().expand(node);
            }
        }
        NodeExpansionMemento newState = graph.getNodeExpansionMemento();
        fireLayoutChanged(new NodeExpansionEdit(oldState, newState));
    }
View Full Code Here


        }

        @Override
        public void actionPerformed(ActionEvent e) {
            if (isAtLeastOneNodeExpanded()) {
                NodeExpansionMemento oldState = graph.getNodeExpansionMemento();
                graph.getLayout().collapseAll();
                NodeExpansionMemento newState = graph.getNodeExpansionMemento();
                fireLayoutChanged(new NodeExpansionEdit(oldState, newState));
            }
        }
View Full Code Here

     * Returns a <code>NodeExpansionMemento</code> representing the current node expansion state in
     * this graph.
     *
     */
    public NodeExpansionMemento getNodeExpansionMemento() {
        return new NodeExpansionMemento(this);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.interchange.entity.operation.graph2d.layout.NodeExpansionMemento

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.