java.lang.Object
com.tlcsdm.core.javafx.util.ScreenUtil
系统或组件Screen获取.
- 作者:
- unknowIfGuestInDream
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static doublegetHeight(javafx.scene.Node control) 组件高度.static double获取屏幕高度.static String屏幕分辨率字符串 w x h.static double获取屏幕宽度.static doublegetScreenX(javafx.scene.Node control) 组件X坐标.static doublegetScreenY(javafx.scene.Node control) 组件Y坐标.static doublegetWidth(javafx.scene.Node control) 组件宽度.
-
构造器详细资料
-
ScreenUtil
private ScreenUtil()
-
-
方法详细资料
-
getScreenX
public static double getScreenX(javafx.scene.Node control) 组件X坐标.- 参数:
control- 组件
-
getScreenY
public static double getScreenY(javafx.scene.Node control) 组件Y坐标.- 参数:
control- 组件
-
getWidth
public static double getWidth(javafx.scene.Node control) 组件宽度.- 参数:
control- 组件
-
getHeight
public static double getHeight(javafx.scene.Node control) 组件高度.- 参数:
control- 组件
-
getScreenWeight
public static double getScreenWeight()获取屏幕宽度. -
getScreenHeight
public static double getScreenHeight()获取屏幕高度. -
getScreenToString
屏幕分辨率字符串 w x h.
-