Package com.tonic.vellum.layout
Class Slot
- java.lang.Object
-
- com.tonic.vellum.layout.Slot
-
public final class Slot extends java.lang.ObjectA typed (constraint, section) pair for the varargs Split constructors.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Constraintconstraint()static Slotof(Constraint constraint, Section section)Pairs a constraint with the section it sizes.Sectionsection()
-
-
-
Method Detail
-
of
public static Slot of(Constraint constraint, Section section)
Pairs a constraint with the section it sizes.- Parameters:
constraint- the sizing constraintsection- the section to size- Returns:
- the slot
-
constraint
public Constraint constraint()
- Returns:
- the sizing constraint
-
section
public Section section()
- Returns:
- the section
-
-