Package org.fife.ui.rtextarea
Class LineNumberList.SimpleLineNumberFormatter
- java.lang.Object
-
- org.fife.ui.rtextarea.LineNumberList.SimpleLineNumberFormatter
-
- All Implemented Interfaces:
LineNumberFormatter
- Enclosing class:
- LineNumberList
private static class LineNumberList.SimpleLineNumberFormatter extends java.lang.Object implements LineNumberFormatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSimpleLineNumberFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringformat(int lineNumber)Formats the given line number into a String.intgetMaxLength(int maxLineNumber)Returns the maximum number of characters of any string returned byLineNumberFormatter.format(int)provided a certain maximum line number.
-
-
-
Method Detail
-
format
public java.lang.String format(int lineNumber)
Description copied from interface:LineNumberFormatterFormats the given line number into a String.- Specified by:
formatin interfaceLineNumberFormatter- Parameters:
lineNumber- the line number- Returns:
- the formatted line number
-
getMaxLength
public int getMaxLength(int maxLineNumber)
Description copied from interface:LineNumberFormatterReturns the maximum number of characters of any string returned byLineNumberFormatter.format(int)provided a certain maximum line number.- Specified by:
getMaxLengthin interfaceLineNumberFormatter- Parameters:
maxLineNumber- the maximum line number- Returns:
- the maximum length
-
-