Class Format.Line

All Implemented Interfaces:
Formattable, Serializable, Cloneable
Enclosing class:
Format

public static class Format.Line extends Format.Compound
Prints all sub-formats in the same horizional line if this is possible within the page width, otherwise it prints all sub-formats in one vertical line.
See Also:
  • Constructor Details

    • Line

      protected Line(List<Format> f)
      Constructor used by the factory methods.
    • Line

      protected Line(int i, int a, boolean m, boolean g, int ind, List<Format> f)
      Constructor used only internally by the cloning methods.
  • Method Details

    • constructor

      public CompoundConstructor constructor()
    • mutate

      public Format.Line mutate(Consumer<List<Format>> mapSubs)
      Description copied from class: Format.Compound
      Creates a new instance of the same class as this, with sub-formats altered by the given consumer function.
      Specified by:
      mutate in class Format.Compound
    • doprint

      protected void doprint(Format.FormatPrinter v)
      Execute the printing. When we arrive here, the newline/indentation related to this Compound format has already been done, and v.pos points to the real start of the content.
      Specified by:
      doprint in class Format