public class ColumnFormatMetricsImpl extends ColumnWidthMetricsImpl implements ColumnFormatMetrics
ColumnFormatMetrics
interface.org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B>>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<B extends HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<B>>, HorizAlignTextModeAccessor.HorizAlignTextModeMutator, HorizAlignTextModeAccessor.HorizAlignTextModeProperty
Constructor and Description |
---|
ColumnFormatMetricsImpl() |
ColumnFormatMetricsImpl(int aWidth,
ColumnWidthType aWidthType)
Constructs a column's width, either in percent (%) or in number of chars.
|
ColumnFormatMetricsImpl(int aWidth,
ColumnWidthType aWidthType,
HorizAlignTextMode aHorizAlignTextMode)
Constructs a column's width, either in percent (%) or in number of chars.
|
ColumnFormatMetricsImpl(int aWidth,
ColumnWidthType aWidthType,
HorizAlignTextMode aHorizAlignTextMode,
String aAnsiEscCode)
Constructs a column's width, either in percent (%) or in number of chars.
|
Modifier and Type | Method and Description |
---|---|
String |
getEscCode()
Retrieves the (ANSI) escape code of the column.
|
HorizAlignTextMode |
getHorizAlignTextMode()
Retrieves the horizontal align text mode from the horizontal align text
mode property.
|
void |
setEscCode(String aAnsiEscCode)
Sets the (ANSI) escape code for the column.
|
void |
setHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets the horizontal align text mode for the horizontal align text
mode property.
|
getColumnWidth, getColumnWidthType, setColumnWidth, setColumnWidthType, toString, withColumnWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
withColumnWidthType, withEscCode, withHorizAlignTextMode
getColumnWidthType, setColumnWidthType
public ColumnFormatMetricsImpl()
public ColumnFormatMetricsImpl(int aWidth, ColumnWidthType aWidthType)
aWidth
- The width for the column, either in percent (%) or in
number of chars, depending on the provided ColumnWidthType
.aWidthType
- The type of the width being provided, either percent
(%) or number of chars.public ColumnFormatMetricsImpl(int aWidth, ColumnWidthType aWidthType, HorizAlignTextMode aHorizAlignTextMode, String aAnsiEscCode)
aWidth
- The width for the column, either in percent (%) or in
number of chars, depending on the provided ColumnWidthType
.aWidthType
- The type of the width being provided, either percent
(%) or number of chars.aHorizAlignTextMode
- The text align mode defined for the column.aAnsiEscCode
- The (ANSI) escape code to be set for the column.public ColumnFormatMetricsImpl(int aWidth, ColumnWidthType aWidthType, HorizAlignTextMode aHorizAlignTextMode)
aWidth
- The width for the column, either in percent (%) or in
number of chars, depending on the provided ColumnWidthType
.aWidthType
- The type of the width being provided, either percent
(%) or number of chars.aHorizAlignTextMode
- The text align mode defined for the column.public HorizAlignTextMode getHorizAlignTextMode()
HorizAlignTextModeAccessor
getHorizAlignTextMode
in interface HorizAlignTextModeAccessor
public void setHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
HorizAlignTextModeAccessor.HorizAlignTextModeMutator
setHorizAlignTextMode
in interface HorizAlignTextModeAccessor.HorizAlignTextModeMutator
aHorizAlignTextMode
- The horizontal align text mode to be
stored by the font style property.public void setEscCode(String aAnsiEscCode)
ColumnFormatMetrics
setEscCode
in interface ColumnFormatMetrics
aAnsiEscCode
- The (ANSI) escape code for the column.public String getEscCode()
ColumnFormatMetrics
getEscCode
in interface ColumnFormatMetrics
Copyright © 2017. All rights reserved.