class Area
Package :
(default package)
Extends :
Known subclasses :
Description :
An invisible area that can receive mouse events. The event dispatching is handled by the Stage.
Attributes :
Name | Description |
---|---|
enabled | whether the area should receive mouse events. |
stage | The area's stage. |
Methods :
new(x, y, w, h)
Creates a new Area object.
Parameters :
- x :
- y :
- w :
- h :
contains(p)
Checking if the area contains a point.
Parameters :
- p : The point to check.
equals(area)
Parameters :
- area : The area to compare with.
intersect(area)
Parameters :
- area : The other area.
Returns :
true if there is an intersection.
projection()
Getting the area's projection.
Returns :
The projection's object.