StyledDocument's paragraph style; only necessary when using the "selectedDocument"
getter or property
StyledDocument's segment type; only necessary when using the "selectedDocument"
getter or property
StyledDocument's segment style; only necessary when using the "selectedDocument"
getter or property
"Position" refers to the place in-between characters. In other words, every "|" in
"|t|e|x|t|" is a valid position. There are two kinds of positions used here:
getStartPosition()/getEndPosition(), which refers to a position somewhere in the
entire area's content. It's bounds are 0 <= x <= area.getLength().
getStartColumnPosition()/getEndColumnPosition(), which refers to a position
somewhere in the current paragraph. It's bounds are 0 <= x <= area.getParagraphLength(index).
For type safety, getSelectedDocument() requires the same generic types from StyledDocument.
This means that one must write a lot of boilerplate for the generics:
Selection<Collection<String>, StyledText<Collection<String>>, Collection<String>> selection.
However, this is only necessary if one is using getSelectedDocument() or
selectedDocumentProperty(). If you are not going to use the "selectedDocument" getter or property,
then just write the much simpler Selection<?, ?, ?> selection.
CaretSelectionBind, Caret
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Selection.
Specifies whether to update the start/end value of a selection to the left (towards 0) or right (away from 0) |
| Modifier and Type | Method and Description |
|---|---|
| public ObservableValue | |
| public void | configureSelectionPath(SelectionPath path)
Configures a |
| public default void | |
| public void | |
| public ObservableValue | |
| public ObservableValue | |
| public ObservableValue | |
| public GenericStyledArea | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public IndexRange | |
| public StyledDocument | |
| public String | |
| public Optional | |
| public String | |
| public int | |
| public int | |
| public int | |
| public boolean | |
| public ObservableValue | |
| public ObservableValue | |
| public ObservableValue | |
| public void | |
| public ObservableValue | |
| public ObservableValue | |
| public ObservableValue | selectionBoundsProperty()
The selectionBoundsProperty of the selection in the Screen's coordinate system if something is selected and visible in the
viewport, or |
| public void | |
| public void | selectRange(int startParagraphIndex, int startColPosition, int endParagraphIndex, int endColPosition)
Selects the given range. |
| public void | |
| public void | |
| public ObservableValue | |
| public ObservableValue | |
| public ObservableValue | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| beingUpdatedProperty | back to summary |
|---|---|
| public ObservableValue | |
| configureSelectionPath | back to summary |
|---|---|
| public void configureSelectionPath(SelectionPath path) Configures a | |
| deselect | back to summary |
|---|---|
| public default void deselect() Clears the selection via | |
| dispose | back to summary |
|---|---|
| public void dispose() Disposes the selection and prevents memory leaks | |
| endColumnPositionProperty | back to summary |
|---|---|
| public ObservableValue | |
| endParagraphIndexProperty | back to summary |
|---|---|
| public ObservableValue | |
| endPositionProperty | back to summary |
|---|---|
| public ObservableValue | |
| getArea | back to summary |
|---|---|
| public GenericStyledArea Gets the area with which this selection is associated | |
| getEndColumnPosition | back to summary |
|---|---|
| public int getEndColumnPosition() | |
| getEndParagraphIndex | back to summary |
|---|---|
| public int getEndParagraphIndex() | |
| getEndPosition | back to summary |
|---|---|
| public int getEndPosition() | |
| getLength | back to summary |
|---|---|
| public int getLength() | |
| getParagraphSpan | back to summary |
|---|---|
| public int getParagraphSpan() | |
| getRange | back to summary |
|---|---|
| public IndexRange getRange() | |
| getSelectedDocument | back to summary |
|---|---|
| public StyledDocument | |
| getSelectedText | back to summary |
|---|---|
| public String getSelectedText() | |
| getSelectionBounds | back to summary |
|---|---|
| public Optional | |
| getSelectionName | back to summary |
|---|---|
| public String getSelectionName() Gets the name of this selection. Each selection in an area must have a unique name. | |
| getStartColumnPosition | back to summary |
|---|---|
| public int getStartColumnPosition() | |
| getStartParagraphIndex | back to summary |
|---|---|
| public int getStartParagraphIndex() | |
| getStartPosition | back to summary |
|---|---|
| public int getStartPosition() | |
| isBeingUpdated | back to summary |
|---|---|
| public boolean isBeingUpdated() | |
| lengthProperty | back to summary |
|---|---|
| public ObservableValue The length of the selection | |
| paragraphSpanProperty | back to summary |
|---|---|
| public ObservableValue The number of paragraphs the selection spans | |
| rangeProperty | back to summary |
|---|---|
| public ObservableValue The start and end positions in the area as an | |
| selectAll | back to summary |
|---|---|
| public void selectAll() | |
| selectedDocumentProperty | back to summary |
|---|---|
| public ObservableValue | |
| selectedTextProperty | back to summary |
|---|---|
| public ObservableValue | |
| selectionBoundsProperty | back to summary |
|---|---|
| public ObservableValue The selectionBoundsProperty of the selection in the Screen's coordinate system if something is selected and visible in the
viewport, or | |
| selectParagraph | back to summary |
|---|---|
| public void selectParagraph(int paragraphIndex) | |
| selectRange | back to summary |
|---|---|
| public void selectRange(int startParagraphIndex, int startColPosition, int endParagraphIndex, int endColPosition) Selects the given range. Caution see | |
| selectRange | back to summary |
|---|---|
| public void selectRange(int startPosition, int endPosition) Selects the given range. | |
| selectWord | back to summary |
|---|---|
| public void selectWord(int wordPositionInArea) | |
| startColumnPositionProperty | back to summary |
|---|---|
| public ObservableValue | |
| startParagraphIndexProperty | back to summary |
|---|---|
| public ObservableValue | |
| startPositionProperty | back to summary |
|---|---|
| public ObservableValue | |
| updateEndBy | back to summary |
|---|---|
| public void updateEndBy(int amount, Selection. | |
| updateEndByBreaksBackward | back to summary |
|---|---|
| public void updateEndByBreaksBackward(int numOfBreaks, BreakIterator breakIterator) | |
| updateEndByBreaksForward | back to summary |
|---|---|
| public void updateEndByBreaksForward(int numOfBreaks, BreakIterator breakIterator) | |
| updateEndTo | back to summary |
|---|---|
| public void updateEndTo(int position) | |
| updateEndTo | back to summary |
|---|---|
| public void updateEndTo(int paragraphIndex, int columnPosition) | |
| updateStartBy | back to summary |
|---|---|
| public void updateStartBy(int amount, Selection. | |
| updateStartByBreaksBackward | back to summary |
|---|---|
| public void updateStartByBreaksBackward(int numOfBreaks, BreakIterator breakIterator) | |
| updateStartByBreaksForward | back to summary |
|---|---|
| public void updateStartByBreaksForward(int numOfBreaks, BreakIterator breakIterator) | |
| updateStartTo | back to summary |
|---|---|
| public void updateStartTo(int position) | |
| updateStartTo | back to summary |
|---|---|
| public void updateStartTo(int paragraphIndex, int columnPosition) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Selection. | |
| public static final Selection. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Selection. | |
| public static Selection. |
| LEFT | back to summary |
|---|---|
| public static final Selection. | |
| RIGHT | back to summary |
|---|---|
| public static final Selection. | |
| Direction | back to summary |
|---|---|
| private Direction() | |
| valueOf | back to summary |
|---|---|
| public static Selection. | |
| values | back to summary |
|---|---|
| public static Selection. | |