Examples of SetStyleAction


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

            "Linewidth")));

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

    submenu.add(editor.bind(mxResources.get("straight"),
        new SetStyleAction("straight"),
        "/com/mxgraph/examples/swing/images/straight.gif"));

    submenu.add(editor.bind(mxResources.get("horizontal"),
        new SetStyleAction(""),
        "/com/mxgraph/examples/swing/images/connect.gif"));
    submenu.add(editor.bind(mxResources.get("vertical"),
        new SetStyleAction("vertical"),
        "/com/mxgraph/examples/swing/images/vertical.gif"));

    submenu.addSeparator();

    submenu.add(editor.bind(mxResources.get("entityRelation"),
        new SetStyleAction("edgeStyle=mxEdgeStyle.EntityRelation"),
        "/com/mxgraph/examples/swing/images/entity.gif"));
    submenu.add(editor.bind(mxResources.get("arrow"), new SetStyleAction(
        "arrow"), "/com/mxgraph/examples/swing/images/arrow.gif"));

    submenu.addSeparator();

    submenu.add(editor.bind(mxResources.get("plain"), new ToggleAction(
View Full Code Here

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

    submenu.add(editor.bind(mxResources.get("linewidth"), new PromptValueAction(mxConstants.STYLE_STROKEWIDTH, "Linewidth")));

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

    submenu.add(editor.bind(mxResources.get("straight"), new SetStyleAction("straight"),
        "/com/mxgraph/examples/swing/images/straight.gif"));

    submenu.add(editor.bind(mxResources.get("horizontal"), new SetStyleAction(""), "/com/mxgraph/examples/swing/images/connect.gif"));
    submenu.add(editor.bind(mxResources.get("vertical"), new SetStyleAction("vertical"),
        "/com/mxgraph/examples/swing/images/vertical.gif"));

    submenu.addSeparator();

    submenu.add(editor.bind(mxResources.get("entityRelation"), new SetStyleAction("edgeStyle=mxEdgeStyle.EntityRelation"),
        "/com/mxgraph/examples/swing/images/entity.gif"));
    submenu.add(editor.bind(mxResources.get("arrow"), new SetStyleAction("arrow"), "/com/mxgraph/examples/swing/images/arrow.gif"));

    submenu.addSeparator();

    submenu.add(editor.bind(mxResources.get("plain"), new ToggleAction(mxConstants.STYLE_NOEDGESTYLE)));
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.