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 {
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];
@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;
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);
- }
-
+
}