| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final TextPos | |
| private final TextPos |
| Access | Constructor and Description |
|---|---|
| public | SelectionSegment(TextPos
the anchor position, must not be null anchor, TextPos the caret position, must not be null caret)Constructs the selection segment. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object x)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public final TextPos | |
| public final TextPos | |
| public TextPos | |
| public final TextPos | Returns: the text positionReturns the position which is closer to the start of the document. |
| public int | |
| public boolean | Returns: true if the anchor and the caret are at the same positionReturns true if the anchor and the caret are at the same position. |
| private static <T extends Comparable | |
| public String |
| caretAtMin | back to summary |
|---|---|
| private final boolean caretAtMin | |
| max | back to summary |
|---|---|
| private final TextPos max | |
| min | back to summary |
|---|---|
| private final TextPos min | |
| SelectionSegment | back to summary |
|---|---|
| public SelectionSegment(TextPos anchor, TextPos caret) Constructs the selection segment. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object x) 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.
| |
| getAnchor | back to summary |
|---|---|
| public final TextPos getAnchor() Returns the selection anchor position.
| |
| getCaret | back to summary |
|---|---|
| public final TextPos getCaret() Returns the caret position.
| |
| getMax | back to summary |
|---|---|
| public TextPos getMax() Returns the position which is closer to the end of the document.
| |
| getMin | back to summary |
|---|---|
| public final TextPos getMin() Returns the position which is closer to the start of the document.
| |
| 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
| |
| isCollapsed | back to summary |
|---|---|
| public boolean isCollapsed() Returns true if the anchor and the caret are at the same position.
| |
| isLessThanOrEqual | back to summary |
|---|---|
| private static <T extends Comparable | |
| 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-
| |