Package lu.kbra.modelizer_next.common
Class Size2D
java.lang.Object
java.awt.geom.Point2D
java.awt.geom.Point2D.Double
lu.kbra.modelizer_next.common.Size2D
- All Implemented Interfaces:
Serializable,Cloneable
Mutable two-dimensional size value used by layout objects.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float -
Field Summary
Fields inherited from class java.awt.geom.Point2D.Double
x, y -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.awt.geom.Point2D.Double
setLocation, toStringMethods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
-
Constructor Details
-
Size2D
public Size2D()Creates a size 2 d instance. -
Size2D
public Size2D(double x, double y) Creates a size 2 d instance.- Parameters:
x- x coordinatey- y coordinate
-
-
Method Details
-
getHeight
public double getHeight()Returns the height.- Returns:
- the height
-
getWidth
public double getWidth()Returns the width.- Returns:
- the width
-
getX
Deprecated.Returns the x.- Overrides:
getXin classPoint2D.Double- Returns:
- the x
-
getY
Deprecated.Returns the y.- Overrides:
getYin classPoint2D.Double- Returns:
- the y
-
setHeight
public void setHeight(double y) Sets the height.- Parameters:
y- y coordinate
-
setWidth
public void setWidth(double x) Sets the width.- Parameters:
x- x coordinate
-
setX
Deprecated.Sets the x.- Parameters:
x- x coordinate
-
setY
Deprecated.Sets the y.- Parameters:
y- y coordinate
-