create changelog entry
[debian/openrocket] / core / src / net / sf / openrocket / gui / print / PrintFigure.java
1 /*
2  * PrintFigure.java
3  */
4 package net.sf.openrocket.gui.print;
5
6 import net.sf.openrocket.gui.scalefigure.RocketFigure;
7 import net.sf.openrocket.rocketcomponent.Configuration;
8
9 /**
10  * A figure used to override the scale factor in RocketFigure.  This allows pinpoint scaling to allow a diagram
11  * to fit in the width of the chosen page size.
12  */
13 public class PrintFigure extends RocketFigure {
14         
15         /**
16          * Constructor.
17          * 
18          * @param configuration  the configuration
19          */
20         public PrintFigure(final Configuration configuration) {
21                 super(configuration);
22         }
23         
24         @Override
25         protected double computeTy(int heightPx) {
26                 super.computeTy(heightPx);
27                 return 0;
28         }
29         
30         public void setScale(final double theScale) {
31                 this.scale = theScale; //dpi/0.0254*scaling;
32                 updateFigure();
33         }
34
35     public double getFigureHeightPx() {
36         return this.figureHeightPx;
37     }
38 }