Class HitInfo.Text

  • Enclosing class:
    HitInfo

    public static class HitInfo.Text
    extends HitInfo.Interior
    Represent a Hit that occured on some interior area of a TextEditable. This is simply a convenient wrapper for java.awt.font.TextHitInfo.
    • Constructor Detail

      • Text

        public Text​(TextEditable clickedObject,
                    java.awt.font.TextHitInfo thi,
                    PEMouseEvent mouseEvent)
        construct a new HitInfo.Text that occured on the given TextEditable, fetching useful information from the given TextHitInfo.
    • Method Detail

      • getTextHitInfo

        public java.awt.font.TextHitInfo getTextHitInfo()
        Returns the java.awt.font.TextHitInfo wrapped into this HitInfo.