Fixed support for paragraph mouse text unit in Java applications. (#18232)
Fixes #18231
Summary of the issue:
Previously, JABTextInfo's _getParagraphOffsets used its own _getLineOffsets to obtain paragraph offsets, which resulted in only the line under the mouse being reported in the paragraph mouse text unit.
Description of user facing changes:
Now report the paragraph under the mouse.
Description of developer facing changes:
JABTextInfo obtains the correct offset for the paragraph.
Description of development approach:
The _getStoryText method has been added to JABTextInfo so that OffsetsTextInfo._getLineOffsets can work.
JABTextInfo._getParagraphOffsets now uses the superclass _getLineOffsets to calculate offsets based on text content.