public class CaretState
extends java.lang.Object
Constructor and Description |
---|
CaretState(LogicalPosition caretPosition,
int visualColumnAdjustment,
LogicalPosition selectionStart,
LogicalPosition selectionEnd) |
CaretState(LogicalPosition caretPosition,
LogicalPosition selectionStart,
LogicalPosition selectionEnd) |
Modifier and Type | Method and Description |
---|---|
LogicalPosition |
getCaretPosition() |
LogicalPosition |
getSelectionEnd() |
LogicalPosition |
getSelectionStart() |
int |
getVisualColumnAdjustment()
Sometimes logical caret position is not fully determining its visual position (e.g.
|
java.lang.String |
toString() |
public CaretState(LogicalPosition caretPosition, LogicalPosition selectionStart, LogicalPosition selectionEnd)
public CaretState(LogicalPosition caretPosition, int visualColumnAdjustment, LogicalPosition selectionStart, LogicalPosition selectionEnd)
visualColumnAdjustment
- see getVisualColumnAdjustment()
public LogicalPosition getCaretPosition()
public int getVisualColumnAdjustment()
editor.logicalToVisualPosition(caretState.getCaretPosition())
's column,
if one needs to calculate caret's visual position.public LogicalPosition getSelectionStart()
public LogicalPosition getSelectionEnd()
public java.lang.String toString()
toString
in class java.lang.Object