Class HighlightingRectangle

  • All Implemented Interfaces:
    Serializable

    public class HighlightingRectangle
    extends Object
    implements Serializable
    A rectangle (defined by its upper left and lower right coordinates) for highlighted text including the text itself.
    See Also:
    Serialized Form
    • Constructor Detail

      • HighlightingRectangle

        public HighlightingRectangle​(String text,
                                     int ref,
                                     double ulx,
                                     double uly,
                                     double lrx,
                                     double lry)
    • Method Detail

      • getLrx

        public double getLrx()
        the relative abscissa of the lower right point of the rectangle
        Returns:
        a value in the range [0..1]
      • getLry

        public double getLry()
        the relative ordinate of the lower right point of the rectangle
        Returns:
        a value in the range [0..1]
      • getRef

        public int getRef()
        The reference of the highlight rectangle, e.g. a page number
        Returns:
        the value of the reference
      • getText

        public String getText()
        The text to be highlighted (e.g. for plaintext representation)
        Returns:
        the text
      • getUlx

        public double getUlx()
        The relative abscissa (x) of the upper left point of the rectangle
        Returns:
        a value in the range [0..1]
      • getUly

        public double getUly()
        The relative ordinate (y) of the upper left point of the rectangle
        Returns:
        a value in the range [0..1]
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object