Selection.
| Modifier and Type | Field and Description |
|---|---|
| private final GenericStyledArea | |
| private final SuspendableNo | |
| private final SuspendableVal | |
| private final Consumer | |
| private final SuspendableNo | |
| private final EventStream | |
| private final Val | |
| private final Val | |
| private final Val | |
| private final SuspendableVal | |
| private final Var | |
| private final SuspendableVal | |
| private final String | |
| private final Val | |
| private final SuspendableVal | |
| private final SuspendableVal | |
| private final SuspendableVal | |
| private final Var | |
| private final Val | |
| private final Val | |
| private final SuspendableVal | |
| private Subscription |
| Access | Constructor and Description |
|---|---|
| public | SelectionImpl(String
must be unique and is also used as a StyleClass for
configuration via CSS using selectors from Path, Shape, and Node. name, GenericStyledArea<PS, SEG, S> area)Creates a selection with both the start and end position at 0. |
| public | SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, Consumer<SelectionPath> configurePath)
Creates a selection with customized configuration via |
| public | SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, int startPosition, int endPosition)
Creates a selection. |
| pack-priv | SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, int startPosition, int endPosition, SuspendableNo dependentBeingUpdated)
Creates a selection that is to be used in a |
| pack-priv | SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, int startPosition, int endPosition, SuspendableNo dependentBeingUpdated, Consumer<SelectionPath> configurePath)
Creates a selection that is to be used in a |
| pack-priv | SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, IndexRange range, SuspendableNo dependentBeingUpdated)
Creates a selection that is to be used in a |
| pack-priv | SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, IndexRange range, SuspendableNo dependentBeingUpdated, Consumer<SelectionPath> configurePath)
Creates a selection that is to be used in a |
| Modifier and Type | Method and Description |
|---|---|
| public final ObservableValue | |
| public int | compareTo(SelectionImpl<PS, SEG, S> o)
Implements java. Compares this object with the specified object for order. |
| public void | configureSelectionPath(SelectionPath path)
Implements org. Configures a |
| public void | dispose()
Implements org. Disposes the selection and prevents memory leaks |
| public final ObservableValue | |
| public final ObservableValue | |
| public final ObservableValue | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public GenericStyledArea | getArea()
Implements org. Gets the area with which this selection is associated |
| public final int | |
| public final int | |
| public final int | |
| public final int | |
| public final int | |
| public final IndexRange | |
| public final StyledDocument | |
| public final String | |
| public final Optional | |
| public String | getSelectionName()
Implements org. Gets the name of this selection. |
| public final int | |
| public final int | |
| public final int | |
| public int | |
| public final boolean | |
| public final ObservableValue | lengthProperty()
Implements org. The length of the selection |
| private <T> void | |
| private void | |
| private void | moveBoundary(Selection.
|
| private void | moveBoundary(IntSupplier textPosition, Function<Integer, Boolean> boundsCheckPasses, Function<Integer, IndexRange> updatedRange)
|
| public final ObservableValue | paragraphSpanProperty()
Implements org. The number of paragraphs the selection spans |
| public final ObservableValue | rangeProperty()
Implements org. The start and end positions in the area as an |
| public void | |
| public final ObservableValue | |
| public final ObservableValue | |
| public final 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 | |
| public void | selectRange(int startParagraphIndex, int startColPosition, int endParagraphIndex, int endColPosition)
Implements org. Selects the given range. |
| public void | selectRange(int startPosition, int endPosition)
Implements org. Selects the given range. |
| private void | |
| public void | |
| public final ObservableValue | |
| public final ObservableValue | |
| public final ObservableValue | |
| private int | |
| public String | |
| public void | updateEndBy(int amount, Selection.
Implements org.
|
| private void | |
| 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.
|
| private void | updateSelectionByBreaks(int numOfBreaks, BreakIterator breakIterator, boolean followingNotPreceding, boolean updateStartNotEnd)
|
| public void | updateStartBy(int amount, Selection.
Implements org.
|
| private void | |
| 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.
|
| area | back to summary |
|---|---|
| private final GenericStyledArea<PS, SEG, S> area | |
| beingUpdated | back to summary |
|---|---|
| private final SuspendableNo beingUpdated | |
| bounds | back to summary |
|---|---|
| private final SuspendableVal<Optional<Bounds>> bounds | |
| configurePath | back to summary |
|---|---|
| private final Consumer<SelectionPath> configurePath | |
| dependentBeingUpdated | back to summary |
|---|---|
| private final SuspendableNo dependentBeingUpdated | |
| dirty | back to summary |
|---|---|
| private final EventStream<?> dirty | |
| end2DPosition | back to summary |
|---|---|
| private final Val<TwoDimensional. | |
| endColumnPosition | back to summary |
|---|---|
| private final Val<Integer> endColumnPosition | |
| endParagraphIndex | back to summary |
|---|---|
| private final Val<Integer> endParagraphIndex | |
| endPosition | back to summary |
|---|---|
| private final SuspendableVal<Integer> endPosition | |
| internalRange | back to summary |
|---|---|
| private final Var<IndexRange> internalRange | |
| length | back to summary |
|---|---|
| private final SuspendableVal<Integer> length | |
| name | back to summary |
|---|---|
| private final String name | |
| paragraphSpan | back to summary |
|---|---|
| private final Val<Integer> paragraphSpan | |
| range | back to summary |
|---|---|
| private final SuspendableVal<IndexRange> range | |
| selectedDocument | back to summary |
|---|---|
| private final SuspendableVal<StyledDocument<PS, SEG, S>> selectedDocument | |
| selectedText | back to summary |
|---|---|
| private final SuspendableVal<String> selectedText | |
| start2DPosition | back to summary |
|---|---|
| private final Var<TwoDimensional. | |
| startColumnPosition | back to summary |
|---|---|
| private final Val<Integer> startColumnPosition | |
| startParagraphIndex | back to summary |
|---|---|
| private final Val<Integer> startParagraphIndex | |
| startPosition | back to summary |
|---|---|
| private final SuspendableVal<Integer> startPosition | |
| subscription | back to summary |
|---|---|
| private Subscription subscription | |
| SelectionImpl | back to summary |
|---|---|
| public SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area) Creates a selection with both the start and end position at 0.
| |
| SelectionImpl | back to summary |
|---|---|
| public SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, Consumer<SelectionPath> configurePath) Creates a selection with customized configuration via | |
| SelectionImpl | back to summary |
|---|---|
| public SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, int startPosition, int endPosition) Creates a selection. Name must be unique and is also used as a StyleClass for configuration via CSS using selectors from Path, Shape, and Node. | |
| SelectionImpl | back to summary |
|---|---|
| pack-priv SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, int startPosition, int endPosition, SuspendableNo dependentBeingUpdated) Creates a selection that is to be used in a | |
| SelectionImpl | back to summary |
|---|---|
| pack-priv SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, int startPosition, int endPosition, SuspendableNo dependentBeingUpdated, Consumer<SelectionPath> configurePath) Creates a selection that is to be used in a | |
| SelectionImpl | back to summary |
|---|---|
| pack-priv SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, IndexRange range, SuspendableNo dependentBeingUpdated) Creates a selection that is to be used in a | |
| SelectionImpl | back to summary |
|---|---|
| pack-priv SelectionImpl(String name, GenericStyledArea<PS, SEG, S> area, IndexRange range, SuspendableNo dependentBeingUpdated, Consumer<SelectionPath> configurePath) Creates a selection that is to be used in a | |
| beingUpdatedProperty | back to summary |
|---|---|
| public final ObservableValue Implements org.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(SelectionImpl<PS, SEG, S> o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| configureSelectionPath | back to summary |
|---|---|
| public void configureSelectionPath(SelectionPath path) Implements org. Doc from org. Configures a
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements org. Doc from org. Disposes the selection and prevents memory leaks
| |
| endColumnPositionProperty | back to summary |
|---|---|
| public final ObservableValue Implements org.
| |
| endParagraphIndexProperty | back to summary |
|---|---|
| public final ObservableValue Implements org.
| |
| endPositionProperty | back to summary |
|---|---|
| public final ObservableValue Implements org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getArea | back to summary |
|---|---|
| public GenericStyledArea Implements org. Doc from org. Gets the area with which this selection is associated
| |
| getEndColumnPosition | back to summary |
|---|---|
| public final int getEndColumnPosition() Implements org.
| |
| getEndParagraphIndex | back to summary |
|---|---|
| public final int getEndParagraphIndex() Implements org.
| |
| getEndPosition | back to summary |
|---|---|
| public final int getEndPosition() Implements org.
| |
| getLength | back to summary |
|---|---|
| public final int getLength() Implements org.
| |
| getParagraphSpan | back to summary |
|---|---|
| public final int getParagraphSpan() Implements org.
| |
| getRange | back to summary |
|---|---|
| public final IndexRange getRange() Implements org.
| |
| getSelectedDocument | back to summary |
|---|---|
| public final StyledDocument Implements org.
| |
| getSelectedText | back to summary |
|---|---|
| public final String getSelectedText() Implements org.
| |
| getSelectionBounds | back to summary |
|---|---|
| public final Optional Implements org.
| |
| getSelectionName | back to summary |
|---|---|
| public String getSelectionName() Implements org. Doc from org. Gets the name of this selection. Each selection in an area must have a unique name.
| |
| getStartColumnPosition | back to summary |
|---|---|
| public final int getStartColumnPosition() Implements org.
| |
| getStartParagraphIndex | back to summary |
|---|---|
| public final int getStartParagraphIndex() Implements org.
| |
| getStartPosition | back to summary |
|---|---|
| public final int getStartPosition() Implements org.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isBeingUpdated | back to summary |
|---|---|
| public final boolean isBeingUpdated() Implements org.
| |
| lengthProperty | back to summary |
|---|---|
| public final ObservableValue Implements org. Doc from org. The length of the selection
| |
| manageSubscription | back to summary |
|---|---|
| private <T> void manageSubscription(EventStream<T> stream, Consumer<T> consumer) | |
| manageSubscription | back to summary |
|---|---|
| private void manageSubscription(Subscription s) | |
| moveBoundary | back to summary |
|---|---|
| private void moveBoundary(Selection. | |
| moveBoundary | back to summary |
|---|---|
| private void moveBoundary(IntSupplier textPosition, Function<Integer, Boolean> boundsCheckPasses, Function<Integer, IndexRange> updatedRange) | |
| paragraphSpanProperty | back to summary |
|---|---|
| public final ObservableValue Implements org. Doc from org. The number of paragraphs the selection spans
| |
| rangeProperty | back to summary |
|---|---|
| public final ObservableValue Implements org. Doc from org. The start and end positions in the area as an
| |
| selectAll | back to summary |
|---|---|
| public void selectAll() Implements org.
| |
| selectedDocumentProperty | back to summary |
|---|---|
| public final ObservableValue Implements org.
| |
| selectedTextProperty | back to summary |
|---|---|
| public final ObservableValue Implements org.
| |
| selectionBoundsProperty | back to summary |
|---|---|
| public final ObservableValue Implements org. Doc from org. 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) Implements org.
| |
| selectRange | back to summary |
|---|---|
| public void selectRange(int startParagraphIndex, int startColPosition, int endParagraphIndex, int endColPosition) Implements org. Doc from org. Selects the given range. Caution see
| |
| selectRange | back to summary |
|---|---|
| public void selectRange(int startPosition, int endPosition) Implements org. Doc from org. Selects the given range.
| |
| selectRange | back to summary |
|---|---|
| private void selectRange(IndexRange range) | |
| selectWord | back to summary |
|---|---|
| public void selectWord(int wordPositionInArea) Implements org.
| |
| startColumnPositionProperty | back to summary |
|---|---|
| public final ObservableValue Implements org.
| |
| startParagraphIndexProperty | back to summary |
|---|---|
| public final ObservableValue Implements org.
| |
| startPositionProperty | back to summary |
|---|---|
| public final ObservableValue Implements org.
| |
| textPosition | back to summary |
|---|---|
| private int textPosition(int row, int col) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| updateEndBy | back to summary |
|---|---|
| public void updateEndBy(int amount, Selection. Implements org.
| |
| updateEndByBreaks | back to summary |
|---|---|
| private void updateEndByBreaks(int numOfBreaks, BreakIterator breakIterator, boolean forwardsNotBackwards) | |
| updateEndByBreaksBackward | back to summary |
|---|---|
| public void updateEndByBreaksBackward(int numOfBreaks, BreakIterator breakIterator) Implements org.
| |
| updateEndByBreaksForward | back to summary |
|---|---|
| public void updateEndByBreaksForward(int numOfBreaks, BreakIterator breakIterator) Implements org.
| |
| updateEndTo | back to summary |
|---|---|
| public void updateEndTo(int position) Implements org.
| |
| updateEndTo | back to summary |
|---|---|
| public void updateEndTo(int paragraphIndex, int columnPosition) Implements org.
| |
| updateSelectionByBreaks | back to summary |
|---|---|
| private void updateSelectionByBreaks(int numOfBreaks, BreakIterator breakIterator, boolean followingNotPreceding, boolean updateStartNotEnd) | |
| updateStartBy | back to summary |
|---|---|
| public void updateStartBy(int amount, Selection. Implements org.
| |
| updateStartByBreaks | back to summary |
|---|---|
| private void updateStartByBreaks(int numOfBreaks, BreakIterator breakIterator, boolean forwardsNotBackwards) | |
| updateStartByBreaksBackward | back to summary |
|---|---|
| public void updateStartByBreaksBackward(int numOfBreaks, BreakIterator breakIterator) Implements org.
| |
| updateStartByBreaksForward | back to summary |
|---|---|
| public void updateStartByBreaksForward(int numOfBreaks, BreakIterator breakIterator) Implements org.
| |
| updateStartTo | back to summary |
|---|---|
| public void updateStartTo(int position) Implements org.
| |
| updateStartTo | back to summary |
|---|---|
| public void updateStartTo(int paragraphIndex, int columnPosition) Implements org.
| |