ewe.ui
Interface DisplayLine.WidthProvider

Enclosing interface:
DisplayLine

public static interface DisplayLine.WidthProvider


Method Summary
 int getWidthFor(DisplayLineSpecs specs, int lineIndex, int startingCharacterIndex, DisplayLine splitSoFar)
          This should return the display width for the specified line index.
 

Method Detail

getWidthFor

public int getWidthFor(DisplayLineSpecs specs,
                       int lineIndex,
                       int startingCharacterIndex,
                       DisplayLine splitSoFar)
This should return the display width for the specified line index.

Parameters:
specs - The DisplayLineSpecs that is doing the splitting.
lineIndex - The index of the line being created (starting from 0).
startingCharacterIndex - The index of the character that will come first on this line.
splitSoFar - The linked list of DisplayLines that have been split so far.
Returns:
The display width for the line.