public class NativeMonitorInfo extends Object
The primary display is guaranteed to be at number zero. No other grantee is made about monitor number for subsequent displays. All logical displays are guaranteed to have x and y coordinates relative to the primary display.
ExecutorService
,
GlobalScreen.setEventDispatcher(java.util.concurrent.ExecutorService)
Constructor and Description |
---|
NativeMonitorInfo(short number,
int x,
int y,
short width,
short height)
Instantiates a new monitor info class.
|
Modifier and Type | Method and Description |
---|---|
short |
getHeight()
Returns the hight of this naitve monitor.
|
short |
getNumber()
Get the logical number of this display.
|
short |
getWidth()
Returns the width of this native display.
|
int |
getX()
Returns the x offset of this display.
|
int |
getY()
Returns the y offset of this display.
|
void |
setHeight(short height)
Set the height in pixel value for this display.
|
void |
setNumber(short number)
Set the logical number for this display.
|
void |
setWidth(short width)
Set the width in pixel value for this display.
|
void |
setX(int x)
Set the x offset of this display.
|
void |
setY(int y)
Set the y offset of this display.
|
public NativeMonitorInfo(short number, int x, int y, short width, short height)
Note that passing in an invalid ID results in unspecified behavior.
number
- an integer that identifies the display.x
- the x coordate of this display.y
- the y coordate of this display.width
- the width coordate of this display.height
- the height coordate of this display.public short getNumber()
public void setNumber(short number)
number
- the logical number of this display.public int getX()
public void setX(int x)
x
- the x location of this display.public int getY()
public void setY(int y)
y
- the y location of this display.public short getWidth()
public void setWidth(short width)
width
- the pixel width of this monitor.public short getHeight()
public void setHeight(short height)
height
- the pixel height of this display.Copyright © 2006-2017 ${project.vendor}. All Rights Received.