Class AbsolutePositionLayoutSpec

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

public final class AbsolutePositionLayoutSpec extends Object
This layout specification describes where to position a shape in relation to another.

In contrast to the HorizontalCoverageLayoutSpec this spec does not scale any shape.

  • Constructor Details

    • AbsolutePositionLayoutSpec

      public AbsolutePositionLayoutSpec(AnchorOffset anchorOffset)
      Create a new specification.
      Parameters:
      anchorOffset - The distance of the anchor points of canvas and shape. The canvas is the "reference", the shape the "referring" part of the distance object.
  • Method Details

    • getAnchorOffset

      public AnchorOffset getAnchorOffset()
      Get the distance between the anchor points of canvas and shape.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object