major optimization updates
[debian/openrocket] / src / net / sf / openrocket / gui / scalefigure / ScaleFigure.java
index 161c8353bd973f4da9832dffd07b44df58a693bf..48440fe336d23d671c1d937ddfe36e0c27fa4bb1 100644 (file)
@@ -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);
 }