From 7d2b1f092ffd2309a3dbf1ac52b6f8a281762f72 Mon Sep 17 00:00:00 2001 From: rodinia814 Date: Mon, 8 Nov 2010 02:24:39 +0000 Subject: [PATCH] DGP - get margins git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/branches/printing@94 180e2498-e6e9-4542-8430-84ac67f01cd8 --- .../openrocket/gui/print/PrintableFinSet.java | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/net/sf/openrocket/gui/print/PrintableFinSet.java b/src/net/sf/openrocket/gui/print/PrintableFinSet.java index 9326c41c..8af42f87 100644 --- a/src/net/sf/openrocket/gui/print/PrintableFinSet.java +++ b/src/net/sf/openrocket/gui/print/PrintableFinSet.java @@ -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. *

-- 2.47.2