Top Description Fields Constructors Methods
org.eclipse.swt.widgets

public final Class Monitor

extends Object
Class Inheritance
Imports
org.eclipse.swt.graphics.*

Instances of this class are descriptions of monitors.
Since
3.0
See Also
Display, Monitor snippets, Sample code and further information

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv long
pack-priv int
pack-priv int
pack-priv int
x

pack-priv int
y

pack-priv int

Constructor Summary

AccessConstructor and Description
pack-priv
Monitor()

Prevents uninitialized instances from being created outside the package.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the object is the same as this object and false otherwise
equals
(Object
the object to compare with this object
object
)

Overrides java.lang.Object.equals.

Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
public Rectangle

Returns:

the receiver's bounding rectangle
getBounds
()

Returns a rectangle describing the receiver's size and location relative to its device.

public Rectangle

Returns:

the client area
getClientArea
()

Returns a rectangle which describes the area of the receiver which is capable of displaying data.

public int

Returns:

monitor's zoom value
getZoom
()

Returns the zoom value for the monitor

public int

Returns:

the receiver's hash
hashCode
()

Overrides java.lang.Object.hashCode.

Returns an integer hash code for the receiver.
pack-priv void
pack-priv void
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

clientHeightback to summary
pack-priv int clientHeight
clientWidthback to summary
pack-priv int clientWidth
clientXback to summary
pack-priv int clientX
clientYback to summary
pack-priv int clientY
handleback to summary
pack-priv long handle
heightback to summary
pack-priv int height
widthback to summary
pack-priv int width
xback to summary
pack-priv int x
yback to summary
pack-priv int y
zoomback to summary
pack-priv int zoom

Constructor Detail

Monitorback to summary
pack-priv Monitor()

Prevents uninitialized instances from being created outside the package.

Method Detail

equalsback to summary
public boolean equals(Object object)

Overrides java.lang.Object.equals.

Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.

Parameters
object:Object

the object to compare with this object

Returns:boolean

true if the object is the same as this object and false otherwise

Annotations
@Override
See Also
hashCode()
getBoundsback to summary
public Rectangle getBounds()

Returns a rectangle describing the receiver's size and location relative to its device. Note that on multi-monitor systems the origin can be negative.

Returns:Rectangle

the receiver's bounding rectangle

getClientAreaback to summary
public Rectangle getClientArea()

Returns a rectangle which describes the area of the receiver which is capable of displaying data.

Returns:Rectangle

the client area

getZoomback to summary
public int getZoom()

Returns the zoom value for the monitor

Returns:int

monitor's zoom value

Since
3.107
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns an integer hash code for the receiver. Any two objects that return true when passed to equals must return the same value for this method.

Returns:int

the receiver's hash

Annotations
@Override
See Also
equals(Object)
setBoundsback to summary
pack-priv void setBounds(Rectangle rect)
setClientAreaback to summary
pack-priv void setClientArea(Rectangle rect)