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 Object
implements LineNumberFormatter
- Version:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(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.
-
Constructor Details
-
SimpleLineNumberFormatter
private SimpleLineNumberFormatter()
-
-
Method Details
-
format
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
-