MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / scaleFrame

Method scaleFrame

ij/src/main/java/ij/gui/Plot.java:2210–2219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers 1

getBlankProcessorMethod · 0.95

Calls 3

isAijPlotMethod · 0.95
getGuiScaleMethod · 0.95
roundMethod · 0.45

Tested by

no test coverage detected