public interface ColumnFormatMetrics extends ColumnWidthMetrics, SplitTextModeAccessor.SplitTextModeMutator, SplitTextModeAccessor.SplitTextModeBuilder<ColumnFormatMetrics>, TextFormatModeAccessor.TextFormatModeMutator, TextFormatModeAccessor.TextFormatModeBuilder<ColumnFormatMetrics>, HorizAlignTextModeAccessor.HorizAlignTextModeMutator, HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<ColumnFormatMetrics>, MoreTextModeAccessor.MoreTextModeMutator, MoreTextModeAccessor.MoreTextModeBuilder<ColumnFormatMetrics>
org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B>>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
Modifier and Type | Method and Description |
---|---|
default void |
fromColumnFormatMetrics(ColumnFormatMetrics aColumnFormatMetrics)
From column format metrics.
|
String |
getHeaderEscapeCode()
Returns the ANSI Escape-Code for the header.
|
EscapeCodeFactory |
getHeaderEscapeCodeFactory()
Gets the ANSI Escape-Code factory for the header.
|
HorizAlignTextMode |
getHeaderHorizAlignTextMode()
Gets the alignment mode for the header.
|
MoreTextMode |
getHeaderMoreTextMode()
Gets the alignment mode for the header.
|
SplitTextMode |
getHeaderSplitTextMode()
Returns the
SplitTextMode for the header. |
TextFormatMode |
getHeaderTextFormatMode()
Returns the
TextFormatMode for the header. |
String |
getRowEscapeCode()
Returns the ANSI Escape-Code for the rows and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
EscapeCodeFactory |
getRowEscapeCodeFactory()
Gets the ANSI Escape-Code factory for the row.
|
HorizAlignTextMode |
getRowHorizAlignTextMode()
Gets the alignment mode for the row.
|
MoreTextMode |
getRowMoreTextMode()
Gets the alignment mode for the row.
|
SplitTextMode |
getRowSplitTextMode()
Returns the
SplitTextMode for the row. |
TextFormatMode |
getRowTextFormatMode()
Returns the
TextFormatMode for the row. |
default void |
setEscapeCode(String aEscapeCode)
Sets an ANSI Escape-Code for the header and the rows.
|
default void |
setEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
Sets an ANSI Escape-Code factory for the header and the rows.
|
void |
setHeaderEscapeCode(String aEscapeCode)
Sets an ANSI Escape-Code for the header.
|
void |
setHeaderEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
Sets an ANSI Escape-Code factory for the header.
|
void |
setHeaderHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets an alignment mode for the header.
|
void |
setHeaderMoreTextMode(MoreTextMode aMoreTextMode)
Sets a more-text mode for the header.
|
void |
setHeaderSplitTextMode(SplitTextMode aSplitTextMode)
Sets the
SplitTextMode for the header. |
void |
setHeaderTextFormatMode(TextFormatMode aTextFormatMode)
Sets the
TextFormatMode for the header. |
default void |
setHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets the horizontal align text mode for the horizontal align text
mode property.
|
default void |
setMoreTextMode(MoreTextMode aMoreTextMode)
Sets the more-text mode for the more-text mode property.
|
void |
setRowEscapeCode(String aEscapeCode)
Sets an ANSI Escape-Code for the rows and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
void |
setRowEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
Sets an ANSI Escape-Code factory for the row.
|
void |
setRowHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets an alignment mode for the row.
|
void |
setRowMoreTextMode(MoreTextMode aMoreTextMode)
Sets a more-text mode for the row.
|
void |
setRowSplitTextMode(SplitTextMode aSplitTextMode)
Sets the
SplitTextMode for the row. |
void |
setRowTextFormatMode(TextFormatMode aTextFormatMode)
Sets the
TextFormatMode for the row. |
default void |
setSplitTextMode(SplitTextMode aSplitTextMode)
Sets the split-text mode for the split-text mode property.
|
default void |
setTextFormatMode(TextFormatMode aTextFormatMode)
Sets the text-format mode for the text-format mode property.
|
String |
toHeaderEscapeCode(Object aIdentifier)
Determines the ANSI Escape-Code by evaluating the provided ID: If an
EscapeCodeFactory has been set via
setEscapeCodeFactory(EscapeCodeFactory) and the factory returns
a value different to null, then this value is returned. |
String |
toRowEscapeCode(Object aIdentifier)
Determines the ANSI Escape-Code by evaluating the provided ID: If an
EscapeCodeFactory has been set via
setEscapeCodeFactory(EscapeCodeFactory) and the factory returns
a value different to null, then this value is returned. |
default ColumnFormatMetrics |
withColumnWidth(int aColumnWidth) |
default ColumnFormatMetrics |
withColumnWidthType(ColumnWidthType aColumnWidthType)
With column width type.
|
default ColumnFormatMetrics |
withEscapeCode(String aEscapeCode)
Sets an ANSI Escape-Code for the header and the rows and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
Sets an ANSI Escape-Code factory for the header and the rows and returns
this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withHeaderEscapeCode(String aEscapeCode)
Sets an ANSI Escape-Code for the header and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withHeaderEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
Sets an ANSI Escape-Code factory for the header and the rows and returns
this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withHeaderHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets an alignment mode for the header and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withHeaderMoreTextMode(MoreTextMode aMoreTextMode)
Sets a more-text mode for the header and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withHeaderSplitTextMode(SplitTextMode aSplitTextMode)
Sets the
SplitTextMode for the header and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withHeaderTextFormatMode(TextFormatMode aTextFormatMode)
Sets the
TextFormatMode for the header and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets the horizontal align text mode for the horizontal align text
mode property.
|
default ColumnFormatMetrics |
withMoreTextMode(MoreTextMode aMoreTextMode)
Sets the more-text mode for the more-text mode property.
|
default ColumnFormatMetrics |
withRowEscapeCode(String aEscapeCode)
Sets an ANSI Escape-Code for the rows and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withRowEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
Sets an ANSI Escape-Code factory for the row and the rows and returns
this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withRowHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets an alignment mode for the row and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withRowMoreTextMode(MoreTextMode aMoreTextMode)
Sets a more-text mode for the row and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withRowSplitTextMode(SplitTextMode aSplitTextMode)
Sets the
SplitTextMode for the row and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withRowTextFormatMode(TextFormatMode aTextFormatMode)
Sets the
TextFormatMode for the row and returns this
ColumnFormatMetrics instance as of the Builder-Pattern. |
default ColumnFormatMetrics |
withSplitTextMode(SplitTextMode aSplitTextMode)
Sets the split-text mode for the split-text mode property.
|
default ColumnFormatMetrics |
withTextFormatMode(TextFormatMode aTextFormatMode)
Sets the text-format mode for the text-format mode property.
|
fromColumnWidthMetrics, getColumnWidthType, setColumnWidthType
default ColumnFormatMetrics withEscapeCode(String aEscapeCode)
ColumnFormatMetrics
instance as of the Builder-Pattern. In case
an ANSI Escape-Code is set, then the ANSI Escape-Code is prepended and an
ANSI Reset-Code is appended to the according text being printed.aEscapeCode
- The String
to be used for ANSI escaping.ColumnFormatMetrics
instance to continue
configuration.default ColumnFormatMetrics withEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
ColumnFormatMetrics
instance as of the Builder-Pattern. In
case an ANSI Escape-Code has been determined by the
EscapeCodeFactory
, then the ANSI Escape-Code is prepended and an
ANSI Reset-Code is appended to the according text being printed.aEscapeCodeFactory
- The EscapeCodeFactory
to be used for
determining ANSI escaping.ColumnFormatMetrics
instance to continue
configuration.default void setEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
EscapeCodeFactory
,
then the ANSI Escape-Code is prepended and an ANSI Reset-Code is appended
to the according text being printed.aEscapeCodeFactory
- The EscapeCodeFactory
to be used for
determining ANSI escaping.default ColumnFormatMetrics withHeaderEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
ColumnFormatMetrics
instance as of the Builder-Pattern. In
case an ANSI Escape-Code has been determined by the
EscapeCodeFactory
, then the ANSI Escape-Code is prepended and an
ANSI Reset-Code is appended to the according text being printed.aEscapeCodeFactory
- The EscapeCodeFactory
to be used for
determining ANSI escaping.void setHeaderEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
aEscapeCodeFactory
- The EscapeCodeFactory
to be used for
determining ANSI escaping.EscapeCodeFactory getHeaderEscapeCodeFactory()
EscapeCodeFactory
to be used for determining ANSI
escaping.String toHeaderEscapeCode(Object aIdentifier)
EscapeCodeFactory
has been set via
setEscapeCodeFactory(EscapeCodeFactory)
and the factory returns
a value different to null, then this value is returned. Else the value
returned by getHeaderEscapeCode()
is returned as fallback.aIdentifier
- The ID for which to lookup an Escape-Code.default ColumnFormatMetrics withRowEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
ColumnFormatMetrics
instance as of the Builder-Pattern. In
case an ANSI Escape-Code has been determined by the
EscapeCodeFactory
, then the ANSI Escape-Code is prepended and an
ANSI Reset-Code is appended to the according text being printed.aEscapeCodeFactory
- The EscapeCodeFactory
to be used for
determining ANSI escaping.void setRowEscapeCodeFactory(EscapeCodeFactory aEscapeCodeFactory)
aEscapeCodeFactory
- The EscapeCodeFactory
to be used for
determining ANSI escaping. configuration.EscapeCodeFactory getRowEscapeCodeFactory()
EscapeCodeFactory
to be used for determining ANSI
escaping.String toRowEscapeCode(Object aIdentifier)
EscapeCodeFactory
has been set via
setEscapeCodeFactory(EscapeCodeFactory)
and the factory returns
a value different to null, then this value is returned. Else the value
returned by getRowEscapeCode()
is returned as fallback.aIdentifier
- The ID for which to lookup an Escape-Code.default void setEscapeCode(String aEscapeCode)
aEscapeCode
- The String
to be used for ANSI escaping.default ColumnFormatMetrics withHeaderEscapeCode(String aEscapeCode)
ColumnFormatMetrics
instance as of the Builder-Pattern. In case
an ANSI Escape-Code is set, then the ANSI Escape-Code is prepended and an
ANSI Reset-Code is appended to the according text being printed.aEscapeCode
- The String
to be used for ANSI escaping.ColumnFormatMetrics
instance to continue
configuration.void setHeaderEscapeCode(String aEscapeCode)
aEscapeCode
- The String
to be used for ANSI escaping.String getHeaderEscapeCode()
String
to be used for ANSI escaping.default ColumnFormatMetrics withRowEscapeCode(String aEscapeCode)
ColumnFormatMetrics
instance as of the Builder-Pattern. The
latest ANSI Escape-Code being set wins.aEscapeCode
- The String
to be used for ANSI escaping.ColumnFormatMetrics
instance to continue
configuration.void setRowEscapeCode(String aEscapeCode)
ColumnFormatMetrics
instance as of the Builder-Pattern. The
latest ANSI Escape-Code being set wins.aEscapeCode
- The String
to be used for ANSI escaping.String getRowEscapeCode()
ColumnFormatMetrics
instance as of the Builder-Pattern. The
latest ANSI Escape-Code being set wins.String
to be used for ANSI escaping.default ColumnFormatMetrics withColumnWidth(int aColumnWidth)
withColumnWidth
in interface org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<ColumnWidthMetrics>
default ColumnFormatMetrics withColumnWidthType(ColumnWidthType aColumnWidthType)
withColumnWidthType
in interface ColumnWidthMetrics
aColumnWidthType
- the a column width typedefault ColumnFormatMetrics withHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
withHorizAlignTextMode
in interface HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<ColumnFormatMetrics>
aHorizAlignTextMode
- The horizontal align text mode to be
stored by the font style property.default void setHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
setHorizAlignTextMode
in interface HorizAlignTextModeAccessor.HorizAlignTextModeMutator
aHorizAlignTextMode
- The horizontal align text mode to be
stored by the font style property.default ColumnFormatMetrics withHeaderHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
ColumnFormatMetrics
instance as of the Builder-Pattern.aHorizAlignTextMode
- The HorizAlignTextMode
to be used for
aligning the text.TableBuilder
instance to continue configuration.void setHeaderHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
aHorizAlignTextMode
- The HorizAlignTextMode
to be used for
aligning the text.HorizAlignTextMode getHeaderHorizAlignTextMode()
HorizAlignTextMode
to be used for aligning the text.default ColumnFormatMetrics withRowHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
ColumnFormatMetrics
instance as of the Builder-Pattern.aHorizAlignTextMode
- The HorizAlignTextMode
to be used for
aligning the text.TableBuilder
instance to continue configuration.void setRowHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
aHorizAlignTextMode
- The HorizAlignTextMode
to be used for
aligning the text.HorizAlignTextMode getRowHorizAlignTextMode()
HorizAlignTextMode
to be used for aligning the text.default ColumnFormatMetrics withMoreTextMode(MoreTextMode aMoreTextMode)
withMoreTextMode
in interface MoreTextModeAccessor.MoreTextModeBuilder<ColumnFormatMetrics>
aMoreTextMode
- The more-text mode to be stored by the more-text
mode property.default void setMoreTextMode(MoreTextMode aMoreTextMode)
setMoreTextMode
in interface MoreTextModeAccessor.MoreTextModeMutator
aMoreTextMode
- The more-text mode to be stored by the more-text
mode property.default ColumnFormatMetrics withHeaderMoreTextMode(MoreTextMode aMoreTextMode)
ColumnFormatMetrics
instance as of the Builder-Pattern.aMoreTextMode
- The MoreTextMode
to be used for truncating
the text.TableBuilder
instance to continue configuration.void setHeaderMoreTextMode(MoreTextMode aMoreTextMode)
aMoreTextMode
- The MoreTextMode
to be used for truncating
the text.MoreTextMode getHeaderMoreTextMode()
MoreTextMode
to be used for truncating the text.default ColumnFormatMetrics withRowMoreTextMode(MoreTextMode aMoreTextMode)
ColumnFormatMetrics
instance as of the Builder-Pattern.aMoreTextMode
- The MoreTextMode
to be used for truncating
the text.TableBuilder
instance to continue configuration.void setRowMoreTextMode(MoreTextMode aMoreTextMode)
aMoreTextMode
- The MoreTextMode
to be used for truncating
the text.MoreTextMode getRowMoreTextMode()
MoreTextMode
to be used for truncating the text.default ColumnFormatMetrics withTextFormatMode(TextFormatMode aTextFormatMode)
withTextFormatMode
in interface TextFormatModeAccessor.TextFormatModeBuilder<ColumnFormatMetrics>
aTextFormatMode
- The text-format mode to be stored by the
text-format mode property.default void setTextFormatMode(TextFormatMode aTextFormatMode)
setTextFormatMode
in interface TextFormatModeAccessor.TextFormatModeMutator
aTextFormatMode
- The text-format mode to be stored by the
text-format mode property.default ColumnFormatMetrics withSplitTextMode(SplitTextMode aSplitTextMode)
withSplitTextMode
in interface SplitTextModeAccessor.SplitTextModeBuilder<ColumnFormatMetrics>
aSplitTextMode
- The split-text mode to be stored by the
split-text mode property.default void setSplitTextMode(SplitTextMode aSplitTextMode)
SplitTextModeAccessor.SplitTextModeMutator
setSplitTextMode
in interface SplitTextModeAccessor.SplitTextModeMutator
aSplitTextMode
- The split-text mode to be stored by the
split-text mode property.void setHeaderSplitTextMode(SplitTextMode aSplitTextMode)
SplitTextMode
for the header.aSplitTextMode
- The SplitTextMode
to be set for the header;SplitTextMode getHeaderSplitTextMode()
SplitTextMode
for the header.SplitTextMode
to be set for the header;default ColumnFormatMetrics withHeaderSplitTextMode(SplitTextMode aSplitTextMode)
SplitTextMode
for the header and returns this
ColumnFormatMetrics
instance as of the Builder-Pattern.aSplitTextMode
- The SplitTextMode
to be set for the header;TableBuilder
instance to continue configuration.void setRowSplitTextMode(SplitTextMode aSplitTextMode)
SplitTextMode
for the row.aSplitTextMode
- The SplitTextMode
to be set for the row;SplitTextMode getRowSplitTextMode()
SplitTextMode
for the row.SplitTextMode
to be set for the row;default ColumnFormatMetrics withRowSplitTextMode(SplitTextMode aSplitTextMode)
SplitTextMode
for the row and returns this
ColumnFormatMetrics
instance as of the Builder-Pattern.aSplitTextMode
- The SplitTextMode
to be set for the row;TableBuilder
instance to continue configuration.void setHeaderTextFormatMode(TextFormatMode aTextFormatMode)
TextFormatMode
for the header.aTextFormatMode
- The TextFormatMode
to be set for the
header;TextFormatMode getHeaderTextFormatMode()
TextFormatMode
for the header.TextFormatMode
to be set for the header;default ColumnFormatMetrics withHeaderTextFormatMode(TextFormatMode aTextFormatMode)
TextFormatMode
for the header and returns this
ColumnFormatMetrics
instance as of the Builder-Pattern.aTextFormatMode
- The TextFormatMode
to be set for the
header;TableBuilder
instance to continue configuration.void setRowTextFormatMode(TextFormatMode aTextFormatMode)
TextFormatMode
for the row.aTextFormatMode
- The TextFormatMode
to be set for the row;TextFormatMode getRowTextFormatMode()
TextFormatMode
for the row.TextFormatMode
to be set for the row;default ColumnFormatMetrics withRowTextFormatMode(TextFormatMode aTextFormatMode)
TextFormatMode
for the row and returns this
ColumnFormatMetrics
instance as of the Builder-Pattern.aTextFormatMode
- The TextFormatMode
to be set for the row;TableBuilder
instance to continue configuration.default void fromColumnFormatMetrics(ColumnFormatMetrics aColumnFormatMetrics)
aColumnFormatMetrics
- the a column format metricsCopyright © 2017. All rights reserved.