]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/geometry/PumpGeometryProvider.java
White space clean-up
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / geometry / PumpGeometryProvider.java
index 47b2d2d1b33620bd8fe60ef4867f114bb1db4724..a34e34689361884f3af8be0a929711410a476ca7 100644 (file)
@@ -69,31 +69,31 @@ public class PumpGeometryProvider extends BuiltinGeometryProvider  implements Fi
        
        @Override
        public int numberOfNozzles() {
-           return 2;
+               return 2;
        }
        
        @Override
        public void updateNozzlePosition(int index, Nozzle nozzle) {
-           Double fl = nozzle.getFlowLength();
-           if (fl == null)
-               fl = 0.1;
-           if (index == 0) {
-               nozzle.setPosition(new Vector3d(-length*0.5- fl,width*0.6,0.0));
-               nozzle.setOrientation(MathTools.getQuat(new AxisAngle4d(0,1,0,Math.PI)));
-           } else if (index == 1) {
-               nozzle.setPosition(new Vector3d(-length*0.4,width*1.1+ fl,0.0));
-            nozzle.setOrientation(MathTools.getQuat(new AxisAngle4d(0,0,1,Math.PI*0.5)));
-           }
-           
+               Double fl = nozzle.getFlowLength();
+               if (fl == null)
+                       fl = 0.1;
+               if (index == 0) {
+                       nozzle.setPosition(new Vector3d(-length*0.5- fl,width*0.6,0.0));
+                       nozzle.setOrientation(MathTools.getQuat(new AxisAngle4d(0,1,0,Math.PI)));
+               } else if (index == 1) {
+                       nozzle.setPosition(new Vector3d(-length*0.4,width*1.1+ fl,0.0));
+                       nozzle.setOrientation(MathTools.getQuat(new AxisAngle4d(0,0,1,Math.PI*0.5)));
+               }
+               
        }
        
        @Override
        public String getNozzleName(int index) {
-           switch (index) {
-           case 0 : return "Input";
-           case 1: return "Output";
-           default: return null;
-           }
+               switch (index) {
+               case 0 : return "Input";
+               case 1: return "Output";
+               default: return null;
+               }
        }
 
 }