Package org.jpedal.annotation
Class Highlight
java.lang.Object
org.jpedal.annotation.Annotation
org.jpedal.annotation.Highlight
Defines a Highlight annotation.
Highlights in the text of a document.
-
Constructor Summary
ConstructorsConstructorDescriptionHighlight
(float[] rect, float[] color, float[] quadPoints) Create a new Highlight annotation.Highlight
(float[] rect, int flags, float[] color, float strokingAlpha, float nonStrokingAlpha, float[] quadPoints) Create a new Highlight annotation.Highlight
(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title, float[] quadPoints) Create a new Highlight annotation. -
Method Summary
Methods inherited from class org.jpedal.annotation.Annotation
getFlagsValue
-
Constructor Details
-
Highlight
public Highlight(float[] rect, float[] color, float[] quadPoints) Create a new Highlight annotation.- Parameters:
rect
- two diagonally opposite coordinate points that indicate the annotation's bounding boxcolor
- the color of the annotationquadPoints
- An array of 8 x n numbers specifying the coordinates of n quadrilaterals in default user space. Each quadrilateral shall encompasses a word or group of contiguous words in the text underlying the annotation. The coordinates for each quadrilateral shall be given in the order: x1 y1 x2 y2 x3 y3 x4 y4 specifying the quadrilateral’s four vertices in counterclockwise order.
-
Highlight
public Highlight(float[] rect, int flags, float[] color, float strokingAlpha, float nonStrokingAlpha, float[] quadPoints) Create a new Highlight annotation.- Parameters:
rect
- two diagonally opposite coordinate points that indicate the annotation's bounding boxflags
- the annotation's flags. SeeAnnotation.getFlagsValue(boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean)
color
- the color of the annotationstrokingAlpha
- the line transparency valuenonStrokingAlpha
- the fill transparency valuequadPoints
- An array of 8 x n numbers specifying the coordinates of n quadrilaterals in default user space. Each quadrilateral shall encompasses a word or group of contiguous words in the text underlying the annotation. The coordinates for each quadrilateral shall be given in the order: x1 y1 x2 y2 x3 y3 x4 y4 specifying the quadrilateral’s four vertices in counterclockwise order.
-
Highlight
public Highlight(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title, float[] quadPoints) Create a new Highlight annotation.- Parameters:
rect
- two diagonally opposite coordinate points that indicate the annotation's bounding boxflags
- the annotation's flags. SeeAnnotation.getFlagsValue(boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean)
contents
- text that shall be displayed or nullcolor
- the color of the annotationstrokingAlpha
- the line transparency valuenonStrokingAlpha
- the fill transparency valuetitle
- the text for the title barquadPoints
- An array of 8 x n numbers specifying the coordinates of n quadrilaterals in default user space. Each quadrilateral shall encompasses a word or group of contiguous words in the text underlying the annotation. The coordinates for each quadrilateral shall be given in the order: x1 y1 x2 y2 x3 y3 x4 y4 specifying the quadrilateral’s four vertices in counterclockwise order.
-