X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fnet%2Fsf%2Fopenrocket%2Fgui%2Fscalefigure%2FScaleFigure.java;h=48440fe336d23d671c1d937ddfe36e0c27fa4bb1;hb=8320c04afa30e2aa0150adc870d02abeedb01066;hp=161c8353bd973f4da9832dffd07b44df58a693bf;hpb=6460090e9ec07b12234369583032d02d7c5ed3b1;p=debian%2Fopenrocket diff --git a/src/net/sf/openrocket/gui/scalefigure/ScaleFigure.java b/src/net/sf/openrocket/gui/scalefigure/ScaleFigure.java index 161c8353..48440fe3 100644 --- a/src/net/sf/openrocket/gui/scalefigure/ScaleFigure.java +++ b/src/net/sf/openrocket/gui/scalefigure/ScaleFigure.java @@ -48,7 +48,7 @@ public interface ScaleFigure extends ChangeSource { */ public double getScaling(); - + /** * Return the scale of the figure on px/m. * @@ -56,7 +56,7 @@ public interface ScaleFigure extends ChangeSource { */ public double getAbsoluteScale(); - + /** * Return the pixel coordinates of the figure origin. * @@ -64,4 +64,19 @@ public interface ScaleFigure extends ChangeSource { */ public Dimension getOrigin(); + + /** + * Get the amount of blank space left around the figure. + * + * @return the amount of horizontal and vertical space left on both sides of the figure. + */ + public Dimension getBorderPixels(); + + /** + * Set the amount of blank space left around the figure. + * + * @param width the amount of horizontal space left on both sides of the figure. + * @param height the amount of vertical space left on both sides of the figure. + */ + public void setBorderPixels(int width, int height); }