Examples of GraphLayoutMemento


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

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

    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

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

        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
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.