Package org.woped.pnml

Examples of org.woped.pnml.GraphicsSimpleType


                // Only if also the remaining information is
                // available,
                // try to import the width of the tree view and the height of the overview panel
                  if (currentNet.getToolspecificArray(j).isSetTreeWidth()){
                    GraphicsSimpleType bounds = currentNet.getToolspecificArray(j).getBounds();
                    DimensionType dimension = bounds.getDimension();
                    int x =(int) (dimension.getX()).doubleValue();
                    x = x - currentNet.getToolspecificArray(j).getTreeWidth();
                    layout.setTreeViewWidthRight(x);
                  } else if (currentNet.getToolspecificArray(j).isSetTreeWidthRight()){
                    layout.setTreeViewWidthRight(currentNet.getToolspecificArray(j).getTreeWidthRight());
View Full Code Here


           
            // scale
            iNetToolSpec.setScale((int)(editor.getGraph().getScale() * 100));
           
            // graphics
            GraphicsSimpleType iGraphicsNet = iNetToolSpec.addNewBounds();
            EditorLayoutInfo layoutInfo = editor.getEditorPanel().getSavedLayoutInfo();
            if (layoutInfo.getSavedSize() != null)
            {
                DimensionType dim = iGraphicsNet.addNewDimension();
                dim.setX(new BigDecimal(layoutInfo.getSavedSize().getWidth()));
                dim.setY(new BigDecimal(layoutInfo.getSavedSize().getHeight()));
            }
            if (layoutInfo.getSavedLocation() != null)
            {
              PositionType location = iGraphicsNet.addNewPosition();
                location.setX(new BigDecimal(layoutInfo.getSavedLocation().getX()));
                location.setY(new BigDecimal(layoutInfo.getSavedLocation().getY()));
            }
            // Store the width of the tree view and the height of the overview
            if(layoutInfo.getTreeViewWidthRight()!=0){
View Full Code Here

                  NetToolspecificType subPToolSpec = newNet.addNewToolspecific();
                 
                  subPToolSpec.setTool("WoPeD");
                  subPToolSpec.setVersion("1.0");
                  // graphics
                  GraphicsSimpleType iGraphicsNet = subPToolSpec.addNewBounds();
                  if (subProcessLayout.getSavedSize() != null)
                  {
                    DimensionType dim = iGraphicsNet.addNewDimension();
                    dim.setX(new BigDecimal(subProcessLayout.getSavedSize().getWidth()));
                    dim.setY(new BigDecimal(subProcessLayout.getSavedSize().getHeight()));
                  }
                  if (subProcessLayout.getSavedLocation() != null)
                  {
                    PositionType location = iGraphicsNet.addNewPosition();
                    location.setX(new BigDecimal(subProcessLayout.getSavedLocation().getX()));
                    location.setY(new BigDecimal(subProcessLayout.getSavedLocation().getY()));
                  }
                  // Store the width of the tree view
                  subPToolSpec.setTreeWidthRight(subProcessLayout.getTreeViewWidthRight());
View Full Code Here

        // attr. id
        iTrigger.setId(trigger.getId());
        // attr. type
        iTrigger.setType(trigger.getTriggertype());
        // graphics
        GraphicsSimpleType iGraphics = iTrigger.addNewGraphics();
        DimensionType dim = iGraphics.addNewDimension();
        dim.setX(BigDecimal.valueOf(trigger.getWidth()));
        dim.setY(BigDecimal.valueOf(trigger.getHeight()));
        PositionType pos = iGraphics.addNewPosition();
        pos.setX(BigDecimal.valueOf(trigger.getX()));
        pos.setY(BigDecimal.valueOf(trigger.getY()));
        return iTrigger;
    }
View Full Code Here

        // set Role & orgUnit
        iTransResource.setOrganizationalUnitName(transResource.getTransOrgUnitName());
        iTransResource.setRoleName(transResource.getTransRoleName());

        // graphics
        GraphicsSimpleType iGraphics = iTransResource.addNewGraphics();
        DimensionType dim = iGraphics.addNewDimension();
        dim.setX(BigDecimal.valueOf(transResource.getWidth()));
        dim.setY(BigDecimal.valueOf(transResource.getHeight()));
        PositionType pos = iGraphics.addNewPosition();
        pos.setX(BigDecimal.valueOf(transResource.getX()));
        pos.setY(BigDecimal.valueOf(transResource.getY()));
        return iTransResource;
    }
View Full Code Here

TOP

Related Classes of org.woped.pnml.GraphicsSimpleType

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.