Class ColumnVerticalList

java.lang.Object
com.teamten.typeset.ElementList
com.teamten.typeset.ColumnVerticalList
All Implemented Interfaces:
ElementSink

public class ColumnVerticalList extends ElementList
A vertical list of elements that will get broken into columns.
  • Constructor Details

    • ColumnVerticalList

      public ColumnVerticalList()
  • Method Details

    • makeOutputBox

      protected Box makeOutputBox(List<Element> elements, int counter, long shift)
      Description copied from class: ElementList
      Generate the Box that will be sent to the output.
      Specified by:
      makeOutputBox in class ElementList
      Parameters:
      elements - the elements of the box.
      counter - the number of the box, starting from 1. For horizontal lists this is the line number of the paragraph. For vertical lists this is the physical page number.
      shift - how much to shift the box in the final layout (up or to the right).
    • getElementSize

      protected long getElementSize(Element element)
      Description copied from class: ElementList
      Return the size (width for horizontal lists, height + depth for vertical lists) of the element.
      Specified by:
      getElementSize in class ElementList
    • getElementSublist

      protected List<Element> getElementSublist(ElementList.Breakpoint beginBreakpoint, ElementList.Breakpoint endBreakpoint)
      Description copied from class: ElementList
      Return the list of elements on this line or page. Can process elements to make them more appropriate to this particular range.
      Specified by:
      getElementSublist in class ElementList
    • formatIntoColumns

      public List<Element> formatIntoColumns(@NotNull @NotNull ColumnLayout columnLayout)
      Takes the list of elements in the vertical list and breaks them into equal-sized columns.
      Returns:
      a list of columns (VBox) separated by margins (Glue).
    • getChunkExtraIncrement

      protected int getChunkExtraIncrement(Chunk chunk)
      Description copied from class: ElementList
      When generating breakpoints, if there are images and other things in a chunk, we must adjust the counter if those images will take up space (such as a space).
      Specified by:
      getChunkExtraIncrement in class ElementList