| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Val | |
| private final Val | |
| private final Val | |
| private final SuspendableNo | |
| private final CaretNode | |
| private final Selection | |
| private final Var | |
| private final SuspendableVal | |
| private Subscription |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | CaretSelectionBindImpl(String caretName, String selectionName, GenericStyledArea<PS, SEG, S> area, IndexRange startingRange)
|
| pack-priv | CaretSelectionBindImpl(Function<SuspendableNo, ? extends CaretNode> createCaret, Function<SuspendableNo, Selection<PS, SEG, S>> createSelection)
|
| Modifier and Type | Method and Description |
|---|---|
| public ObservableValue | |
| private boolean | |
| public ObservableValue | |
| public ObservableValue | |
| public final ObservableValue | |
| public ObservableValue | |
| private int | calculatePositionViaBreakingBackwards(int numOfBreaks, BreakIterator breakIterator, int position)
Assumes that |
| private int | calculatePositionViaBreakingForwards(int numOfBreaks, BreakIterator breakIterator, int position)
Assumes that |
| public ObservableValue | caretBoundsProperty()
Implements org. The selectionBoundsProperty of the caret in the Screen's coordinate system or |
| public void | clearTargetOffset()
Implements org. Clears the caret's x offset |
| public ObservableValue | columnPositionProperty()
Implements org. The column position of the caret on its given line |
| public void | configureSelectionPath(SelectionPath path)
Implements org. Configures a |
| public void | deselect()
Implements org. Clears the selection while keeping the caret position the same. |
| public void | displaceCaret(int position)
Implements org. Displaces the caret from the selection by positioning only the caret to the new location without
also affecting the selection's |
| public void | displaceSelection(int startPosition, int endPosition)
Implements org. Displaces the caret from the selection by positioning only the selection to the new location without
also affecting the |
| public void | dispose()
Implements org. Disposes the selection and prevents memory leaks |
| private void | |
| private void | |
| public ObservableValue | |
| public ObservableValue | |
| public ObservableValue | |
| public int | |
| public int | |
| public int | |
| public GenericStyledArea | getArea()
Implements org. Gets the area with which this selection is associated |
| private int | |
| public Duration | |
| public Optional | |
| public String | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public OptionalInt | |
| public int | |
| public int | |
| public int | |
| public IndexRange | |
| public final StyledDocument | |
| public String | |
| public Optional | |
| public String | getSelectionName()
Implements org. Gets the name of this selection. |
| public Caret. | |
| public int | |
| public int | |
| public int | |
| public ParagraphBox. | getTargetOffset()
Implements org. Stores the caret's current column position, so that moving the caret vertically will keep it close to its original offset in a line. |
| public CaretNode | |
| public Selection | |
| public final boolean | |
| public boolean | |
| public ObservableValue | lengthProperty()
Implements org. The length of the selection |
| public ObservableValue | lineIndexProperty()
Implements org. The line index of a multi-line paragraph that contains this caret |
| public void | moveBreaksBackwards(int numOfBreaks, BreakIterator breakIterator)
Implements org. Moves the caret backwards by the number of breaks and clears any selection |
| public void | moveBreaksForwards(int numOfBreaks, BreakIterator breakIterator)
Implements org. Moves the caret forwards by the number of breaks and clears any selection |
| public void | moveTo(int pos, NavigationActions.
Overrides default org. Moves the caret to the position indicated by |
| public void | moveTo(int paragraphIndex, int columnIndex, NavigationActions.
Implements org. Moves the caret to the position returned from
|
| public void | moveToAreaEnd(NavigationActions.
Implements org.
|
| public void | moveToAreaStart(NavigationActions.
Implements org.
|
| public void | moveToNextChar(NavigationActions.
Implements org. Moves the caret forward one char in the text. |
| public void | moveToParEnd(NavigationActions.
Implements org.
|
| public void | moveToParStart(NavigationActions.
Implements org.
|
| public void | moveToPrevChar(NavigationActions.
Implements org. Moves the caret backward one char in the text. |
| public ObservableValue | paragraphIndexProperty()
Implements org. The paragraph index that contains this caret |
| public ObservableValue | paragraphSpanProperty()
Implements org. The number of paragraphs the selection spans |
| public ObservableValue | positionProperty()
Implements org. The position of the caret within the text |
| public ObservableValue | rangeProperty()
Implements org. The start and end positions in the area as an |
| public void | selectAll()
Implements org. Selects everything in the area and moves the caret to either the start of the new selection if the anchor was equal to the original start or the end if the anchor was equal to the original end |
| public final ObservableValue | |
| public ObservableValue | |
| public ObservableValue | selectionBoundsProperty()
Implements org. The selectionBoundsProperty of the selection in the Screen's coordinate system if something is selected and visible in the
viewport, or |
| public void | selectParagraph(int paragraphIndex)
Implements org. Selects the given paragraph and moves the caret to either the start of the new selection if the anchor was equal to the original start or the end if the anchor was equal to the original end |
| public void | selectRange(int startPosition, int endPosition)
Implements org. Selects the given range and moves the caret to either the start of the new selection if the anchor was equal to the original start or the end if the anchor was equal to the original end |
| public void | selectRange(int startParagraphIndex, int startColPosition, int endParagraphIndex, int endColPosition)
Implements org. Selects the given range and moves the caret to either the start of the new selection if the anchor was equal to the original start or the end if the anchor was equal to the original end Caution see |
| public void | selectRangeExpl(int anchorParagraph, int anchorColumn, int caretParagraph, int caretColumn)
Implements org. Positions the anchor and caretPosition explicitly, effectively creating a selection. |
| public void | selectRangeExpl(int anchorPosition, int caretPosition)
Implements org. Positions the anchor and caretPosition explicitly, effectively creating a selection. |
| public void | selectWord(int wordPositionInArea)
Implements org. Selects the closest word to the given position in the area and moves the caret to either the start of the new selection if the anchor was equal to the original start or the end if the anchor was equal to the original end |
| public void | |
| public void | |
| public Var | showCaretProperty()
Implements org. Whether to display the caret or not. |
| public ObservableValue | |
| public ObservableValue | |
| public ObservableValue | |
| private int | |
| public void | updateEndBy(int amount, Selection.
Implements org.
|
| public void | updateEndByBreaksBackward(int numOfBreaks, BreakIterator breakIterator)
Implements org.
|
| public void | updateEndByBreaksForward(int numOfBreaks, BreakIterator breakIterator)
Implements org.
|
| public void | |
| public void | updateEndTo(int paragraphIndex, int columnPosition)
Implements org.
|
| public void | updateStartBy(int amount, Selection.
Implements org.
|
| public void | updateStartByBreaksBackward(int numOfBreaks, BreakIterator breakIterator)
Implements org.
|
| public void | updateStartByBreaksForward(int numOfBreaks, BreakIterator breakIterator)
Implements org.
|
| public void | |
| public void | updateStartTo(int paragraphIndex, int columnPosition)
Implements org.
|
| public ObservableValue | visibleProperty()
Implements org. Whether the caret is being shown in the viewport |