Class TextAreaBrackets
- java.lang.Object
-
- net.sf.gridarta.textedit.textarea.TextAreaBrackets
-
public class TextAreaBrackets extends java.lang.ObjectMaintains information about the highlighted pairs of brackets.
-
-
Constructor Summary
Constructors Constructor Description TextAreaBrackets()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the highlighted bracket.intgetBracketLine()Returns the line of the highlighted bracket (the bracket matching the one before the caret).intgetBracketPosition()Returns the position of the highlighted bracket (the bracket matching the one before the caret).voidset(int bracketPosition, int bracketLine)Sets the highlighted bracket.
-
-
-
Method Detail
-
getBracketPosition
public int getBracketPosition()
Returns the position of the highlighted bracket (the bracket matching the one before the caret).- Returns:
- the position in characters or
-1if none should be highlighted
-
getBracketLine
public int getBracketLine()
Returns the line of the highlighted bracket (the bracket matching the one before the caret).- Returns:
- the position in lines or
-1if none should be highlighted
-
clear
public void clear()
Clears the highlighted bracket.
-
set
public void set(int bracketPosition, int bracketLine)Sets the highlighted bracket.- Parameters:
bracketPosition- the position in characters or-1to clearbracketLine- the position in lines or-1to clear
-
-