Class Anchor

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

public final class Anchor extends Object
Anchor point of a rectangular shape, expressed relatively to its width and height.
  • Constructor Details

    • Anchor

      public Anchor(double left, double top)
      Create a new anchor point.
      Parameters:
      left - width ratio measured from the left. 0 <= left <= 1
      top - height ratio measured from the top. 0 <= top <= 1
  • Method Details

    • getLeft

      public double getLeft()
    • getTop

      public double getTop()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object