Package com._1c.g5.v8.dt.common.ui.utils
Class DpiUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.common.ui.utils.DpiUtil
-
public class DpiUtil extends Object
Represents a display scaling methods.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DPI_CURRENT
The current DPI.static int
DPI_DEFAULT
The default DPI for current OS.static float
DPI_SCALE
The scale value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
adapt(int size)
Adapts the specified size on display scale.static org.eclipse.swt.graphics.Point
adapt(org.eclipse.swt.graphics.Point point)
Adapts the point on display scale.
-
-
-
Method Detail
-
adapt
public static int adapt(int size)
Adapts the specified size on display scale.- Parameters:
size
- the size.- Returns:
- new size.
-
adapt
public static org.eclipse.swt.graphics.Point adapt(org.eclipse.swt.graphics.Point point)
Adapts the point on display scale.- Parameters:
size
- the point, can not benull
.- Returns:
- new point.
-
-