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 intDPI_CURRENTThe current DPI.static intDPI_DEFAULTThe default DPI for current OS.static floatDPI_SCALEThe scale value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intadapt(int size)Adapts the specified size on display scale.static org.eclipse.swt.graphics.Pointadapt(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.
-
-