/** The forced scale factor that all screen relative units (e.g. millimeters, inches and logical pixels) will be multiplied * with. If <code>null</code> this will default to a scale that will scale the current screen to the default screen resolution * (72 DPI for Mac and 92 DPI for Windows). * @param f The forced scale or <code>null</code> for default scaling. * @see #getHorizontalScaleFactor() * @see ComponentWrapper#getVerticalScreenDPI() */ public static void setVerticalScaleFactor(Float f) { if (!LayoutUtil.equals(verScale, f)) { verScale = f; MOD_COUNT++; } }
/** The forced scale factor that all screen relative units (e.g. millimeters, inches and logical pixels) will be multiplied * with. If <code>null</code> this will default to a scale that will scale the current screen to the default screen resolution * (72 DPI for Mac and 92 DPI for Windows). * @param f The forced scale or <code>null</code> for default scaling. * @see #getHorizontalScaleFactor() * @see ComponentWrapper#getHorizontalScreenDPI() */ public static void setHorizontalScaleFactor(Float f) { if (!LayoutUtil.equals(horScale, f)) { horScale = f; MOD_COUNT++; } }