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/layout/Entity.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/layout/Entity.java')
-rwxr-xr-x | collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/layout/Entity.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/layout/Entity.java b/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/layout/Entity.java index a9716146bb..0ae87d8816 100755 --- a/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/layout/Entity.java +++ b/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/main/java/org/apache/tuscany/sca/impl/layout/Entity.java @@ -12,14 +12,13 @@ import org.apache.tuscany.sca.impl.artifacts.Service; /** * Represents an unit (a component including its references, services, properties * and adjacent units) in the diagram. - * @author nirmal * */ public class Entity { private String componentName; private int X, Y, level=-1, lane=-1, refHeight, serHeight, propLength; - + private final int height= Component.DEFAULT_HEIGHT, width= Component.DEFAULT_WIDTH; public static final int defaultNoOfSers= Component.DEFAULT_HEIGHT / (Service.MAXIMUM_HEIGHT+Service.SPACING); public static final int defaultNoOfRefs= Component.DEFAULT_HEIGHT / (Reference.MAXIMUM_HEIGHT+Reference.SPACING); //same value for defaultNoOfSers public static final int defaultNoOfProps= Component.DEFAULT_WIDTH / (Property.MAXIMUM_HEIGHT+Property.SPACING); @@ -178,6 +177,7 @@ public class Entity { public void setServices(ArrayList<String> services) { this.services = services; } + public ArrayList<String> getServices() { return services; } @@ -217,6 +217,10 @@ public class Entity { public ArrayList<String> getRefProperties() { return refProperties; } + + public ArrayList<String> getReferences() { + return references; + } public void setRefProperties(ArrayList<String> refProperties) { this.refProperties = refProperties; @@ -258,4 +262,12 @@ public class Entity { return connectedEntities; } + public int getHeight() { + return height; + } + + public int getWidth() { + return width; + } + } |