Package org.jitterbit.ui.widget.scroll

Examples of org.jitterbit.ui.widget.scroll.ScrollPosition


    }

    @Override
    public ScrollPosition restoreScrollPosition() {
        try {
            ScrollPosition pos = scrollPositionFile.deserialize(ScrollPosition.class);
            if (pos != null) {
                return pos;
            }
        } catch (Exception e) {
            ErrorLog.internal(getClass(), "Failed to restore the graph's initial scroll position.", e);
View Full Code Here


        this.page = page;
    }

    @Override
    public void dispose(WindowElement e) {
        ScrollPosition pos = page.getGraph().getScrollPosition();
        page.getLayoutStore().saveScrollPosition(pos);
    }
View Full Code Here

            log("Operation graph layout restored.");
        }
    }

    private void restoreScrollLocation(final OperationGraph2D graph) {
        final ScrollPosition position = layoutStore.restoreScrollPosition();
        EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                graph.restoreScrollLocation(position);
View Full Code Here

    public void enableDragSelector(GraphController2D controller) {
      new GraphMouseDragSelector(canvas, controller, layout);
    }
   
    public ScrollPosition getScrollPosition() {
        return new ScrollPosition(scroll);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.scroll.ScrollPosition

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.