java.lang.Object
org.eclipse.swt.graphics.custom.Dimension
- All Implemented Interfaces:
- java.io.Serializable, org.eclipse.swt.internal.SerializableCompatibility
- public class Dimension
- extends java.lang.Object
- implements org.eclipse.swt.internal.SerializableCompatibility
Simple wrapper of a width and height dimension.
|
Method Summary |
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. |
int |
hashCode()
Returns an integer hash code for the receiver. |
java.lang.String |
toString()
Returns a string containing a concise, human-readable
description of the receiver. |
width
public int width
height
public int height
Dimension
public Dimension(int w,
int h)
Dimension
public Dimension(Dimension d)
equals
public 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.
hashCode
public int hashCode()
- Returns an integer hash code for the receiver. Any two
objects which return
true when passed to
equals must return the same value for this
method.
toString
public java.lang.String toString()
- Returns a string containing a concise, human-readable
description of the receiver.