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 private
SimpleLineNumberFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(int lineNumber)
Formats the given line number into a String.int
getMaxLength(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:LineNumberFormatter
Formats the given line number into a String.- Specified by:
format
in interfaceLineNumberFormatter
- Parameters:
lineNumber
- the line number- Returns:
- the formatted line number
-
getMaxLength
public int getMaxLength(int maxLineNumber)
Description copied from interface:LineNumberFormatter
Returns the maximum number of characters of any string returned byLineNumberFormatter.format(int)
provided a certain maximum line number.- Specified by:
getMaxLength
in interfaceLineNumberFormatter
- Parameters:
maxLineNumber
- the maximum line number- Returns:
- the maximum length
-
-