Class HighlightingRectangle

java.lang.Object
de.digitalcollections.model.view.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:
  • Constructor Summary

    Constructors
    Constructor
    Description
    HighlightingRectangle(String text, int ref, double ulx, double uly, double lrx, double lry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    double
    the relative abscissa of the lower right point of the rectangle
    double
    the relative ordinate of the lower right point of the rectangle
    int
    The reference of the highlight rectangle, e.g. a page number
    The text to be highlighted (e.g. for plaintext representation)
    double
    The relative abscissa (x) of the upper left point of the rectangle
    double
    The relative ordinate (y) of the upper left point of the rectangle
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • HighlightingRectangle

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

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object