Package org.apache.pivot.wtk
Class Platform
- java.lang.Object
-
- org.apache.pivot.wtk.Platform
-
public final class Platform extends java.lang.ObjectProvides platform-specific information.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Keyboard.ModifiergetCommandModifier()static intgetCursorBlinkRate()static intgetDragThreshold()static java.awt.font.FontRenderContextgetFontRenderContext()static java.lang.StringgetKeyStrokeModifierSeparator()static intgetMultiClickInterval()static Keyboard.ModifiergetWordNavigationModifier()static booleanisLinux()static booleanisOSX()static booleanisWindows()
-
-
-
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.
-
-