Package com.teamten.typeset.element
Class Columns
java.lang.Object
com.teamten.typeset.element.Element
com.teamten.typeset.element.NonDiscardableElement
com.teamten.typeset.element.Box
com.teamten.typeset.element.HBox
com.teamten.typeset.element.Columns
- All Implemented Interfaces:
Dimensions
,Flexible
A horizontal box that contains multiple vertical columns.
-
Field Summary
Fields inherited from class com.teamten.typeset.element.Element
DRAW_DEBUG
-
Method Summary
Modifier and TypeMethodDescriptionstatic Columns
create
(List<Element> elements, ColumnLayout columnLayout) fixed
(long newSize) Fix the element to the specified size.How much this element can shrink.long
getSize()
Get the size of this element in the dimension of its flexibility.How much this element can stretch.Methods inherited from class com.teamten.typeset.element.HBox
centered, equals, getElements, getOnlyString, hashCode, isEmpty, layOutHorizontally, layOutVertically, leftAligned, makeOnlyString, ofWidth, println, rightAligned, toTextString, visit
Methods inherited from class com.teamten.typeset.element.Box
drawDebugRectangle, getDepth, getDimensionString, getHeight, getShift, getWidth, toString
Methods inherited from class com.teamten.typeset.element.Element
getVerticalSize, println, shouldSkipElementAtStart, toTextString
-
Method Details
-
create
-
getSize
public long getSize()Description copied from interface:Flexible
Get the size of this element in the dimension of its flexibility. -
getStretch
Description copied from interface:Flexible
How much this element can stretch.- Specified by:
getStretch
in interfaceFlexible
-
getShrink
Description copied from interface:Flexible
How much this element can shrink. -
fixed
Description copied from interface:Flexible
Fix the element to the specified size.
-