create changelog entry
[debian/openrocket] / core / src / net / sf / openrocket / gui / print / visitor / CenteringRingStrategy.java
index a3315aedd5f53b5d72f1fa3ada7919c7640e5980..1df756997d30bd397ce6953746e2954189ad54c4 100644 (file)
@@ -107,10 +107,8 @@ public class CenteringRingStrategy {
             if (rocketComponents != rc) {
                 if (rocketComponents instanceof InnerTube) {
                     InnerTube it = (InnerTube) rocketComponents;
-                    if (it.isMotorMount()) {
-                        if (overlaps(rc, it)) {
-                            mounts.add(it);
-                        }
+                    if (overlaps(rc, it)) {
+                        mounts.add(it);
                     }
                 }
             }
@@ -213,6 +211,10 @@ public class CenteringRingStrategy {
          * Height, in points.
          */
         public float height;
+        /**
+         * Breadth, in points.
+         */
+        public float breadth = 0f;
 
         /**
          * Constructor.
@@ -225,6 +227,19 @@ public class CenteringRingStrategy {
             height = h;
         }
 
+        /**
+         * Constructor.
+         *
+         * @param w width
+         * @param h height
+         * @param b breadth; optionally used to represent radius
+         */
+        public Dimension(float w, float h, float b) {
+            width = w;
+            height = h;
+            breadth = b;
+        }
+
         /**
          * Get the width.
          *
@@ -242,5 +257,14 @@ public class CenteringRingStrategy {
         public float getHeight() {
             return height;
         }
+
+        /**
+         * Get the breadth.
+         *
+         * @return the breadth
+         */
+        public float getBreadth() {
+            return breadth;
+        }
     }
 }