net.sf.mmm.util.text.base
Class DefaultLineWrapper.AutoAdjustInfo

java.lang.Object
  extended by 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)

Field Summary
private  DefaultLineWrapper.ColumnState columnState
          The DefaultLineWrapper.ColumnState.
private  int lineCount
          The number of newlines + 1.
private  int lineLengthMax
          The maximum length of a single unwrapped line.
 
Constructor Summary
private DefaultLineWrapper.AutoAdjustInfo(DefaultLineWrapper.ColumnState columnState)
          The constructor.
 
Method Summary
 int compareTo(DefaultLineWrapper.AutoAdjustInfo other)
          
 double getTextLengthRation(double totalTextLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

DefaultLineWrapper.AutoAdjustInfo

private DefaultLineWrapper.AutoAdjustInfo(DefaultLineWrapper.ColumnState columnState)
The constructor.

Parameters:
columnState - is the DefaultLineWrapper.ColumnState.
Method Detail

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.