]> git.gag.com Git - debian/openrocket/commitdiff
DGP - get margins
authorrodinia814 <rodinia814@180e2498-e6e9-4542-8430-84ac67f01cd8>
Mon, 8 Nov 2010 02:24:39 +0000 (02:24 +0000)
committerrodinia814 <rodinia814@180e2498-e6e9-4542-8430-84ac67f01cd8>
Mon, 8 Nov 2010 02:24:39 +0000 (02:24 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/branches/printing@94 180e2498-e6e9-4542-8430-84ac67f01cd8

src/net/sf/openrocket/gui/print/PrintableFinSet.java

index 9326c41c84d13481326b5da27ffedc88d1fecf92..8af42f87feb661faa63907b141f7e4cb64651f69 100644 (file)
@@ -27,7 +27,7 @@ public class PrintableFinSet extends JPanel implements Printable {
     /**
      * The object that represents the shape (outline) of the fin.  This gets drawn onto the Swing component.
      */
-    private GeneralPath polygon = null;
+    protected GeneralPath polygon = null;
 
     /**
      * The X margin.
@@ -93,6 +93,24 @@ public class PrintableFinSet extends JPanel implements Printable {
         setSize(maxX - minX + marginX, maxY - minY + marginY);
     }
 
+    /**
+     * Get the X-axis margin value.
+     *
+     * @return margin, in points
+     */
+    protected double getMarginX () {
+        return marginX;
+    }
+
+    /**
+     * Get the Y-axis margin value.
+     *
+     * @return margin, in points
+     */
+    protected double getMarginY () {
+        return marginY;
+    }
+
     /**
      * From the java.awt.print.Printable interface.
      * <p/>