Class Format.Tabular

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

public static class Format.Tabular extends Format.Compound
Realizes one(1) line of a table, and prints sub-formats starting in the column indicated by the value of their Format.Compound.indent(int). Whenever this would result in overlap or adjacency, then a newline is inserted.

ATTENTION an indent of zero(0) often leads to an initial line-feed, when a Tabular starts in the middle of a line. This is normally not intended, but canonical, and can be avoided by using one(1) as the minimal indentation.

See Also:
  • Constructor Details

    • Tabular

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

      protected Tabular(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()
      Unsupported Operation. Tabular is a Compound, but it is special as it does not operate on arbitrary lists (only on those with indents used as tab columngs) and thus has no corresponding CompoundConstructor.
      Specified by:
      constructor in class Format.Compound
    • mutate

      public Format.Tabular 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)
      Description copied from class: Format
      Over-ridden by all sub-classes of Format, for performing the adquate print operations. To be printed is the raison d'ĂȘtre of Format objects. These methods do not use the Visitor/Matcher framework, but direct method invocation and basic method dispatch for descending to child nodes.
      Specified by:
      doprint in class Format