public class ColumnWidthMetricsImpl extends Object implements ColumnWidthMetrics
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() |
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) |
String |
toString() |
ColumnWidthMetrics |
withColumnWidth(int aColumnWidth) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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()
ColumnWidthMetrics
getColumnWidthType
in interface ColumnWidthMetrics
public void setColumnWidthType(ColumnWidthType aColumnWidthType)
setColumnWidthType
in interface ColumnWidthMetrics
Copyright © 2016. All rights reserved.