Spec-Zone .ru
спецификации, руководства, описания, API

JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

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

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
public-readprimaryScreen

The primary Screen.

public-readscreensScreen[]

The sequence of currently available Screens.

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
public-readboundsRectangle2D

The bounds of this Screen.

public-readdpiNumber

The resolution (dots per inch) of this screen.

public-readvisualBoundsRectangle2D

The visual bounds of the Screen.

The visual bounds of the Screen. These bounds account for objects in the native windowing system such as task bars and menu bars. These bounds are contained by Screen.bounds.

Profile: common

 

Inherited Variables

Script Function Summary

public getScreensForRectangle(x: Number, y: Number, width: Number, height: Number) : java.lang.Object[]

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
Object[]
a sequence of Screens for which Screen.bounds intersects the provided rectangle

Profile: common

 
public getScreensForRectangle(r: Rectangle2D) : java.lang.Object[]

Returns a sequence of Screens that intersects the provided rectangle.

Returns a sequence of Screens that intersects the provided rectangle.

Parameters
r

The specified Rectangle2D

Returns
Object[]
a sequence of Screens for which Screen.bounds intersects the provided rectangle

Profile: common

 

Function Summary

public equals(obj: java.lang.Object) : Boolean
Parameters
obj
Returns
Boolean
 
public hashCode() : Integer
Returns
Integer
 
public toString() : java.lang.String
Returns
String
 

Inherited Functions