()
| 2208 | } |
| 2209 | |
| 2210 | @AstroImageJ(reason = "Support scaling plots") |
| 2211 | void scaleFrame() { |
| 2212 | if (!VectorPlotDrawing.SCALED_PLOT.orElse(true) || !isAijPlot()) { |
| 2213 | return; |
| 2214 | } |
| 2215 | |
| 2216 | var v = Prefs.getGuiScale(); |
| 2217 | frameWidth = (int) Math.round((pp.width / v) - (leftMargin + rightMargin)); |
| 2218 | frameHeight = (int) Math.round((pp.height / v) - (topMargin + bottomMargin)); |
| 2219 | } |
| 2220 | |
| 2221 | /** Calculates the margin sizes and sets the class variables accordingly */ |
| 2222 | void makeMarginValues() { |
no test coverage detected