Examples of GroupModel


Examples of org.woped.core.model.petrinet.GroupModel

     */
    public void ungroup(Object[] cells)
    {
        // Shortcut to the model
        GraphModel graphModel = getModel();
        GroupModel aGroup;
        // If any Cells
        if (cells != null && cells.length > 0)
        {
            // List that Holds the Groups
            ArrayList<Object> groups = new ArrayList<Object>();
            // List that Holds the Children
            ArrayList<Object> children = new ArrayList<Object>();
            // Loop Cells
            for (int i = 0; i < cells.length; i++)
            {
                // If Cell is a Group
                if (isGroup(cells[i]))
                {
                    aGroup = (GroupModel) cells[i];
                    if (aGroup.isUngroupable())
                    {
                        // Add to List of Groups
                        groups.add(cells[i]);
                        // Loop Children of Cell
                        for (int j = 0; j < graphModel.getChildCount(cells[i]); j++) {
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.