public class GraphicsDeviceExtensions extends Object
GraphicsDeviceExtensions helps you if the user have more than one screen to determine which screen is currently shown.| Constructor and Description |
|---|
GraphicsDeviceExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static GraphicsDevice[] |
getAvailableScreens()
Gets the available screens.
|
static int |
getGraphicsDeviceIndexIsShowingOn(Component component)
Gets the array index(in the available
GraphicsDevice array) of the given component is showing on. |
static GraphicsDevice |
getGraphicsDeviceIsShowingOn(Component component)
Gets the graphics device (screen) is showing on.
|
static boolean |
isScreenAvailableToShow(int screen)
Checks if the given screen number is available to show.
|
static void |
showOnScreen(int screen,
JFrame frame)
If the screen is available the given
JFrame will be show in the given screen. |
public static GraphicsDevice[] getAvailableScreens()
public static GraphicsDevice getGraphicsDeviceIsShowingOn(Component component)
component - the componentpublic static int getGraphicsDeviceIndexIsShowingOn(Component component)
GraphicsDevice array) of the given component is showing on.component - the componentGraphicsDevice array) of the given component is showing on.public static boolean isScreenAvailableToShow(int screen)
screen - the screenCopyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.