Package org.jpedal.annotation
Class Text
java.lang.Object
org.jpedal.annotation.Annotation
org.jpedal.annotation.Text
Defines a Text annotation.
A text annotation represents a "sticky note" attached to a point in the PDF document. When closed, the annotation shall appear as an icon; when open, it shall display a popup window containing the text of the note in a font and size chosen by the interactive PDF processor.
-
Constructor Summary
ConstructorsConstructorDescriptionText
(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, boolean open, String icon) Create a new Text annotation.Text
(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title, boolean open, String icon) Create a new Text annotation.Create a new Text annotation.Create a new Text annotation. -
Method Summary
Methods inherited from class org.jpedal.annotation.Annotation
getFlagsValue
-
Constructor Details
-
Text
Create a new Text annotation.- Parameters:
rect
- two diagonally opposite coordinate points that indicate the annotation's bounding boxcontents
- text that shall be displayed or nullcolor
- the color of the annotationicon
- the icon used. See "sticky note" iconsAnnotationIcons
-
Text
Create a new Text annotation.- Parameters:
rect
- two diagonally opposite coordinate points that indicate the annotation's bounding boxcontents
- text that shall be displayed or nullcolor
- the color of the annotationopen
- whether the text shall initially be display openicon
- the icon used. See "sticky note" iconsAnnotationIcons
-
Text
public Text(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, boolean open, String icon) Create a new Text 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 valueopen
- whether the text shall initially be display openicon
- the icon used. See "sticky note" iconsAnnotationIcons
-
Text
public Text(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title, boolean open, String icon) Create a new Text 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 baropen
- whether the text shall initially be display openicon
- the icon used. See "sticky note" iconsAnnotationIcons
-