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