Java java.awt Dimension fields, constructors, methods, implement or subclass

Example usage for Java java.awt Dimension fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt Dimension.

The text is from its open source code.

Subclass

java.awt.Dimension has subclasses.
Click this link to see all its subclasses.

Constructor

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

Method

Objectclone()
Creates a new object of the same class as this object.
booleanequals(Object obj)
Checks whether two dimension objects have equal values.
doublegetHeight()
DimensiongetSize()
Gets the size of this Dimension object.
doublegetWidth()
voidsetSize(double width, double height)
Sets the size of this Dimension object to the specified width and height in double precision.
voidsetSize(int width, int height)
Sets the size of this Dimension object to the specified width and height.
voidsetSize(Dimension d)
Sets the size of this Dimension object to the specified size.
StringtoString()
Returns a string representation of the values of this Dimension object's height and width fields.