public class ScreenDeviceImpl extends Object implements ScreenDevice
| Modifier | Constructor and Description |
|---|---|
protected |
ScreenDeviceImpl(int index,
GraphicsDevice screen)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPoint(Point p)
If the screen contains specified point.
|
static ScreenDevice[] |
getAvailableScreenDevices()
Returns all available ScreenDevices.
|
Rectangle |
getBounds()
Get bounds of the screen.
|
static ScreenDevice |
getDefaultScreenDevice()
Gets the default ScreenDevice.
|
int |
getIndex()
Get the screen index.
|
String |
getName()
Get the identifier of the screen.
|
Dimension |
getSize()
Gets the (current) size/resolution of this ScreenDevice.
|
protected ScreenDeviceImpl(int index,
GraphicsDevice screen)
index - screen indexscreen - screen devicepublic static ScreenDevice[] getAvailableScreenDevices()
public static ScreenDevice getDefaultScreenDevice()
public boolean containsPoint(Point p)
containsPoint in interface ScreenDevicep - point coordinatepublic Rectangle getBounds()
public int getIndex()
getIndex in interface ScreenDevicepublic String getName()
public Dimension getSize()
getSize in interface ScreenDeviceCopyright © 2021 jitsi.org. All rights reserved.