Dimension Members

Dimension Members

Class Overview | This Package | All Packages

Fields
Name Description
height The height dimension.
width The width dimension.

Constructors
Name Description
Dimension() Creates an instance of Dimension with a width of zero and a height of zero.
Dimension(Dimension) Creates an instance of Dimension whose width and height are the same as for the specified dimension.
Dimension(int, int) Constructs a Dimension and initializes it to the specified width and specified height.

Methods
Name Description
equals(Object) Checks whether two dimension objects have equal values.
getSize() Gets the size of this Dimension object.
setSize(Dimension) Set the size of this Dimension object to the specified size.
setSize(int, int) Set the size of this Dimension object to the specified width and height.
toString() Returns a string that represents this Dimension object's values.