Package jade.tools.gui
Class ACLTextArea.TextUtilities
- java.lang.Object
-
- jade.tools.gui.ACLTextArea.TextUtilities
-
- Enclosing class:
- ACLTextArea
public static class ACLTextArea.TextUtilities extends Object
-
-
Constructor Summary
Constructors Constructor Description TextUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intfindMatchingBracket(Document doc, int offset)Returns the offset of the bracket matching the one at the specified offset of the document, or -1 if the bracket is unmatched (or if the character is not a bracket).
-
-
-
Method Detail
-
findMatchingBracket
public static int findMatchingBracket(Document doc, int offset) throws BadLocationException
Returns the offset of the bracket matching the one at the specified offset of the document, or -1 if the bracket is unmatched (or if the character is not a bracket).- Parameters:
doc- The documentoffset- The offset- Returns:
- Description of the Returned Value
- Throws:
BadLocationException- If an out-of-bounds access was attempted on the document text
-
-