modules/composite-diagram/src/main/java/org/apache/tuscany/sca/diagram/artifacts/ReferenceArtifact.java [35:81]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Element addElement(Document document, String svgNs, int x, int y, int height, int width) {

        this.setHeight(height);
        this.setWidth(width);
        this.setxCoordinate(x);
        this.setyCoordinate(y);

        int halfOfHeight = height / 2;

        Element polygon = document.createElementNS(svgNs, "polygon");
        polygon.setAttributeNS(null, "points", "" + x
            + ","
            + y
            + " "
            + ""
            + (x + 2 * halfOfHeight)
            + ","
            + (y)
            + " "
            + ""
            + (x + 3 * halfOfHeight)
            + ","
            + (y + halfOfHeight)
            + " "
            + ""
            + (x + 2 * halfOfHeight)
            + ","
            + (y + 2 * halfOfHeight)
            + " "
            + ""
            + (x)
            + ","
            + (y + 2 * halfOfHeight)
            + " "
            + ""
            + (x + halfOfHeight)
            + ","
            + (y + halfOfHeight)
            + " ");

        polygon.setAttributeNS(null, "fill", "#BF3EFF");
        polygon.setAttributeNS(null, "stroke", "#68228B");
        polygon.setAttributeNS(null, "class", "reference");


        return polygon;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



modules/composite-diagram/src/main/java/org/apache/tuscany/sca/diagram/artifacts/ServiceArtifact.java [35:79]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Element addElement(Document document, String svgNs, int x, int y, int height, int width) {

        this.setHeight(height);
        this.setWidth(width);
        this.setxCoordinate(x);
        this.setyCoordinate(y);

        int halfOfHeight = height / 2;

        Element polygon = document.createElementNS(svgNs, "polygon");
        polygon.setAttributeNS(null, "points", "" + x
            + ","
            + y
            + " "
            + ""
            + (x + 2 * halfOfHeight)
            + ","
            + (y)
            + " "
            + ""
            + (x + 3 * halfOfHeight)
            + ","
            + (y + halfOfHeight)
            + " "
            + ""
            + (x + 2 * halfOfHeight)
            + ","
            + (y + 2 * halfOfHeight)
            + " "
            + ""
            + (x)
            + ","
            + (y + 2 * halfOfHeight)
            + " "
            + ""
            + (x + halfOfHeight)
            + ","
            + (y + halfOfHeight)
            + " ");

        polygon.setAttributeNS(null, "fill", "#00CD66");
        polygon.setAttributeNS(null, "stroke", "#008B45");
        polygon.setAttributeNS(null, "class", "service");
        return polygon;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



