git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@136 180e2...
[debian/openrocket] / src / net / sf / openrocket / rocketcomponent / EllipticalFinSet.java
index 22d49bea65f2850b38d68d52953c9218ec17afd3..2dadf6f56dd0ba7e58f3ea1f634d2d87c0bb1402 100644 (file)
@@ -1,11 +1,15 @@
 package net.sf.openrocket.rocketcomponent;
 
+import net.sf.openrocket.l10n.Translator;
+import net.sf.openrocket.startup.Application;
 import net.sf.openrocket.util.Coordinate;
 import net.sf.openrocket.util.MathUtil;
 
 public class EllipticalFinSet extends FinSet {
+       private static final Translator trans = Application.getTranslator();
+
        public static final int POINTS = 21;
-       
+
        private static final double[] POINT_X = new double[POINTS];
        private static final double[] POINT_Y = new double[POINTS];
        static {
@@ -19,15 +23,15 @@ public class EllipticalFinSet extends FinSet {
                POINT_X[POINTS-1] = 1;
                POINT_Y[POINTS-1] = 0;
        }
-       
-       
+
+
        private double height = 0.05;
-       
+
        public EllipticalFinSet() {
                this.length = 0.05;
        }
 
-       
+
        @Override
        public Coordinate[] getFinPoints() {
                Coordinate[] points = new Coordinate[POINTS];
@@ -44,22 +48,23 @@ public class EllipticalFinSet extends FinSet {
 
        @Override
        public String getComponentName() {
-               return "Elliptical fin set";
+               //// Elliptical fin set
+               return trans.get("EllipticalFinSet.Ellipticalfinset");
        }
-       
-       
+
+
        public double getHeight() {
                return height;
        }
-       
+
        public void setHeight(double height) {
                if (MathUtil.equals(this.height, height))
                        return;
                this.height = height;
                fireComponentChangeEvent(ComponentChangeEvent.BOTH_CHANGE);
        }
-       
-       
+
+
        public void setLength(double length) {
                if (MathUtil.equals(this.length, length))
                        return;
@@ -67,15 +72,5 @@ public class EllipticalFinSet extends FinSet {
                fireComponentChangeEvent(ComponentChangeEvent.BOTH_CHANGE);
        }
 
-    
-    /**
-     * Accept a visitor to this EllipticalFinSet in the component hierarchy.
-     * 
-     * @param theVisitor  the visitor that will be called back with a reference to this EllipticalFinSet
-     */
-    @Override
-    public void accept(ComponentVisitor theVisitor) {
-        theVisitor.visit(this);
-    }
-    
+
 }