public class ColumnWidthMetricsImpl extends Object implements ColumnWidthMetrics
ColumnWidthMetrics
interface.org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B>>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
Constructor and Description |
---|
ColumnWidthMetricsImpl()
Instantiates a new column width metrics impl.
|
ColumnWidthMetricsImpl(int aWidth,
ColumnWidthType aWidthType)
Constructs a column's width, either in percent (%) or in number of chars.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnWidth() |
ColumnWidthType |
getColumnWidthType()
The type of the width being provided, either percent (%) or number of
chars.
|
void |
setColumnWidth(int aColumnWidth) |
void |
setColumnWidthType(ColumnWidthType aColumnWidthType)
Sets the column width type.
|
String |
toString() |
ColumnWidthMetrics |
withColumnWidth(int aColumnWidth) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromColumnWidthMetrics, withColumnWidthType
public ColumnWidthMetricsImpl()
public ColumnWidthMetricsImpl(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 int getColumnWidth()
getColumnWidth
in interface org.refcodes.mixin.ColumnWidthAccessor
public void setColumnWidth(int aColumnWidth)
setColumnWidth
in interface org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator
public ColumnWidthMetrics withColumnWidth(int aColumnWidth)
withColumnWidth
in interface org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<ColumnWidthMetrics>
public ColumnWidthType getColumnWidthType()
getColumnWidthType
in interface ColumnWidthMetrics
public void setColumnWidthType(ColumnWidthType aColumnWidthType)
setColumnWidthType
in interface ColumnWidthMetrics
aColumnWidthType
- the new column width typeCopyright © 2018. All rights reserved.