Class Rectangle
java.lang.Object
org.eclipse.birt.report.model.api.util.Rectangle
Represents the position and size of a rectangle in application units.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the position of the top left corner.getSize()
Returns the rectangle size.
-
Field Details
-
x
public double xThe left edge. -
y
public double yThe top edge. -
width
public double widthThe width of the rectangle. -
height
public double heightThe height of the rectangle.
-
-
Constructor Details
-
Rectangle
public Rectangle()Default constructor. -
Rectangle
public Rectangle(double x, double y, double height, double width) Constructor.- Parameters:
x
- left edgey
- top edgeheight
- rectangle heightwidth
- rectangle width
-
Rectangle
Constructor.- Parameters:
posn
- position of top left cornersize
- size of the rectangle
-
-
Method Details
-
getPosition
Returns the position of the top left corner.- Returns:
- position of the top left corner
-
getSize
Returns the rectangle size.- Returns:
- rectangle size
-