public class ScreenSizeExtensions extends Object
| Constructor and Description |
|---|
ScreenSizeExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static List<Point> |
computeDialogPositions(int dialogWidth,
int dialogHeight)
Compute how much dialog can be put into the screen and returns a list with the coordinates
from the dialog positions as Point objects.
|
static int |
getFirstScreenHeight()
Gets the first screen width.
|
static int |
getFirstScreenWidth()
Gets the first screen width.
|
static Point |
getPoint()
Gets the Screensize and returns it as a Point object.
|
static GraphicsDevice[] |
getScreenDevices()
Gets all the screen devices.
|
static Dimension |
getScreenDimension(Component component)
Gets the screen dimension.
|
static int |
getScreenHeight()
Gets the height from the current screen.
|
static int |
getScreenHeight(Component component)
Gets the screen height of the
GraphicsDevice that is displayed from the given
component |
static int |
getScreenHeight(GraphicsDevice graphicsDevice)
Gets the screen height from the given
GraphicsDevice object. |
static int |
getScreenID(Component component)
Gets the screen ID from the given component
|
static int |
getScreenWidth()
Gets the width from the current screen.
|
static int |
getScreenWidth(Component component)
Gets the screen width of the
GraphicsDevice that is displayed from the given
component |
static int |
getScreenWidth(GraphicsDevice graphicsDevice)
Gets the screen width from the given
GraphicsDevice object. |
public static List<Point> computeDialogPositions(int dialogWidth, int dialogHeight)
dialogWidth - the dialog widthdialogHeight - the dialog heightpublic static int getFirstScreenHeight()
public static int getFirstScreenWidth()
public static Point getPoint()
public static GraphicsDevice[] getScreenDevices()
public static Dimension getScreenDimension(Component component)
component - the componentpublic static int getScreenHeight()
public static int getScreenHeight(Component component)
GraphicsDevice that is displayed from the given
componentcomponent - the componentpublic static int getScreenHeight(GraphicsDevice graphicsDevice)
GraphicsDevice object.graphicsDevice - the GraphicsDevice object.GraphicsDevice object.public static int getScreenID(Component component)
component - the componentpublic static int getScreenWidth()
public static int getScreenWidth(Component component)
GraphicsDevice that is displayed from the given
componentcomponent - the componentpublic static int getScreenWidth(GraphicsDevice graphicsDevice)
GraphicsDevice object.graphicsDevice - the GraphicsDevice object.GraphicsDevice object.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.