Class Dimension
java.lang.Object
com.vaadin.featurepack.desktop.geometry.Dimension
- All Implemented Interfaces:
Serializable
A class that represents a dimension in 2D space.
- Author:
- Vaadin Ltd
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
width
public int width -
height
public int height
-
-
Constructor Details
-
Dimension
public Dimension()Creates a new dimension with width and height set to 0. -
Dimension
public Dimension(int width, int height) Creates a new dimension with the given width and height. -
Dimension
public Dimension(double width, double height) Creates a new dimension with the given width and height. -
Dimension
Creates a new dimension clone
-
-
Method Details
-
getWidth
public int getWidth()Returns the width of this dimension.- Returns:
- the width
-
getHeight
public int getHeight()Returns the height of this dimension.- Returns:
- the height
-
setWidth
public void setWidth(int width) -
setHeight
public void setHeight(int height) -
equals
-
hashCode
public int hashCode() -
toString
-