Package org.refcodes.textual
Class ColumnSetupMetricsImpl
- java.lang.Object
-
- org.refcodes.textual.ColumnWidthMetricsImpl
-
- org.refcodes.textual.ColumnFormatMetricsImpl
-
- org.refcodes.textual.ColumnSetupMetricsImpl
-
- All Implemented Interfaces:
org.refcodes.graphical.VisibleAccessor
,org.refcodes.graphical.VisibleAccessor.VisibleBuilder<ColumnWidthMetrics>
,org.refcodes.graphical.VisibleAccessor.VisibleMutator
,org.refcodes.graphical.VisibleAccessor.VisibleProperty
,org.refcodes.mixin.ColumnWidthAccessor
,org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<ColumnWidthMetrics>
,org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator
,org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
,org.refcodes.mixin.NameAccessor
,org.refcodes.mixin.NameAccessor.NameBuilder<ColumnWidthMetrics>
,org.refcodes.mixin.NameAccessor.NameMutator
,org.refcodes.mixin.NameAccessor.NameProperty
,ColumnFormatMetrics
,ColumnSetupMetrics
,ColumnWidthMetrics
,HorizAlignTextModeAccessor.HorizAlignTextModeBuilder<ColumnWidthMetrics>
,HorizAlignTextModeAccessor.HorizAlignTextModeMutator
,MoreTextModeAccessor.MoreTextModeBuilder<ColumnWidthMetrics>
,MoreTextModeAccessor.MoreTextModeMutator
,SplitTextModeAccessor.SplitTextModeBuilder<ColumnWidthMetrics>
,SplitTextModeAccessor.SplitTextModeMutator
,TextFormatModeAccessor.TextFormatModeBuilder<ColumnWidthMetrics>
,TextFormatModeAccessor.TextFormatModeMutator
public class ColumnSetupMetricsImpl extends ColumnFormatMetricsImpl implements ColumnSetupMetrics
Implementation of theColumnFormatMetrics
interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ColumnWidthAccessor
org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B>>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.NameAccessor
org.refcodes.mixin.NameAccessor.NameBuilder<B extends org.refcodes.mixin.NameAccessor.NameBuilder<B>>, org.refcodes.mixin.NameAccessor.NameMutator, org.refcodes.mixin.NameAccessor.NameProperty
-
Nested classes/interfaces inherited from interface org.refcodes.graphical.VisibleAccessor
org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B extends org.refcodes.graphical.VisibleAccessor.VisibleBuilder<B>>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisibleProperty
-
-
Constructor Summary
Constructors Constructor Description ColumnSetupMetricsImpl()
Instantiates a new column setup metrics impl.ColumnSetupMetricsImpl(int aWidth, ColumnWidthType aWidthType)
Constructs a column's width, either in percent (%) or in number of chars.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
boolean
isVisible()
void
setName(java.lang.String aName)
void
setVisible(boolean isVisible)
ColumnSetupMetrics
withColumnWidth(int aColumnWidth)
-
Methods inherited from interface org.refcodes.textual.ColumnFormatMetrics
fromColumnFormatMetrics, getHeaderEscapeCode, getHeaderEscapeCodeFactory, getHeaderHorizAlignTextMode, getHeaderMoreTextMode, getHeaderSplitTextMode, getHeaderTextFormatMode, getRowEscapeCode, getRowEscapeCodeFactory, getRowHorizAlignTextMode, getRowMoreTextMode, getRowSplitTextMode, getRowTextFormatMode, setEscapeCode, setEscapeCodeFactory, setHeaderEscapeCode, setHeaderEscapeCodeFactory, setHeaderHorizAlignTextMode, setHeaderMoreTextMode, setHeaderSplitTextMode, setHeaderTextFormatMode, setHorizAlignTextMode, setMoreTextMode, setRowEscapeCode, setRowEscapeCodeFactory, setRowHorizAlignTextMode, setRowMoreTextMode, setRowSplitTextMode, setRowTextFormatMode, setSplitTextMode, setTextFormatMode, toHeaderEscapeCode, toRowEscapeCode
-
Methods inherited from class org.refcodes.textual.ColumnFormatMetricsImpl
getHeaderEscapeCode, getHeaderEscapeCodeFactory, getHeaderHorizAlignTextMode, getHeaderMoreTextMode, getHeaderSplitTextMode, getHeaderTextFormatMode, getRowEscapeCode, getRowEscapeCodeFactory, getRowHorizAlignTextMode, getRowMoreTextMode, getRowSplitTextMode, getRowTextFormatMode, setEscapeCode, setHeaderEscapeCode, setHeaderEscapeCodeFactory, setHeaderHorizAlignTextMode, setHeaderMoreTextMode, setHeaderSplitTextMode, setHeaderTextFormatMode, setMoreTextMode, setRowEscapeCode, setRowEscapeCodeFactory, setRowHorizAlignTextMode, setRowMoreTextMode, setRowSplitTextMode, setRowTextFormatMode, toHeaderEscapeCode, toRowEscapeCode
-
Methods inherited from interface org.refcodes.textual.ColumnSetupMetrics
fromColumnSetupMetrics, withColumnWidthType, withEscapeCode, withEscapeCodeFactory, withHeaderEscapeCode, withHeaderEscapeCodeFactory, withHeaderHorizAlignTextMode, withHeaderMoreTextMode, withHeaderSplitTextMode, withHeaderTextFormatMode, withHide, withHorizAlignTextMode, withMoreTextMode, withName, withRowEscapeCode, withRowEscapeCodeFactory, withRowHorizAlignTextMode, withRowMoreTextMode, withRowSplitTextMode, withRowTextFormatMode, withShow, withSplitTextMode, withTextFormatMode, withVisible
-
Methods inherited from interface org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator
setColumnWidth
-
Methods inherited from interface org.refcodes.textual.ColumnWidthMetrics
fromColumnWidthMetrics, getColumnWidthType, setColumnWidthType
-
Methods inherited from class org.refcodes.textual.ColumnWidthMetricsImpl
getColumnWidth, getColumnWidthType, setColumnWidth, setColumnWidthType, toString
-
-
-
-
Constructor Detail
-
ColumnSetupMetricsImpl
public ColumnSetupMetricsImpl()
Instantiates a new column setup metrics impl.
-
ColumnSetupMetricsImpl
public ColumnSetupMetricsImpl(int aWidth, ColumnWidthType aWidthType)
Constructs a column's width, either in percent (%) or in number of chars.- Parameters:
aWidth
- The width for the column, either in percent (%) or in number of chars, depending on the providedColumnWidthType
.aWidthType
- The type of the width being provided, either percent (%) or number of chars.
-
-
Method Detail
-
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interfaceorg.refcodes.graphical.VisibleAccessor
-
setVisible
public void setVisible(boolean isVisible)
- Specified by:
setVisible
in interfaceorg.refcodes.graphical.VisibleAccessor.VisibleMutator
-
setName
public void setName(java.lang.String aName)
- Specified by:
setName
in interfaceorg.refcodes.mixin.NameAccessor.NameMutator
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.refcodes.mixin.NameAccessor
-
withColumnWidth
public ColumnSetupMetrics withColumnWidth(int aColumnWidth)
- Specified by:
withColumnWidth
in interfaceColumnFormatMetrics
- Specified by:
withColumnWidth
in interfaceColumnSetupMetrics
- Specified by:
withColumnWidth
in interfaceorg.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<ColumnWidthMetrics>
- Overrides:
withColumnWidth
in classColumnFormatMetricsImpl
-
-