Class Platform


  • public final class Platform
    extends java.lang.Object
    Provides platform-specific information.
    • Method Detail

      • isWindows

        public static boolean isWindows()
        Returns:
        true if this is a Windows platform we're running on.
      • isOSX

        public static boolean isOSX()
        Returns:
        true if this is a Mac OS X platform we're running on.
      • isLinux

        public static boolean isLinux()
        Returns:
        true if this is a Linux platform we're running on.
      • getFontRenderContext

        public static java.awt.font.FontRenderContext getFontRenderContext()
        Returns:
        The platform's font rendering context.
      • getMultiClickInterval

        public static int getMultiClickInterval()
        Returns:
        The system multi-click interval.
      • getCursorBlinkRate

        public static int getCursorBlinkRate()
        Returns:
        The system cursor blink rate.
      • getDragThreshold

        public static int getDragThreshold()
        Returns:
        The system drag threshold.
      • getCommandModifier

        public static Keyboard.Modifier getCommandModifier()
        Returns:
        The system command modifier key.
      • getWordNavigationModifier

        public static Keyboard.Modifier getWordNavigationModifier()
        Returns:
        The word navigation modifier key.
      • getKeyStrokeModifierSeparator

        public static java.lang.String getKeyStrokeModifierSeparator()
        Returns:
        The keystroke modifier separator text.