Class FormSelectedTextOperation

    • Constructor Detail

      • FormSelectedTextOperation

        public FormSelectedTextOperation()
    • Method Detail

      • isDelimiterBeforeTextNode

        protected abstract boolean isDelimiterBeforeTextNode​(AuthorAccess authorAccess,
                                                             int contentOffset)
                                                      throws javax.swing.text.BadLocationException,
                                                             AuthorOperationException
        Decides if there is a sentence delimiter before the text node.
        Parameters:
        contentOffset - The offset where search is started.
        authorAccess -
        Returns:
        true if the there is a sentence delimiter before the text node or false if a non-delimiter character was found.
        Throws:
        javax.swing.text.BadLocationException
        AuthorOperationException
      • isWordDelimiter

        protected boolean isWordDelimiter​(char ch)
        Decides if the character is a sentence delimiter or not.
        Parameters:
        ch - The character that must be evaluated.
        Returns:
        true if the character is a sentence delimiter or false otherwise.
      • processTextContent

        protected abstract char[] processTextContent​(char[] charArray,
                                                     boolean isDelimiterBefore)
        Process char array.
        Parameters:
        charArray - The character array that must be processed.
        isDelimiterBefore - true if we have a delimiter before the given char array, false otherwise.