Package eu.bandm.tools.format
Class Tabular
java.lang.Object
eu.bandm.tools.format.Format
eu.bandm.tools.format.Compound
eu.bandm.tools.format.Tabular
- All Implemented Interfaces:
Formattable,Serializable,Cloneable
Realizes one line of a table, and prints sub-formats starting in
the relative column indicated by the value of their
Compound.indent(int).
Whenever this would result in overlap or adjacency, then a newline
is inserted.- See Also:
-
Field Summary
Fields inherited from class eu.bandm.tools.format.Format
comma, DEFAULT_WIDTH, dot, empty, indent, INDENT_NOT_SET, LENGTH_PREFIX, space -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThe constructor which sets all field values explicitly.protectedA constructor with some field values explicit, some calculated from the subformats.protectedConstructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the reification of the constructor of this instance.protected voidOver-ridden by all sub-classes of Format, for performing the print operations.Creates a new instance of the same class as this instance, or an optimized variant.Methods inherited from class eu.bandm.tools.format.Compound
debugPrefix, eval, getSubs, indentMethods inherited from class eu.bandm.tools.format.Format
annotated, append, append, apply, apply, apply, apply, applyPartial, applyTo, applyTo, beneath, beneath, beside, beside, block, block, checkValidIndent, comment, comment, comment, comment, format, getIndent, ground, indentIsSet, isAlwaysMultiline, isSpace, line, line, literal, markup, markupLeft, markupRight, maxOfMins, maxWidth, minWidth, of, printFormat, printFormat, printNonFormat, prior, prior, properties, server, showLn, space, subst, subst, subst, tabular, tabular, toObjString, toString, toString, variable, variable
-
Constructor Details
-
Tabular
Constructor. In contrast to the factory methods, denormalized instances be constructed.- Parameters:
f- the formats forming the tabular line.
-
Tabular
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 formats forming the tabular line.
-
Tabular
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- minimal widtha- maximal widthm- is always multiLineg- is groundind- indentationf- the formats forming the tabular line.- Throws:
IllegalArgumentException- if ident value not valid, seeFormat.checkValidIndent(int)
-
-
Method Details
-
constructor
Description copied from class:CompoundReturns the reification of the constructor of this instance. That enum type has "apply()" methods which generate a corresponding instance.- Specified by:
constructorin classCompound- Returns:
- the reification of the constructor of this instance.
-
mutate
Description copied from class:CompoundCreates a new instance of the same class as this instance, or an optimized variant. which contains as subformats all formats in a modified list. The list is modified arbitrarily in an "imperative" way, i.e. it can be altered or extended or totally cleared.The resulting list is fed into a factory method; therefore optimization applies and the returned type can be the singleton contents or an instance of Empty.
-
doprint
Description copied from class:FormatOver-ridden by all sub-classes of Format, for performing the print operations.
-