|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.uif.util.ScreenUtils
public final class ScreenUtils
This class consists only of static convenience behavior for screen handling.
Method Summary | |
---|---|
static String |
encodedScreenConfiguration()
Looks up and returns the screen configuration encoded as a String. |
static boolean |
has1024x768Screen()
Returns if the screen dimension is equal or larger than 1024x768 pixel. |
static boolean |
has800x600Screen()
Returns if the screen dimension is equal or larger than 800x600 pixel. |
static void |
locateOnOpticalScreenCenter(Component component)
Locates the given component on the optical screen center. |
static void |
locateOnScreenCenter(Component component)
Locates the given component on the screen's center. |
static void |
locateOnScreenEast(Component component)
Locates the given component on the screen's east. |
static void |
locateOnScreenNorthEast(Component component)
Locates the given component on the screen's north-east. |
static void |
locateOnScreenWest(Component component)
Locates the given component on the screen's west. |
static Preferences |
screenConfigurationNode(Preferences prefs)
Looks up and returns a preferences child node for the given preferences. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void locateOnScreenCenter(Component component)
component
- the component to be centeredlocateOnOpticalScreenCenter(Component)
public static void locateOnOpticalScreenCenter(Component component)
component
- the component to be optically centeredpublic static void locateOnScreenNorthEast(Component component)
component
- the component to be locatedpublic static void locateOnScreenWest(Component component)
component
- the component to be locatedpublic static void locateOnScreenEast(Component component)
component
- the component to be locatedpublic static boolean has1024x768Screen()
public static boolean has800x600Screen()
public static String encodedScreenConfiguration()
This String can be used to identify a configuration when storing and restoring screen state such as bounds, table column width, etc. If the screen size, the number of available screens, or their position changes, the encoded configuration changes.
public static Preferences screenConfigurationNode(Preferences prefs)
prefs
- the preferences parent node
encodedScreenConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |