Line Metrics
Constructors
Properties
The final computed ascent for the line. This can be impacted by the strut, height, scaling, as well as outlying runs that are very tall. The top edge is getBaseline() - getAscent()
and the bottom edge is getBaseline() + getDescent()
. Ascent and descent are provided as positive numbers. These values are the cumulative metrics for the entire line.
The final computed descent for the line. This can be impacted by the strut, height, scaling, as well as outlying runs that are very tall. The top edge is getBaseline() - getAscent()
and the bottom edge is getBaseline() + getDescent()
. Ascent and descent are provided as positive numbers. These values are the cumulative metrics for the entire line.
The index in the text buffer the line ends.
The index in the text buffer the line begins.
The height of the current line, equals to Math.round(getAscent() + getDescent())
.
Zero indexed line number
The index in the text buffer the line begins.
The final computed descent for the line. This can be impacted by the strut, height, scaling, as well as outlying runs that are very tall. The top edge is getBaseline() - getAscent()
and the bottom edge is getBaseline() + getDescent()
. Ascent and descent are provided as positive numbers. These values are the cumulative metrics for the entire line.