Typically, the caret is represented by a single vertical line which visually indicates the position within the text. In some cases, where the caret is positioned between left-to-right and right-to-left text, two line segments will be shown, indicating the insertion position for both left-to-right and right-to-left character.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Rectangle2D | Returns: the bounds of the caret segmentthe line index index)Returns the geometry of the segment at the specified index. |
| public abstract int | Returns: the number of segments representing the caretReturns the number of segments representing the caret. |
| CaretInfo | back to summary |
|---|---|
| protected CaretInfo() Constructor for subclasses to call. | |
| getSegmentAt | back to summary |
|---|---|
| public abstract Rectangle2D getSegmentAt(int index) Returns the geometry of the segment at the specified index.
| |
| getSegmentCount | back to summary |
|---|---|
| public abstract int getSegmentCount() Returns the number of segments representing the caret.
| |