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

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


        }
    }

    private void addComponent(Entity ent) {

        ComponentArtifact comp = new ComponentArtifact();
        //System.err.println(ent.getX());
        Element com = comp.addElement(doc, svgNS, ent.getX(), ent.getY(), ent.getHeight(), ent.getWidth());

        Element component = com;
        if (baseURL != null) {
            String url = baseURL + "/components/" + ent.getName();
            component = createLink(com, url);
        }

        Element text =
            Text.addTextElement(doc,
                                svgNS,
                                ent.getX(),
                                ent.getY() + (ent.getHeight() + Constant.COMPONENT_TEXT_SPACING),
                                ent.getName());

        svgRoot.appendChild(component);
        svgRoot.appendChild(text);

        comp.setName(ent.getName());

        if (ent.getImplementation() == null) {
            return;
        }
        // Add the implementation
View Full Code Here

TOP

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

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.