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

access name type Can Read Can Init Can Write Default Value description
public-init height Number 0.0

The height of this Rectangle2D.

public maxX Number minX + width

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

public maxY Number minY + height

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

public-init minX Number 0.0

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

public-init minY Number 0.0

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

public-init width Number 0.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




Spec-Zone.ru - all specs in one place