net.sf.mmm.util.text.base
Class DefaultLineWrapper.AutoAdjustInfo
java.lang.Object
net.sf.mmm.util.text.base.DefaultLineWrapper.AutoAdjustInfo
- All Implemented Interfaces:
- Comparable<DefaultLineWrapper.AutoAdjustInfo>
- Enclosing class:
- DefaultLineWrapper
private static final class DefaultLineWrapper.AutoAdjustInfo
- extends Object
- implements Comparable<DefaultLineWrapper.AutoAdjustInfo>
- See Also:
DefaultLineWrapper.autoAdjustWidthOfColumns(ColumnState[],
TextTableInfo)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
columnState
private final DefaultLineWrapper.ColumnState columnState
- The
DefaultLineWrapper.ColumnState.
lineCount
private int lineCount
- The number of newlines + 1.
lineLengthMax
private int lineLengthMax
- The maximum length of a single unwrapped line.
DefaultLineWrapper.AutoAdjustInfo
private DefaultLineWrapper.AutoAdjustInfo(DefaultLineWrapper.ColumnState columnState)
- The constructor.
- Parameters:
columnState - is the DefaultLineWrapper.ColumnState.
compareTo
public int compareTo(DefaultLineWrapper.AutoAdjustInfo other)
-
- Specified by:
compareTo in interface Comparable<DefaultLineWrapper.AutoAdjustInfo>
getTextLengthRation
public double getTextLengthRation(double totalTextLength)
- Parameters:
totalTextLength - is the total length of the
text of all auto-adjust columns.
- Returns:
- the ratio of the text-length of this column according to the
total text length.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.