Class Rectangle

java.lang.Object
org.eclipse.birt.report.model.api.util.Rectangle

public class Rectangle extends Object
Represents the position and size of a rectangle in application units.
  • Field Details

    • x

      public double x
      The left edge.
    • y

      public double y
      The top edge.
    • width

      public double width
      The width of the rectangle.
    • height

      public double height
      The 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 edge
      y - top edge
      height - rectangle height
      width - rectangle width
    • Rectangle

      public Rectangle(Point posn, Point size)
      Constructor.
      Parameters:
      posn - position of top left corner
      size - size of the rectangle
  • Method Details

    • getPosition

      public Point getPosition()
      Returns the position of the top left corner.
      Returns:
      position of the top left corner
    • getSize

      public Point getSize()
      Returns the rectangle size.
      Returns:
      rectangle size