Class java.awt.Dimension
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.Dimension

java.lang.Object
   |
   +----java.awt.Dimension

public class Dimension
extends Object
A class to encapsulate a width and a height Dimension.

Variable Index

 o height
The height dimension.
 o width
The width dimension.

Constructor Index

 o Dimension()
Constructs a Dimension with a 0 width and 0 height.
 o Dimension(Dimension)
Constructs a Dimension and initializes it to the specified value.
 o Dimension(int, int)
Constructs a Dimension and initializes it to the specified width and specified height.

Method Index

 o toString()
Returns the String representation of this Dimension's values.

Variables

 o width
  public int width
The width dimension.
 o height
  public int height
The height dimension.

Constructors

 o Dimension
  public Dimension()
Constructs a Dimension with a 0 width and 0 height.
 o Dimension
  public Dimension(Dimension d)
Constructs a Dimension and initializes it to the specified value.
Parameters:
d - the specified dimension for the width and height values
 o Dimension
  public Dimension(int width,
                   int height)
Constructs a Dimension and initializes it to the specified width and specified height.
Parameters:
width - the specified width dimension
height - the specified height dimension

Methods

 o toString
  public String toString()
Returns the String representation of this Dimension's values.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index