org.minueto
Class MinuetoTool

java.lang.Object
  extended by org.minueto.MinuetoTool

public class MinuetoTool
extends java.lang.Object

The MinuetoTool class provides various tools that don't particularly fit into other Minueto class.

Since:
Minueto 0.4

Constructor Summary
MinuetoTool()
           
 
Method Summary
static int getDisplayHeight()
          Returns the height of the current display (desktop) in pxels.
static int getDisplayWidth()
          Returns the width of the current display (desktop) in pxels.
static boolean isLinux()
          Returns true if the operating system is Linux.
static boolean isMac()
          Returns true if the operating system is MacOS.
static boolean isWindows()
          Returns true if the operating system is Windows.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinuetoTool

public MinuetoTool()
Method Detail

getDisplayWidth

public static int getDisplayWidth()
Returns the width of the current display (desktop) in pxels. In fullscreen mode, this value corresponds to the width of the MinuetoWindow.

Returns:
int denoting the width of the current display.

getDisplayHeight

public static int getDisplayHeight()
Returns the height of the current display (desktop) in pxels. In fullscreen mode, this value corresponds to the height of the MinuetoWindow.

Returns:
int denoting the height of the current display.

isWindows

public static boolean isWindows()
Returns true if the operating system is Windows.

Returns:
boolean indicating if the OS is Windows

isLinux

public static boolean isLinux()
Returns true if the operating system is Linux.

Returns:
boolean indicating if the OS is Linux

isMac

public static boolean isMac()
Returns true if the operating system is MacOS.

Returns:
boolean indicating if the OS is MacOS