public final class JPAZUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static void |
delay(long time)
Blocks the execution for a given amount of time.
|
static Object |
getJPAZLock()
Returns the object used as synchronization lock for all JPAZ objects.
|
static InputStream |
getResourceAsStream(String resourceName)
Returns a resource with given name as an open InputStream
|
static URL |
getResourceAsURL(String resourceName)
Returns URL of a resource with given name.
|
static Rectangle |
getScreenBounds()
Returns area where JPAZ-related windows/frames should be located.
|
static boolean |
isHeadlessMode()
Returns whether headless mode is enabled.
|
static boolean |
isSmartLocationEnabled()
Returns whether smart location of method invocation windows is enabled.
|
static boolean |
isWindowShakingEnabled()
Returns whether windows shaking is enabled.
|
static void |
lockHeadlessMode()
Locks the headless mode.
|
static double |
normalizeAngleInDegrees(double angle)
Normalizes angle in degrees.
|
static void |
setHeadlessMode(boolean headlessMode)
Sets headless mode.
|
static void |
setJavaLook()
Changes look-and-feel to Java look
|
static void |
setScreenBounds(Rectangle boundingRectangle)
Defines are where JPAZ related frames/windows should be located.
|
static void |
setSmartLocationEnabled(boolean smartLocationEnabled)
Sets smart location of method invocation windows
|
static void |
setWindowShakingEnabled(boolean windowShakingEnabled)
Sets windows shaking.
|
static void |
setWindowsLook()
Changes look-and-feel to Windows look
|
static void |
sunDemo()
Executes a sample code.
|
public static Object getJPAZLock()
public static void delay(long time)
time
- the time in milliseconds.public static double normalizeAngleInDegrees(double angle)
angle
- the angle in degrees.public static void setWindowsLook()
public static void setJavaLook()
public static boolean isWindowShakingEnabled()
public static void setWindowShakingEnabled(boolean windowShakingEnabled)
windowShakingEnabled
- true, for enabled shaking; false otherwise.public static boolean isSmartLocationEnabled()
public static void setSmartLocationEnabled(boolean smartLocationEnabled)
smartLocationEnabled
- true, for enabled smart location; false otherwise.public static boolean isHeadlessMode()
public static void setHeadlessMode(boolean headlessMode)
headlessMode
- true, to enable headless mode; false to disable.public static void lockHeadlessMode()
public static void setScreenBounds(Rectangle boundingRectangle)
boundingRectangle
- the area defined as rectangle or null, if no restrictions are
applied.public static Rectangle getScreenBounds()
public static URL getResourceAsURL(String resourceName)
resourceName
- the string specifying the resource.public static InputStream getResourceAsStream(String resourceName)
resourceName
- the string specifying the resource.public static void sunDemo()
Copyright © 2017. All rights reserved.