Package org.jitterbit.ui.graph.layout

Examples of org.jitterbit.ui.graph.layout.GraphLayoutMemento



    private abstract class LayoutChange {

        public LayoutChange() {
            GraphLayoutMemento oldState = graph.getLayout().getMemento();
            doChange(graph.getLayout());
            graph.recalculateSize();
            sendEdit(oldState);
        }
View Full Code Here


    public void removeListener(GraphControllerListener lst) {
        listeners.remove(lst);
    }
   
    private void createAndSendEdit() {
        GraphLayoutMemento newState = layout.getMemento();
        UndoableEdit edit = new EditImpl(previous, newState);
        for (GraphControllerListener lst : listeners) {
            lst.layoutWasChanged(edit);
        }
        previous = newState;
View Full Code Here

        if (oldState == null) {
            // This will happen if the user initiates a resize-action (by clicking on a hot corner),
            // but releases the mouse without doing any dragging
            return;
        }
        GraphLayoutMemento newState = graph.getLayout().getMemento();
        UndoableEdit edit = new GraphLayoutEdit(oldState, newState);
        for (GraphControllerListener lst : listeners) {
            lst.layoutWasChanged(edit);
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.graph.layout.GraphLayoutMemento

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.