Example usage for Java java.awt Dimension fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
Object | clone() Creates a new object of the same class as this object. |
boolean | equals(Object obj) Checks whether two dimension objects have equal values. |
double | getHeight() |
Dimension | getSize() Gets the size of this Dimension object. |
double | getWidth() |
void | setSize(double width, double height) Sets the size of this Dimension object to the specified width and height in double precision. |
void | setSize(int width, int height) Sets the size of this Dimension object to the specified width and height. |
void | setSize(Dimension d) Sets the size of this Dimension object to the specified size. |
String | toString() Returns a string representation of the values of this Dimension object's height and width fields. |