Package org.apache.pivot.wtk
Class Platform
- java.lang.Object
-
- org.apache.pivot.wtk.Platform
-
public final class Platform extends java.lang.Object
Provides platform-specific information.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Keyboard.Modifier
getCommandModifier()
static int
getCursorBlinkRate()
static int
getDragThreshold()
static java.awt.font.FontRenderContext
getFontRenderContext()
static java.lang.String
getKeyStrokeModifierSeparator()
static int
getMultiClickInterval()
static Keyboard.Modifier
getWordNavigationModifier()
static boolean
isLinux()
static boolean
isOSX()
static boolean
isWindows()
-
-
-
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.
-
-