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

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

Profile: desktop, common

Overview

A 2D rectangle used to describe the bounds of an object. It is defined by a location (minX, minY) and dimension (width x height).

Profile: common

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
public-initheightNumber0.0

The height of this Rectangle2D.

publicmaxXNumber minX + width

The x coordinate of the lower-right corner of this Rectangle2D.

publicmaxYNumber minY + height

The y coordinate of the lower-right corner of this Rectangle2D.

public-initminXNumber0.0

The x coordinate of the upper-left corner of this Rectangle2D.

public-initminYNumber0.0

The y coordinate of the upper-left corner of this Rectangle2D.

public-initwidthNumber0.0

The width of this Rectangle2D.

Inherited Variables

Function Summary

public contains(p: Point2D) : Boolean

Tests if the specified point is inside the boundary of Rectangle2D.

Tests if the specified point is inside the boundary of Rectangle2D.

Parameters
p
the specified point to be tested
Returns
Boolean
true if the specified point is inside the boundary of this Rectangle2D ; false otherwise.

Profile: common

 
public contains(x: Number, y: Number) : Boolean

Tests if the specified (x, y) coordinates are inside the boundary of Rectangle2D.

Tests if the specified (x, y) coordinates are inside the boundary of Rectangle2D.

Parameters
x
the specified x coordinate to be tested
y
the specified y coordinate to be tested
Returns
Boolean
true if the specified (x, y) coordinates are inside the boundary of this Rectangle2D ; false otherwise.

Profile: common

 
public contains(r: Rectangle2D) : Boolean

Tests if the interior of this Rectangle2D entirely contains the specified Rectangle2D, r.

Tests if the interior of this Rectangle2D entirely contains the specified Rectangle2D, r.

Parameters
r
The specified Rectangle2D
Returns
Boolean
true if the specified Rectangle2D, r , is inside the boundary of this Rectangle2D ; false otherwise.

Profile: common

 
public contains(x: Number, y: Number, w: Number, h: Number) : Boolean

Tests if the interior of this Rectangle2D entirely contains the specified rectangular area.

Tests if the interior of this Rectangle2D entirely contains the specified rectangular area.

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
w
the width of the specified rectangular area
h
the height of the specified rectangular area
Returns
Boolean
true if the interior of this Rectangle2D entirely contains the specified rectangular area; false otherwise.

Profile: common

 
public equals(obj: java.lang.Object) : Boolean
Parameters
obj
Returns
Boolean
 
public hashCode() : Integer
Returns
Integer
 
public intersects(r: Rectangle2D) : Boolean

Tests if the interior of this Rectangle2D intersects the interior of a specified Rectangle2D, r.

Tests if the interior of this Rectangle2D intersects the interior of a specified Rectangle2D, r.

Parameters
r
The specified Rectangle2D
Returns
Boolean
true if the interior of this Rectangle2D and the interior of the specified Rectangle2D, r , intersect.

Profile: common

 
public intersects(x: Number, y: Number, w: Number, h: Number) : Boolean

Tests if the interior of this Rectangle2D intersects the interior of a specified rectangular area.

Tests if the interior of this Rectangle2D intersects the interior of a specified rectangular area.

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
w
the width of the specified rectangular area
h
the height of the specified rectangular area
Returns
Boolean
true if the interior of this Rectangle2D and the interior of the rectangular area intersect.

Profile: common

 
public toString() : java.lang.String

Returns a string representation of this Rectangle2D.

Returns a string representation of this Rectangle2D. This method is intended to be used only for informational purposes. The content and format of the returned string might vary between implementations. The returned string might be empty but cannot be null.

Returns
String

Profile: common

 

Inherited Functions