Package com.teamten.typeset
Class OutputShape
java.lang.Object
com.teamten.typeset.OutputShape
Records the shape of the output of this element list. This is typically used to give paragraphs
heterogeneous line widths (e.g., hanging indents).
-
Method Summary
Modifier and TypeMethodDescriptionstatic OutputShape
fixed
(long size) Homogeneous output shape with no indent.long
getIndent
(int counter) Get the indent for the specified (1-based) line or page.long
getSize
(int counter) Get the size for the specified (1-based) line or page.static OutputShape
singleLine
(long size, long firstIndent, long subsequentIndent) Single line of indent.
-
Method Details
-
fixed
Homogeneous output shape with no indent. -
singleLine
Single line of indent. -
getSize
public long getSize(int counter) Get the size for the specified (1-based) line or page. -
getIndent
public long getIndent(int counter) Get the indent for the specified (1-based) line or page.
-