Package org.apache.tuscany.sca.diagram.artifacts

Examples of org.apache.tuscany.sca.diagram.artifacts.Layer


        return doc;
    }

    private void addLayer() {

        Layer outerLayer = new Layer();
        Element layerElt = outerLayer.addElement(doc, svgNS, 0, 0, getDiagramHeight(), getDiagramWidth());
        svgRoot.appendChild(layerElt);
    }
View Full Code Here


    private void addInclusions() {

        if (!comp.getIncludedComposites().isEmpty()) {

            Layer inclusionLayer = new Layer();
            int constant = 10;
            int x0 = comp.getX() + constant;
            int y0 = comp.getY() + comp.getHeight() - (80 + constant);
            int height = 80;
            int width = comp.getWidth() - constant * 2;

            Element layerElt = inclusionLayer.addElement(doc, svgNS, x0, y0, height, width);

            Element text = Text.addTextElement(doc, svgNS, x0 + constant, y0 + constant * 2, "Included Composites: ");

            svgRoot.appendChild(layerElt);
            svgRoot.appendChild(text);
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.diagram.artifacts.Layer

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.