Class Layout

java.lang.Object
org.opencastproject.composer.layout.Layout

public final class Layout extends Object
The layout of a rectangular shape on a rectangular canvas.
  • Constructor Details

    • Layout

      public Layout(Dimension dim, Offset offset)
      Create a new layout.
      Parameters:
      dim - the dimension of the shape
      offset - the offset between the top left corner of the shape and the top left corner of the canvas
  • Method Details

    • getDimension

      public Dimension getDimension()
      Return the dimension of the shape.
    • getOffset

      public Offset getOffset()
      Return the offset between the shape's and canvas' origin.
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object