Class Constraints
java.lang.Object
dev.pfaff.altargui.improv.Constraints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Constraint[]
align
(IRect<? extends ToExpression> object, IRect<? extends ToExpression> container, Alignment xAlignment, Alignment yAlignment) static Constraint
align
(Line<? extends ToExpression> object, Line<? extends ToExpression> container, Alignment alignment) static ToExpression
alignedTopLeftPosition
(Line<? extends ToExpression> object, Line<? extends ToExpression> container, Alignment alignment) Returns the expression that will calculate the top-left position of theobject
such that it is aligned according toalignment
along thecontainer
.static Constraint[]
static Constraint[]
eqlPos
(VarRect viewport, ToExpression x, ToExpression y) static Constraint[]
static Constraint[]
eqlSize
(VarRect viewport, ToExpression width, ToExpression height) static Constraint[]
fits
(IRect<? extends ToExpression> object, IRect<? extends ToExpression> container, boolean allowOverflow) Returns the constraints that will ensure that theobject
is contained within thecontainer
.
-
Constructor Details
-
Constraints
public Constraints()
-
-
Method Details
-
fits
public static Constraint[] fits(IRect<? extends ToExpression> object, IRect<? extends ToExpression> container, boolean allowOverflow) Returns the constraints that will ensure that theobject
is contained within thecontainer
. -
alignedTopLeftPosition
public static ToExpression alignedTopLeftPosition(Line<? extends ToExpression> object, Line<? extends ToExpression> container, Alignment alignment) Returns the expression that will calculate the top-left position of theobject
such that it is aligned according toalignment
along thecontainer
. -
align
public static Constraint align(Line<? extends ToExpression> object, Line<? extends ToExpression> container, Alignment alignment) -
align
public static Constraint[] align(IRect<? extends ToExpression> object, IRect<? extends ToExpression> container, Alignment xAlignment, Alignment yAlignment) -
eqlPos
-
eqlPos
-
eqlSize
-
eqlSize
-