]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/utils/Item.java
Ask component rotation angle when adding components
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / utils / Item.java
index 61ef6c9a68e7ae1288fb8856436f8a5c62e097dc..1ce6ed20673bfc7eff67ded0f45c8c7f30d13cc0 100644 (file)
@@ -10,7 +10,9 @@ public class Item {
        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) {
@@ -40,8 +42,6 @@ public class Item {
                return code;
        }
 
-
-
        public void setCode(boolean code) {
                this.code = code;
        }
@@ -54,6 +54,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;
        }
@@ -61,7 +69,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