Package org.woped.pnml

Examples of org.woped.pnml.DimensionType


                // 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


            // 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()));
View Full Code Here

                  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()));
View Full Code Here

        return nodeName;
    }

    private GraphicsNodeType initElementGraphics(GraphicsNodeType iGraphics, AbstractPetriNetElementModel element)
    {
        DimensionType dim = iGraphics.addNewDimension();
        dim.setX(BigDecimal.valueOf(element.getWidth()));
        dim.setY(BigDecimal.valueOf(element.getHeight()));
        PositionType pos = iGraphics.addNewPosition();
        pos.setX(BigDecimal.valueOf(element.getX()));
        pos.setY(BigDecimal.valueOf(element.getY()));

        return iGraphics;
View Full Code Here

        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

        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.DimensionType

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.