]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/utils/Item.java
Add a wall thickness property to pipe runs.
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / utils / Item.java
index 799d072702c830e5077d6c2aab414eff838b66b9..2a5b205a3e0da40a16eaf22bd9e4f382eceeaeaf 100644 (file)
@@ -6,12 +6,14 @@ public class Item {
        
        private String uri;
        private String name;
+       private String label;
        
        private Type type;
        private boolean code = false;
        private boolean variable = false;
        private boolean modifiable = false;
        private boolean sizeChange = false;
+       private boolean rotated = false;
 
        
        public Item(String type, String name) {
@@ -19,7 +21,11 @@ public class Item {
                this.name = name;
        }
        
-       
+       public Item(String type, String name, String label) {
+               this.uri = type;
+               this.name = name;
+               this.label = label;
+       }
        
        public String getUri() {
                return uri;
@@ -68,7 +74,14 @@ public class Item {
        public void setSizeChange(boolean sizeChange) {
                this.sizeChange = sizeChange;
        }
-
+       
+       public boolean isRotated() {
+        return rotated;
+    }
+       
+       public void setRotated(boolean rotated) {
+        this.rotated = rotated;
+    }
 
 
        @Override
@@ -83,4 +96,7 @@ public class Item {
                return uri.hashCode();
        }
 
+       public String getLabel() {
+               return label;
+       }
 }