X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fnet%2Fsf%2Fopenrocket%2Frocketcomponent%2FNoseCone.java;h=a4de3a9c8aeabcded7bc652c14c99b24539d0120;hb=8e4a8571c20ba96164ddd8a68226d43ccd549d21;hp=c271e2d442b6cd5044a24b298e35c6b082c97e7e;hpb=45a4cc31d98dd1c4c8d334e3f7e6d3e4072fb59f;p=debian%2Fopenrocket diff --git a/src/net/sf/openrocket/rocketcomponent/NoseCone.java b/src/net/sf/openrocket/rocketcomponent/NoseCone.java index c271e2d4..a4de3a9c 100644 --- a/src/net/sf/openrocket/rocketcomponent/NoseCone.java +++ b/src/net/sf/openrocket/rocketcomponent/NoseCone.java @@ -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 */ 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); - } + }