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 booleanequals(java.lang.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 numberjava.lang.StringgetText()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()java.lang.StringtoString()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: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]
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-