diff options
author | nirmal070125 <nirmal070125@13f79535-47bb-0310-9956-ffa450edef68> | 2011-06-13 07:37:39 +0000 |
---|---|---|
committer | nirmal070125 <nirmal070125@13f79535-47bb-0310-9956-ffa450edef68> | 2011-06-13 07:37:39 +0000 |
commit | b8d829dd982e8c4fa170f8bb8b095e8a1be8115e (patch) | |
tree | 98417bfacd7e8acf00c417a6c2efcf36a7916de9 /collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/artifacts/Composite.java | |
parent | 4793edeb2e0b18059c965759c78f06c6b77faf67 (diff) |
Another version of layout algorithm and diagram creation
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1135039 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/artifacts/Composite.java')
-rw-r--r-- | collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/artifacts/Composite.java | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/artifacts/Composite.java b/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/artifacts/Composite.java index 48491efe69..8b04759bee 100644 --- a/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/artifacts/Composite.java +++ b/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/artifacts/Composite.java @@ -24,37 +24,10 @@ import org.w3c.dom.Element; /** * Structure of a "Composite" element in SCA, as a SVG element - * @author nirmal * */ public class Composite extends Artifact{ -// -// private Document document; -// private String svgNs; -// -// public Composite(Document doc, String uri){ -// document = doc; -// svgNs = uri; -// } -// - - -// public static Element addCompositeElement(Document document, String svgNs, -// int x, int y, int width, int height) { -// // Create the rectangle. -// Element rectangle = document.createElementNS(svgNs, "rect"); -// rectangle.setAttributeNS(null, "x", x+""); -// rectangle.setAttributeNS(null, "y", y+""); -// rectangle.setAttributeNS(null, "rx", ROUND_CORNER); -// rectangle.setAttributeNS(null, "ry", ROUND_CORNER); -// rectangle.setAttributeNS(null, "width", width+""); -// rectangle.setAttributeNS(null, "height", height+""); -// rectangle.setAttributeNS(null, "fill", "#E5E5E5"); -// rectangle.setAttributeNS(null, "stroke", "#919191"); -// rectangle.setAttributeNS(null, "alignment-baseline", "central"); -// -// return rectangle; -// } + public Element addElement(Document document, String svgNs, int x, int y, int height, int width) { |