Package de.digitalcollections.model.view
Class HighlightingRectangle
java.lang.Object
de.digitalcollections.model.view.HighlightingRectangle
- All Implemented Interfaces:
Serializable
A rectangle (defined by its upper left and lower right coordinates) for highlighted text
including the text itself.
- See Also:
-
Constructor Summary
ConstructorDescriptionHighlightingRectangle
(String text, int ref, double ulx, double uly, double lrx, double lry) -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
getLrx()
the relative abscissa of the lower right point of the rectangledouble
getLry()
the relative ordinate of the lower right point of the rectangleint
getRef()
The reference of the highlight rectangle, e.g. a page numbergetText()
The text to be highlighted (e.g. for plaintext representation)double
getUlx()
The relative abscissa (x) of the upper left point of the rectangledouble
getUly()
The relative ordinate (y) of the upper left point of the rectangleint
hashCode()
toString()
-
Constructor Details
-
HighlightingRectangle
-
-
Method Details
-
equals
-
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
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() -
toString
-