Overview
Describes the characteristics of a graphics destination such as monitor.
In a virtual device multi-screen environment in which the desktop area
could span multiple physical screen devices, the bounds of the
Screen
objects are relative to the Screen.primary
.
For example:
import javafx.stage.*; //set Stage boundaries to visible bounds of the main screen Stage { x: Screen.primary.visualBounds.minX y: Screen.primary.visualBounds.minY width: Screen.primary.visualBounds.width height: Screen.primary.visualBounds.height }
Profile: common
Script Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public-read | primary | Screen |
The primary |
||||
public-read | screens | Screen[] |
The sequence of currently available |
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public-read | bounds | Rectangle2D |
The bounds of this |
||||
public-read | dpi | Number |
The resolution (dots per inch) of this screen. |
||||
public-read | visualBounds | Rectangle2D |
The visual bounds of the The visual bounds of the Profile: common |
Inherited Variables
Script Function Summary
- public getScreensForRectangle(x: Number, y: Number, width: Number, height: Number) : Screen[]
-
Returns a sequence of
Screens
that intersects the provided rectangle.Returns a sequence of
Screens
that intersects the provided rectangle.-
Parameters
- x
- the x coordinate of the upper-left corner of the specified rectangular area
- y
- the y coordinate of the upper-left corner of the specified rectangular area
- width
- the width of the specified rectangular area
- height
- the height of the specified rectangular area
-
Returns
- Screen[]
-
a sequence of
Screens
for whichScreen.bounds
intersects the provided rectangle
Profile: common
- public getScreensForRectangle(r: Rectangle2D) : Screen[]
Function Summary
- public equals(obj: java.lang.Object) : Boolean
- public hashCode() : Integer
- public toString() : java.lang.String