Class HorizontalCoverageLayoutSpec

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

public final class HorizontalCoverageLayoutSpec extends Object
This layout specification describes how to position a shape and how much of the underlying width of the canvas it shall cover.
  • Constructor Details

    • HorizontalCoverageLayoutSpec

      public HorizontalCoverageLayoutSpec(AnchorOffset anchorOffset, double horizontalCoverage)
      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.
      horizontalCoverage - 0 <= horizontalCoverage <= 1. How much space of the canvas should be covered.
  • Method Details

    • getAnchorOffset

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

      public double getHorizontalCoverage()
      Get the horizontal coverage.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object