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) {
25 protected double computeTy(int heightPx) {
26 super.computeTy(heightPx);
30 public void setScale(final double theScale) {
31 this.scale = theScale; //dpi/0.0254*scaling;