public abstract class CodeView extends InteractiveTextView
This abstract class represents a code view.
All code views are interactive.
Modifier and Type | Method and Description |
---|---|
CodePosition |
getCodePosition()
Get the code position from caret.
|
abstract CodePosition |
getCodePosition(int lineindex)
Get the code position at a given line.
|
getActiveItem
getCaretLine, getCaretOffset, getLine, getLineCount, getOffsetAtLine, getText, gotoLine, setCaretOffset, setCaretPosition
public abstract CodePosition getCodePosition(int lineindex)
Get the code position at a given line.
lineindex
- zero-based line indexpublic CodePosition getCodePosition()
Get the code position from caret.