.lineno and .fold-indicator style classes in CSS stylesheets.
| Modifier and Type | Field and Description |
|---|---|
| private final GenericStyledArea | |
| private static final Background | |
| private static final Font | |
| private static final Font | |
| private static final Insets | |
| private static final Paint | |
| private final IntFunction | |
| private final Predicate | |
| private final Val | |
| private final UnaryOperator |
| Access | Constructor and Description |
|---|---|
| private | LineNumberFactory(GenericStyledArea<PS, ?, ?> area, IntFunction<String> format, Predicate<PS> isFolded, UnaryOperator<PS> removeFoldStyle)
|
| Modifier and Type | Method and Description |
|---|---|
| public Node | apply(int idx)
Implements java. Applies this function to the given argument. |
| private void | |
| private String | |
| public static IntFunction | |
| public static <PS> IntFunction | |
| public static < The paragraph style type being used by the text area PS> IntFunction | get(GenericStyledArea<PS, ?, ?> area, IntFunction<String>
Given an int convert to a String for the line number. format, Predicate<PS> Given a paragraph style PS check if it's folded. isFolded, UnaryOperator<PS> Given a paragraph style PS, return a new PS that excludes fold styling. removeFoldStyle)Use this if you extended GenericStyledArea for your own text area and you're using paragraph folding. |
| private void |
| area | back to summary |
|---|---|
| private final GenericStyledArea<PS, ?, ?> area | |
| DEFAULT_BACKGROUND | back to summary |
|---|---|
| private static final Background DEFAULT_BACKGROUND | |
| DEFAULT_FOLD_FONT | back to summary |
|---|---|
| private static final Font DEFAULT_FOLD_FONT | |
| DEFAULT_FONT | back to summary |
|---|---|
| private static final Font DEFAULT_FONT | |
| DEFAULT_INSETS | back to summary |
|---|---|
| private static final Insets DEFAULT_INSETS | |
| DEFAULT_TEXT_FILL | back to summary |
|---|---|
| private static final Paint DEFAULT_TEXT_FILL | |
| format | back to summary |
|---|---|
| private final IntFunction<String> format | |
| isFoldedCheck | back to summary |
|---|---|
| private final Predicate<PS> isFoldedCheck | |
| nParagraphs | back to summary |
|---|---|
| private final Val<Integer> nParagraphs | |
| removeFoldStyle | back to summary |
|---|---|
| private final UnaryOperator<PS> removeFoldStyle | |
| LineNumberFactory | back to summary |
|---|---|
| private LineNumberFactory(GenericStyledArea<PS, ?, ?> area, IntFunction<String> format, Predicate<PS> isFolded, UnaryOperator<PS> removeFoldStyle) | |
| apply | back to summary |
|---|---|
| public Node apply(int idx) Implements java. Doc from java. Applies this function to the given argument.
| |
| deleteParagraphCheck | back to summary |
|---|---|
| private void deleteParagraphCheck() | |
| format | back to summary |
|---|---|
| private String format(int x, int max) | |
| get | back to summary |
|---|---|
| public static IntFunction | |
| get | back to summary |
|---|---|
| public static <PS> IntFunction | |
| get | back to summary |
|---|---|
| public static <PS> IntFunction Use this if you extended GenericStyledArea for your own text area and you're using paragraph folding.
| |
| insertParagraphCheck | back to summary |
|---|---|
| private void insertParagraphCheck() | |