Lines Matching defs:Dimension

32  * The <code>Dimension</code> class encapsulates the width and
38 * <code>Dimension</code> object.
54 public class Dimension extends Dimension2D implements java.io.Serializable {
95 * Creates an instance of <code>Dimension</code> with a width
98 public Dimension() {
103 * Creates an instance of <code>Dimension</code> whose width
110 public Dimension(Dimension d) {
115 * Constructs a <code>Dimension</code> and initializes
121 public Dimension(int width, int height) {
143 * Sets the size of this <code>Dimension</code> object to
149 * @param width the new width for the <code>Dimension</code> object
150 * @param height the new height for the <code>Dimension</code> object
159 * Gets the size of this <code>Dimension</code> object.
164 * <code>Dimension</code> with the same width and height
165 * @see java.awt.Dimension#setSize
170 public Dimension getSize() {
171 return new Dimension(width, height);
175 * Sets the size of this <code>Dimension</code> object to the specified size.
178 * @param d the new size for this <code>Dimension</code> object
179 * @see java.awt.Dimension#getSize
183 public void setSize(Dimension d) {
188 * Sets the size of this <code>Dimension</code> object
193 * @param width the new width for this <code>Dimension</code> object
194 * @param height the new height for this <code>Dimension</code> object
195 * @see java.awt.Dimension#getSize
208 if (obj instanceof Dimension) {
209 Dimension d = (Dimension)obj;
216 * Returns the hash code for this <code>Dimension</code>.
218 * @return a hash code for this <code>Dimension</code>
227 * <code>Dimension</code> object's <code>height</code> and
233 * @return a string representation of this <code>Dimension</code>