Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.swt.graphics.custom
Class Dimension  view Dimension download Dimension.java

java.lang.Object
  extended byorg.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.


Field Summary
 int height
           
 int width
           
 
Constructor Summary
Dimension(Dimension d)
           
Dimension(int w, int h)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

width

public int width

height

public int height
Constructor Detail

Dimension

public Dimension(int w,
                 int h)

Dimension

public Dimension(Dimension d)
Method Detail

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.