Package com.tonic.vellum.layout
Class Split
- java.lang.Object
-
- com.tonic.vellum.Section
-
- com.tonic.vellum.layout.Split
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Splitadd(Constraint size, Section child)Appends a constrained child.static Splithorizontal(Slot... slots)Creates a horizontal split from the given slots.static Splitvertical(Slot... slots)Creates a vertical split from the given slots.
-
-
-
Method Detail
-
horizontal
public static Split horizontal(Slot... slots)
Creates a horizontal split from the given slots.- Parameters:
slots- the constrained children, in order- Returns:
- the split
-
vertical
public static Split vertical(Slot... slots)
Creates a vertical split from the given slots.- Parameters:
slots- the constrained children, in order- Returns:
- the split
-
add
public Split add(Constraint size, Section child)
Appends a constrained child. Call at construction, before the split enters the tree.- Parameters:
size- the constraint sizing the childchild- the child section- Returns:
- this Split for chaining
-
-