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 Columnscreate(List<Element> elements, ColumnLayout columnLayout) fixed(long newSize) Fix the element to the specified size.How much this element can shrink.longgetSize()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, visitMethods inherited from class com.teamten.typeset.element.Box
drawDebugRectangle, getDepth, getDimensionString, getHeight, getShift, getWidth, toStringMethods inherited from class com.teamten.typeset.element.Element
getVerticalSize, println, shouldSkipElementAtStart, toTextString
-
Method Details
-
create
-
getSize
public long getSize()Description copied from interface:FlexibleGet the size of this element in the dimension of its flexibility. -
getStretch
Description copied from interface:FlexibleHow much this element can stretch.- Specified by:
getStretchin interfaceFlexible
-
getShrink
Description copied from interface:FlexibleHow much this element can shrink. -
fixed
Description copied from interface:FlexibleFix the element to the specified size.
-