Package com.pdfjet
Interface BaselineDrawable
- All Superinterfaces:
Drawable
- All Known Implementing Classes:
CompositeTextLine,TextLine
A drawable whose location is the baseline of its text, not the top left
corner of a box: a line of text, such as TextLine and CompositeTextLine.
A Cell draws such a drawable where it draws its own text, on the baseline
that its vertical alignment asks for, and makes room for the ascent and the
descent below. A drawable that is not one of these is placed by its top left
corner, at the padding of the cell.
-
Method Summary
Modifier and TypeMethodDescriptionfloatReturns how far above its baseline this drawable reaches.floatReturns how far below its baseline this drawable reaches.floatgetWidth()Returns the width of this drawable.Methods inherited from interface com.pdfjet.Drawable
drawOn, setLocation
-
Method Details
-
getAscent
float getAscent()Returns how far above its baseline this drawable reaches.- Returns:
- the ascent, in points.
-
getDescent
float getDescent()Returns how far below its baseline this drawable reaches.- Returns:
- the descent, in points.
-
getWidth
float getWidth()Returns the width of this drawable.- Returns:
- the width, in points.
-