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 int |
getScreenHeight()
Gets the height from the current screen.
|
static int |
getScreenHeight(GraphicsDevice graphicsDevice)
Gets the screen height from the given
GraphicsDevice object. |
static int |
getScreenWidth()
Gets the width from the current screen.
|
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 int getScreenHeight()
public static int getScreenHeight(GraphicsDevice graphicsDevice)
GraphicsDevice object.graphicsDevice - the GraphicsDevice object.GraphicsDevice object.public static int getScreenWidth()
public 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.