Package de.digitalcollections.model.view
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HighlightingRectangle(String text, int ref, double ulx, double uly, double lrx, double lry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
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.String
getText()
The text to be highlighted (e.g.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()
String
toString()
-
-
-
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]
-
-