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

Method scaleFrame

ij/src/main/java/ij/gui/GUI.java:310–322  ·  view source on GitHub ↗
(Dialog dialog, Component... processed)

Source from the content-addressed store, hash-verified

308 }
309
310 @AstroImageJ(reason = "Scale frames")
311 public static void scaleFrame(Dialog dialog, Component... processed) {
312 scaleDefaultFonts();
313 if (SwingUtilities.isEventDispatchThread()) {
314 scale(dialog, Prefs.getGuiScale(), new HashSet<>(Arrays.asList(processed)));
315 } else {
316 try {
317 SwingUtilities.invokeAndWait(() -> scale(dialog, Prefs.getGuiScale(), new HashSet<>(Arrays.asList(processed))));
318 } catch (InterruptedException | InvocationTargetException e) {
319 e.printStackTrace();
320 }
321 }
322 }
323
324 @AstroImageJ(reason = "Scale frames")
325 public static void scaleFrame(Frame frame, Component... processed) {

Callers 15

LogWindowMethod · 0.95
showHelpPanelMethod · 0.95
runMethod · 0.95
addNewAstroDataMethod · 0.95
showMainJPanelMethod · 0.95
showMoreCurvesJPanelMethod · 0.95
createFitPanelMethod · 0.95
showRefStarJPanelMethod · 0.95
dialogMethod · 0.95
displayPanelMethod · 0.95
MeasurementsWindowMethod · 0.95
FilterHandlerMethod · 0.95

Calls 6

scaleDefaultFontsMethod · 0.95
scaleMethod · 0.95
getGuiScaleMethod · 0.95
getFontMethod · 0.95
setFontMethod · 0.65
getMenuBarMethod · 0.45

Tested by

no test coverage detected