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 OutputShapefixed(long size) Homogeneous output shape with no indent.longgetIndent(int counter) Get the indent for the specified (1-based) line or page.longgetSize(int counter) Get the size for the specified (1-based) line or page.static OutputShapesingleLine(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.
-