Constructor and Description |
---|
MacUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
_openApp(java.lang.String appName) |
void |
bringWindowToFront(java.awt.Window win,
boolean ignoreMouse) |
int |
closeApp(int pid) |
int |
closeApp(java.lang.String appName) |
static java.awt.Rectangle |
getFocusedRegion() |
Region |
getFocusedWindow() |
static int |
getPID(java.lang.String appName) |
static java.awt.Rectangle |
getRegion(int pid,
int winNum) |
Region |
getWindow(int pid) |
Region |
getWindow(int pid,
int winNum) |
Region |
getWindow(java.lang.String appName) |
Region |
getWindow(java.lang.String appName,
int winNum) |
static boolean |
isAxEnabled() |
int |
openApp(java.lang.String appName) |
static void |
openAxSetting() |
void |
setWindowOpacity(java.awt.Window win,
float alpha) |
void |
setWindowOpaque(java.awt.Window win,
boolean opaque) |
int |
switchApp(int pid,
int num) |
int |
switchApp(java.lang.String appName) |
int |
switchApp(java.lang.String appName,
int winNum) |
public int switchApp(java.lang.String appName)
public int switchApp(java.lang.String appName, int winNum)
public Region getWindow(java.lang.String appName, int winNum)
public Region getWindow(java.lang.String appName)
public Region getFocusedWindow()
getFocusedWindow
in interface OSUtil
public void bringWindowToFront(java.awt.Window win, boolean ignoreMouse)
bringWindowToFront
in interface OSUtil
public static boolean _openApp(java.lang.String appName)
public static int getPID(java.lang.String appName)
public static java.awt.Rectangle getRegion(int pid, int winNum)
public static java.awt.Rectangle getFocusedRegion()
public static boolean isAxEnabled()
public static void openAxSetting()
public void setWindowOpacity(java.awt.Window win, float alpha)
setWindowOpacity
in interface OSUtil
public void setWindowOpaque(java.awt.Window win, boolean opaque)
setWindowOpaque
in interface OSUtil