public final class Monitor
extends java.lang.Object
Display
,
Monitor snippets,
Sample code and further informationModifier and Type | Field and Description |
---|---|
(package private) int |
clientHeight |
(package private) int |
clientWidth |
(package private) int |
clientX |
(package private) int |
clientY |
(package private) int |
handle |
(package private) int |
height |
(package private) int |
width |
(package private) int |
x |
(package private) int |
y |
Constructor and Description |
---|
Monitor()
Prevents uninitialized instances from being created outside the package.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Compares the argument to the receiver, and returns true
if they represent the same object using a class
specific comparison.
|
Rectangle |
getBounds()
Returns a rectangle describing the receiver's size and location
relative to its device.
|
Rectangle |
getClientArea()
Returns a rectangle which describes the area of the
receiver which is capable of displaying data.
|
int |
hashCode()
Returns an integer hash code for the receiver.
|
int handle
int x
int y
int width
int height
int clientX
int clientY
int clientWidth
int clientHeight
Monitor()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the object to compare with this objecttrue
if the object is the same as this object and false
otherwisehashCode()
public Rectangle getBounds()
public Rectangle getClientArea()
public int hashCode()
true
when passed to
equals
must return the same value for this
method.hashCode
in class java.lang.Object
equals(Object)