类 ScreenUtil

java.lang.Object
com.tlcsdm.core.javafx.util.ScreenUtil

public class ScreenUtil extends Object
系统或组件Screen获取.
作者:
unknowIfGuestInDream
  • 构造器详细资料

    • 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

      public static String getScreenToString()
      屏幕分辨率字符串 w x h.