public class TextAreaBrackets
extends java.lang.Object
Constructor and Description |
---|
TextAreaBrackets() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the highlighted bracket.
|
int |
getBracketLine()
Returns the line of the highlighted bracket (the bracket matching the one
before the caret).
|
int |
getBracketPosition()
Returns the position of the highlighted bracket (the bracket matching the
one before the caret).
|
void |
set(int bracketPosition,
int bracketLine)
Sets the highlighted bracket.
|
public int getBracketPosition()
-1
if none should be
highlightedpublic int getBracketLine()
-1
if none should be highlightedpublic void clear()
public void set(int bracketPosition, int bracketLine)
bracketPosition
- the position in characters or -1
to clearbracketLine
- the position in lines or -1
to clear