Class HorizontalCoverageLayoutSpec
java.lang.Object
org.opencastproject.composer.layout.HorizontalCoverageLayoutSpec
This layout specification describes how to position a shape and how much of the underlying width of the canvas it
shall cover.
-
Constructor Summary
ConstructorsConstructorDescriptionHorizontalCoverageLayoutSpec(AnchorOffset anchorOffset, double horizontalCoverage) Create a new specification. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the distance between the anchor points of canvas and shape.doubleGet the horizontal coverage.inthashCode()
-
Constructor Details
-
HorizontalCoverageLayoutSpec
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