Dimension.Dimension

Dimension.Dimension

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Dimension()
Description
Creates an instance of Dimension with a width of zero and a height of zero.



Syntax 2
public Dimension( Dimension d )
Parameters
d
the specified dimension for the width and height values.
Description
Creates an instance of Dimension whose width and height are the same as for the specified dimension.



Syntax 3
public Dimension( int width, int height )
Parameters
width
the specified width dimension
height
the specified height dimension
Description
Constructs a Dimension and initializes it to the specified width and specified height.