Merged l10n branch to trunk
[debian/openrocket] / src / net / sf / openrocket / rocketcomponent / InnerTube.java
index 448da1549f9ab032346030589b3d0b5459dec980..0b8c92d242fbca6150d342fdbdc29400408263cb 100644 (file)
@@ -1,5 +1,9 @@
 package net.sf.openrocket.rocketcomponent;
 
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+
 import net.sf.openrocket.l10n.Translator;
 import net.sf.openrocket.motor.Motor;
 import net.sf.openrocket.startup.Application;
@@ -7,21 +11,17 @@ import net.sf.openrocket.util.BugException;
 import net.sf.openrocket.util.Coordinate;
 import net.sf.openrocket.util.MathUtil;
 
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-
 
 /**
  * This class defines an inner tube that can be used as a motor mount.  The component
  * may also be clustered.
- * 
+ *
  * @author Sampo Niskanen <sampo.niskanen@iki.fi>
  */
 public class InnerTube extends ThicknessRingComponent
                implements Clusterable, RadialParent, MotorMount {
        private static final Translator trans = Application.getTranslator();
-
+       
        private ClusterConfiguration cluster = ClusterConfiguration.SINGLE;
        private double clusterScale = 1.0;
        private double clusterRotation = 0.0;
@@ -85,6 +85,7 @@ public class InnerTube extends ThicknessRingComponent
         * Get the current cluster configuration.
         * @return  The current cluster configuration.
         */
+       @Override
        public ClusterConfiguration getClusterConfiguration() {
                return cluster;
        }
@@ -93,6 +94,7 @@ public class InnerTube extends ThicknessRingComponent
         * Set the current cluster configuration.
         * @param cluster  The cluster configuration.
         */
+       @Override
        public void setClusterConfiguration(ClusterConfiguration cluster) {
                this.cluster = cluster;
                fireComponentChangeEvent(ComponentChangeEvent.MASS_CHANGE);
@@ -319,22 +321,10 @@ public class InnerTube extends ThicknessRingComponent
                return new Coordinate(this.getLength() - motor.getLength() + this.getMotorOverhang());
        }
        
-    /**
-     * Accept a visitor to an InnerTube object in the component hierarchy.
-     * 
-     * @param theVisitor  the visitor that will be called back with a reference to this InnerTube
-     */
-    @Override 
-    public void accept (final ComponentVisitor theVisitor) {
-        theVisitor.visit(this);
-    }
-       
-
-
        /*
         * (non-Javadoc)
         * Copy the motor and ejection delay HashMaps.
-        * 
+        *
         * @see rocketcomponent.RocketComponent#copy()
         */
        @SuppressWarnings("unchecked")