Layout:: Line:: HeightCalculator
Helper class for calculating the needed vertical dimensions of a line.
Public Class Methods
Creates a new calculator with the given initial items.
Public Instance Methods
Adds a new item to be considered when calculating the various dimensions.
Resets the calculation.
Returns the result of the calculations, the array [y_min, y_max, text_y_min, text_y_max].
Line for their meaning.
Returns the height of the line as if
item was part of it but doesn’t change the internal state.