Class ACLTextArea.TextUtilities

  • Enclosing class:
    ACLTextArea

    public static class ACLTextArea.TextUtilities
    extends Object
    • Constructor Detail

      • TextUtilities

        public TextUtilities()
    • 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 document
        offset - The offset
        Returns:
        Description of the Returned Value
        Throws:
        BadLocationException - If an out-of-bounds access was attempted on the document text