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

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


    menu.add(editor.bind(mxResources.get("exit"), new ExitAction()));

    // Creates the edit menu
    menu = add(new JMenu(mxResources.get("edit")));

    menu.add(editor.bind(mxResources.get("undo"), new HistoryAction(true),
        "/com/mxgraph/examples/swing/images/undo.gif"));
    menu.add(editor.bind(mxResources.get("redo"), new HistoryAction(false),
        "/com/mxgraph/examples/swing/images/redo.gif"));

    menu.addSeparator();

    menu.add(editor.bind(mxResources.get("cut"), TransferHandler
View Full Code Here


    add(editor.bind("Delete", mxGraphActions.getDeleteAction(),
        "/com/mxgraph/examples/swing/images/delete.gif"));

    addSeparator();

    add(editor.bind("Undo", new HistoryAction(true),
        "/com/mxgraph/examples/swing/images/undo.gif"));
    add(editor.bind("Redo", new HistoryAction(false),
        "/com/mxgraph/examples/swing/images/redo.gif"));

    addSeparator();

    // Gets the list of available fonts from the local graphics environment
View Full Code Here

    menu.add(editor.bind(mxResources.get("exit"), new ExitAction()));

    // Creates the edit menu
    menu = add(new JMenu(mxResources.get("edit")));

    menu.add(editor.bind(mxResources.get("undo"), new HistoryAction(true),
        "/com/mxgraph/examples/swing/images/undo.gif"));
    menu.add(editor.bind(mxResources.get("redo"), new HistoryAction(false),
        "/com/mxgraph/examples/swing/images/redo.gif"));

    menu.addSeparator();

    menu.add(editor.bind(mxResources.get("cut"), TransferHandler
View Full Code Here

  public EditorPopupMenu(BasicGraphEditor editor)
  {
    boolean selected = !editor.getGraphComponent().getGraph()
        .isSelectionEmpty();

    add(editor.bind(mxResources.get("undo"), new HistoryAction(true),
        "/com/mxgraph/examples/swing/images/undo.gif"));

    addSeparator();

    add(
View Full Code Here

    add(editor.bind("Delete", mxGraphActions.getDeleteAction(),
        "/com/mxgraph/examples/swing/images/delete.gif"));

    addSeparator();

    add(editor.bind("Undo", new HistoryAction(true),
        "/com/mxgraph/examples/swing/images/undo.gif"));
    add(editor.bind("Redo", new HistoryAction(false),
        "/com/mxgraph/examples/swing/images/redo.gif"));

    addSeparator();

    final mxGraphView view = editor.getGraphComponent().getGraph()
View Full Code Here

    menu.add(editor.bind(mxResources.get("exit"), new ExitAction()));

    // Creates the edit menu
    menu = add(new JMenu(mxResources.get("edit")));

    menu.add(editor.bind(mxResources.get("undo"), new HistoryAction(true), "/com/mxgraph/examples/swing/images/undo.gif"));
    menu.add(editor.bind(mxResources.get("redo"), new HistoryAction(false), "/com/mxgraph/examples/swing/images/redo.gif"));

    menu.addSeparator();

    menu.add(editor.bind(mxResources.get("cut"), TransferHandler.getCutAction(), "/com/mxgraph/examples/swing/images/cut.gif"));
    menu.add(editor.bind(mxResources.get("copy"), TransferHandler.getCopyAction(), "/com/mxgraph/examples/swing/images/copy.gif"));
View Full Code Here

TOP

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

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.