]> 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 e1faef342b377138a3612a0a8faade7af17a1ecd..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) {
@@ -52,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;
        }
@@ -59,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