]> 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 e1faef342b377138a3612a0a8faade7af17a1ecd..2a5b205a3e0da40a16eaf22bd9e4f382eceeaeaf 100644 (file)
@@ -6,11 +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) {
@@ -18,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;
@@ -52,6 +59,14 @@ public class Item {
                this.variable = variable;
        }
        
+       public boolean isModifiable() {
+        return modifiable;
+    }
+    
+    public void setModifiable(boolean modifiable) {
+        this.modifiable = modifiable;
+    }
+       
        public boolean isSizeChange() {
                return sizeChange;
        }
@@ -59,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
@@ -74,4 +96,7 @@ public class Item {
                return uri.hashCode();
        }
 
+       public String getLabel() {
+               return label;
+       }
 }