add
public long add(InlineSequenceElement sequenceElement)
Adding unaligned elements increases the total height and either shifts the
stored baselines upward or downwards.
If a bottom aligned element is greater than the already seen content,
extending the total height will require a shift of the computed last
baseline by the added height.
The returned position will only be valid, if the total lineheight will not
change while adding nodes.
- Parameters:
height
-
shiftDown
-
- Returns:
- the position of the top edge of the node.