Class AnchorOffset
java.lang.Object
org.opencastproject.composer.layout.AnchorOffset
The offset between the anchor points of two rectangular shapes.
-
Constructor Summary
ConstructorsConstructorDescriptionAnchorOffset(Anchor referenceAnchor, Anchor referringAnchor, Offset offset) Create a new offset. -
Method Summary
Modifier and TypeMethodDescriptionstatic AnchorOffsetanchorOffset(Anchor referenceAnchor, Anchor referringAnchor, int xOffset, int yOffset) booleanGet the offset between the two anchor points.Get the anchor point of the reference shape.Get the anchor point of the shape referring to the reference shape.inthashCode()toString()
-
Constructor Details
-
AnchorOffset
Create a new offset.- Parameters:
referenceAnchor- anchor point of the reference shapereferringAnchor- anchor point of the referring shapeoffset- offset between the two anchor points measured from the reference
-
-
Method Details
-
anchorOffset
public static AnchorOffset anchorOffset(Anchor referenceAnchor, Anchor referringAnchor, int xOffset, int yOffset) -
getReferenceAnchor
Get the anchor point of the reference shape. -
getReferringAnchor
Get the anchor point of the shape referring to the reference shape. -
getOffset
Get the offset between the two anchor points. -
equals
-
hashCode
public int hashCode() -
toString
-