Merged l10n branch to trunk
[debian/openrocket] / src / net / sf / openrocket / rocketcomponent / NoseCone.java
index c271e2d442b6cd5044a24b298e35c6b082c97e7e..a4de3a9c8aeabcded7bc652c14c99b24539d0120 100644 (file)
@@ -6,17 +6,17 @@ import net.sf.openrocket.startup.Application;
 /**
  * Rocket nose cones of various types.  Implemented as a transition with the
  * fore radius == 0.
- * 
+ *
  * @author Sampo Niskanen <sampo.niskanen@iki.fi>
  */
 
 public class NoseCone extends Transition {
        private static final Translator trans = Application.getTranslator();
-
+       
        
        /********* Constructors **********/
        public NoseCone() {
-               this(Transition.Shape.OGIVE, 6*DEFAULT_RADIUS, DEFAULT_RADIUS);
+               this(Transition.Shape.OGIVE, 6 * DEFAULT_RADIUS, DEFAULT_RADIUS);
        }
        
        public NoseCone(Transition.Shape type, double length, double radius) {
@@ -25,7 +25,7 @@ public class NoseCone extends Transition {
                super.setForeRadiusAutomatic(false);
                super.setForeRadius(0);
                super.setForeShoulderLength(0);
-               super.setForeShoulderRadius(0.9*radius);
+               super.setForeShoulderRadius(0.9 * radius);
                super.setForeShoulderThickness(0);
                super.setForeShoulderCapped(filled);
                super.setThickness(0.002);
@@ -34,9 +34,9 @@ public class NoseCone extends Transition {
                
        }
        
-
+       
        /********** Get/set methods for component parameters **********/
-
+       
        @Override
        public double getForeRadius() {
                return 0;
@@ -46,7 +46,7 @@ public class NoseCone extends Transition {
        public void setForeRadius(double r) {
                // No-op
        }
-
+       
        @Override
        public boolean isForeRadiusAutomatic() {
                return false;
@@ -56,47 +56,47 @@ public class NoseCone extends Transition {
        public void setForeRadiusAutomatic(boolean b) {
                // No-op
        }
-
+       
        @Override
        public double getForeShoulderLength() {
                return 0;
        }
-
+       
        @Override
        public double getForeShoulderRadius() {
                return 0;
        }
-
+       
        @Override
        public double getForeShoulderThickness() {
                return 0;
        }
-
+       
        @Override
        public boolean isForeShoulderCapped() {
                return false;
        }
-
+       
        @Override
        public void setForeShoulderCapped(boolean capped) {
                // No-op
        }
-
+       
        @Override
        public void setForeShoulderLength(double foreShoulderLength) {
                // No-op
        }
-
+       
        @Override
        public void setForeShoulderRadius(double foreShoulderRadius) {
                // No-op
        }
-
+       
        @Override
        public void setForeShoulderThickness(double foreShoulderThickness) {
                // No-op
        }
-
+       
        @Override
        public boolean isClipped() {
                return false;
@@ -107,10 +107,10 @@ public class NoseCone extends Transition {
                // No-op
        }
        
-
        
-       /********** RocketComponent methods **********/
 
+       /********** RocketComponent methods **********/
+       
        /**
         * Return component name.
         */
@@ -119,14 +119,5 @@ public class NoseCone extends Transition {
                //// Nose cone
                return trans.get("NoseCone.NoseCone");
        }
-    
-    /**
-     * Accept a visitor to this NoseCone in the component hierarchy.
-     * 
-     * @param theVisitor  the visitor that will be called back with a reference to this NoseCone
-     */
-    @Override
-    public void accept(ComponentVisitor theVisitor) {
-        theVisitor.visit(this);
-    }
+       
 }