Class OutputShape

java.lang.Object
com.teamten.typeset.OutputShape

public class OutputShape extends Object
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 Details

    • fixed

      public static OutputShape fixed(long size)
      Homogeneous output shape with no indent.
    • singleLine

      public static OutputShape singleLine(long size, long firstIndent, long subsequentIndent)
      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.