Package com.mxgraph.examples.swing.editor.EditorActions

Examples of com.mxgraph.examples.swing.editor.EditorActions.ScaleAction


    menu.addSeparator();

    submenu = (JMenu) menu.add(new JMenu(mxResources.get("zoom")));

    submenu.add(editor.bind("400%", new ScaleAction(4)));
    submenu.add(editor.bind("200%", new ScaleAction(2)));
    submenu.add(editor.bind("150%", new ScaleAction(1.5)));
    submenu.add(editor.bind("100%", new ScaleAction(1)));
    submenu.add(editor.bind("75%", new ScaleAction(0.75)));
    submenu.add(editor.bind("50%", new ScaleAction(0.5)));

    submenu.addSeparator();

    submenu.add(editor.bind(mxResources.get("custom"), new ScaleAction(0)));

    menu.addSeparator();

    menu.add(editor.bind(mxResources.get("zoomIn"), mxGraphActions
        .getZoomInAction()));
View Full Code Here


    menu.addSeparator();

    submenu = (JMenu) menu.add(new JMenu(mxResources.get("zoom")));

    submenu.add(editor.bind("400%", new ScaleAction(4)));
    submenu.add(editor.bind("200%", new ScaleAction(2)));
    submenu.add(editor.bind("150%", new ScaleAction(1.5)));
    submenu.add(editor.bind("100%", new ScaleAction(1)));
    submenu.add(editor.bind("75%", new ScaleAction(0.75)));
    submenu.add(editor.bind("50%", new ScaleAction(0.5)));

    submenu.addSeparator();

    submenu.add(editor.bind(mxResources.get("custom"), new ScaleAction(0)));

    menu.addSeparator();

    menu.add(editor.bind(mxResources.get("zoomIn"), mxGraphActions
        .getZoomInAction()));
View Full Code Here

    menu.addSeparator();

    submenu = (JMenu) menu.add(new JMenu(mxResources.get("zoom")));

    submenu.add(editor.bind("400%", new ScaleAction(4)));
    submenu.add(editor.bind("200%", new ScaleAction(2)));
    submenu.add(editor.bind("150%", new ScaleAction(1.5)));
    submenu.add(editor.bind("100%", new ScaleAction(1)));
    submenu.add(editor.bind("75%", new ScaleAction(0.75)));
    submenu.add(editor.bind("50%", new ScaleAction(0.5)));

    submenu.addSeparator();

    submenu.add(editor.bind(mxResources.get("custom"), new ScaleAction(0)));

    menu.addSeparator();

    menu.add(editor.bind(mxResources.get("zoomIn"), mxGraphActions.getZoomInAction()));
    menu.add(editor.bind(mxResources.get("zoomOut"), mxGraphActions.getZoomOutAction()));
View Full Code Here

TOP

Related Classes of com.mxgraph.examples.swing.editor.EditorActions.ScaleAction

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.