Class Beneath

All Implemented Interfaces:
Formattable, Serializable, Cloneable

public class Beneath extends Compound
Prints its sub-formats vertically aligned one beneath the other. Please note that in this case (naturally) the indents of all sub-formats will be respected, because all are printed at the start of a new line.
See Also:
  • Constructor Details

    • Beneath

      protected Beneath(List<Format> f)
      A constructor with some field values explicit, some calculated from the subformats. In contrast to the factory methods, denormalized instances may be constructed.
      Parameters:
      f - the sub-formats contained in this compound
      See Also:
    • Beneath

      protected Beneath(Format... f)
      A constructor with some field values explicit, some calculated from the subformats. In contrast to the factory methods, denormalized instances may be constructed.
      Parameters:
      f - the sub-formats contained in this compound
      See Also:
    • Beneath

      protected Beneath(int i, int a, boolean m, boolean g, int ind, List<Format> f)
      The constructor which sets all field values explicitly. Consistency of the attributes must be realized by the caller. In contrast to the factory methods, denormalized instances may be constructed.
      Parameters:
      i - the minimal width of the format
      a - the maximal width of the format
      m - whether the format will print to multiple lines anyhow
      g - whether the format does not contain any variable
      ind - the indentation value of this format
      f - the sub-formats contained in this compound
      Throws:
      IllegalArgumentException - if ident value not valid, see Format.checkValidIndent(int)
  • Method Details

    • constructor

      public CompoundConstructor constructor()
      Description copied from class: Compound
      Returns the reification of the constructor of this instance. That enum type has "apply()" methods which generate a corresponding instance.
      Specified by:
      constructor in class Compound
      Returns:
      the reification of the constructor of this instance.
    • doprint

      protected void doprint(FormatPrinter v)
      Description copied from class: Format
      Over-ridden by all sub-classes of Format, for performing the print operations.
      Specified by:
      doprint in class Format
      Parameters:
      v - realizes the dynamic context for printing