public interface SplittableRenderNode
RenderableText
Modifier and Type | Method and Description |
---|---|
long |
getMinimumWidth()
Returns the component's minimum width.
|
RenderNode[] |
splitBy(long widthOfFirst)
Splits the component into two children.
|
RenderNode[] splitBy(long widthOfFirst)
widthOfFirst
. If the separation is
impossible null
is returned.
Note, there is no guarantee that the first kid has width equal to widthOfFirst
.widthOfFirst
- the maximum width of the first componentnull
IllegalStateException
- if widthOfFirst >= getMinimumWidth()
long getMinimumWidth()