Class HighlightingRectangleImpl

java.lang.Object
de.digitalcollections.model.impl.view.HighlightingRectangleImpl
All Implemented Interfaces:
HighlightingRectangle, java.io.Serializable

public class HighlightingRectangleImpl
extends java.lang.Object
implements HighlightingRectangle
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    HighlightingRectangleImpl​(java.lang.String text, int ref, double ulx, double uly, double lrx, double lry)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    double getLrx()
    the relative abscissa of the lower right point of the rectangle
    double getLry()
    the relative ordinate of the lower right point of the rectangle
    int getRef()
    The reference of the highlight rectangle, e.g. a page number
    java.lang.String getText()
    The text to be highlighted (e.g. for plaintext representation)
    double getUlx()
    The relative abscissa (x) of the upper left point of the rectangle
    double getUly()
    The relative ordinate (y) of the upper left point of the rectangle
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • HighlightingRectangleImpl

      public HighlightingRectangleImpl​(java.lang.String text, int ref, double ulx, double uly, double lrx, double lry)
  • Method Details

    • getText

      public java.lang.String getText()
      Description copied from interface: HighlightingRectangle
      The text to be highlighted (e.g. for plaintext representation)
      Specified by:
      getText in interface HighlightingRectangle
      Returns:
      the text
    • getRef

      public int getRef()
      Description copied from interface: HighlightingRectangle
      The reference of the highlight rectangle, e.g. a page number
      Specified by:
      getRef in interface HighlightingRectangle
      Returns:
      the value of the reference
    • getUlx

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

      public double getUly()
      Description copied from interface: HighlightingRectangle
      The relative ordinate (y) of the upper left point of the rectangle
      Specified by:
      getUly in interface HighlightingRectangle
      Returns:
      a value in the range [0..1]
    • getLrx

      public double getLrx()
      Description copied from interface: HighlightingRectangle
      the relative abscissa of the lower right point of the rectangle
      Specified by:
      getLrx in interface HighlightingRectangle
      Returns:
      a value in the range [0..1]
    • getLry

      public double getLry()
      Description copied from interface: HighlightingRectangle
      the relative ordinate of the lower right point of the rectangle
      Specified by:
      getLry in interface HighlightingRectangle
      Returns:
      a value in the range [0..1]
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object