From: rodinia814 Date: Mon, 8 Nov 2010 02:24:39 +0000 (+0000) Subject: DGP - get margins X-Git-Tag: upstream/1.1.4^2~10^2 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=7d2b1f092ffd2309a3dbf1ac52b6f8a281762f72;p=debian%2Fopenrocket DGP - get margins git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/branches/printing@94 180e2498-e6e9-4542-8430-84ac67f01cd8 --- 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. *