Package org.evolizer.daforjava.commands

Examples of org.evolizer.daforjava.commands.FolderNodeHandleCommand


            if (gnr != null) {
                NodeLabel handle = gnr.getStateLabel();
                if (handle.getBox().contains(x, y)) {
                    AbstractGraphEditCommand command;
                    if (getHierarchyManager().isFolderNode(node)) {
                        command = new FolderNodeHandleCommand(getGraphPanel().getGraphLoader(), getGraphPanel().getEdgeGrouper(), node, true);
                        getGraphPanel().getCommandController().executeCommand(command);
                    } else {
                        command = new FolderNodeHandleCommand(getGraphPanel().getGraphLoader(), getGraphPanel().getEdgeGrouper(), node, false);
                        getGraphPanel().getCommandController().executeCommand(command);
                    }
                }
            }
        }
View Full Code Here


            GroupNodeRealizer gnr = (GroupNodeRealizer) nr;
            GraphEditPopupMenuAction action = null;
            if (gnr.isGroupClosed()) {
                action = new GraphEditPopupMenuAction("Expand", fGraphPanel);
                action.setDescription("Expand selected folder node");
                action.setCommand(new FolderNodeHandleCommand(getGraphLoader(), getHierarchicEdgeGrouper(), node, true));
            } else {
                action = new GraphEditPopupMenuAction("Collapse", fGraphPanel);
                action.setDescription("Collapse selected folder node");
                action.setCommand(new FolderNodeHandleCommand(getGraphLoader(), getHierarchicEdgeGrouper(), node, false));
            }
            folderMenu.add(action);
        }

        return folderMenu;
View Full Code Here

TOP

Related Classes of org.evolizer.daforjava.commands.FolderNodeHandleCommand

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.