4 package net.sf.openrocket.gui.print;
6 import net.sf.openrocket.gui.scalefigure.RocketFigure;
7 import net.sf.openrocket.rocketcomponent.Configuration;
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.
13 public class PrintFigure extends RocketFigure {
18 * @param configuration the configuration
20 public PrintFigure (final Configuration configuration) {
24 protected double computeTy (int heightPx) {
25 super.computeTy(heightPx);
29 public void setScale (final double theScale) {
30 this.scale = theScale; //dpi/0.0254*scaling;