Class HighlightingRectangleImpl
- java.lang.Object
-
- de.digitalcollections.model.impl.view.HighlightingRectangleImpl
-
- All Implemented Interfaces:
HighlightingRectangle,Serializable
public class HighlightingRectangleImpl extends Object implements HighlightingRectangle
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HighlightingRectangleImpl(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 booleanequals(Object obj)doublegetLrx()the relative abscissa of the lower right point of the rectangledoublegetLry()the relative ordinate of the lower right point of the rectangleintgetRef()The reference of the highlight rectangle, e.g. a page numberStringgetText()The text to be highlighted (e.g. for plaintext representation)doublegetUlx()The relative abscissa (x) of the upper left point of the rectangledoublegetUly()The relative ordinate (y) of the upper left point of the rectangleinthashCode()StringtoString()
-
-
-
Constructor Detail
-
HighlightingRectangleImpl
public HighlightingRectangleImpl(String text, int ref, double ulx, double uly, double lrx, double lry)
-
-
Method Detail
-
getText
public String getText()
Description copied from interface:HighlightingRectangleThe text to be highlighted (e.g. for plaintext representation)- Specified by:
getTextin interfaceHighlightingRectangle- Returns:
- the text
-
getRef
public int getRef()
Description copied from interface:HighlightingRectangleThe reference of the highlight rectangle, e.g. a page number- Specified by:
getRefin interfaceHighlightingRectangle- Returns:
- the value of the reference
-
getUlx
public double getUlx()
Description copied from interface:HighlightingRectangleThe relative abscissa (x) of the upper left point of the rectangle- Specified by:
getUlxin interfaceHighlightingRectangle- Returns:
- a value in the range [0..1]
-
getUly
public double getUly()
Description copied from interface:HighlightingRectangleThe relative ordinate (y) of the upper left point of the rectangle- Specified by:
getUlyin interfaceHighlightingRectangle- Returns:
- a value in the range [0..1]
-
getLrx
public double getLrx()
Description copied from interface:HighlightingRectanglethe relative abscissa of the lower right point of the rectangle- Specified by:
getLrxin interfaceHighlightingRectangle- Returns:
- a value in the range [0..1]
-
getLry
public double getLry()
Description copied from interface:HighlightingRectanglethe relative ordinate of the lower right point of the rectangle- Specified by:
getLryin interfaceHighlightingRectangle- Returns:
- a value in the range [0..1]
-
-