Package org.joshy.sketch.controls

Examples of org.joshy.sketch.controls.ContextMenu


            context.redraw();
        }
    }

    private void showContextMenu(MouseEvent event) {
        contextMenu = new ContextMenu();
        if(!context.getSelection().isEmpty()) {
            contextMenu.addActions(
                new NodeActions.RaiseTopSelectedNodeAction(context),
                new NodeActions.RaiseSelectedNodeAction(context),
                new NodeActions.LowerSelectedNodeAction(context),
View Full Code Here


    private void showContextMenu(MouseEvent event) {
        if(listView.getSelectedIndex()<0) return;
        if(listView.getModel().size() <= listView.getSelectedIndex()) return;
       
        final SNode shape = listView.getModel().get(listView.getSelectedIndex());
        contextMenu = new ContextMenu();
        contextMenu.addActions(
            new SAction(){
                @Override public String getDisplayName() { return "Delete"; }
                @Override
                public void execute() {
View Full Code Here

TOP

Related Classes of org.joshy.sketch.controls.ContextMenu

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.