Package org.jpedal.annotation
Class Stamp
java.lang.Object
org.jpedal.annotation.Annotation
org.jpedal.annotation.Markup
org.jpedal.annotation.Stamp
public final class Stamp
extends org.jpedal.annotation.Markup
Defines a Stamp annotation.
A rubber stamp annotation displays text or graphics intended to look as if they were stamped on the page with a rubber stamp.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new Stamp annotation.Stamp
(float[] rect, int flags, float[] color, float strokingAlpha, float nonStrokingAlpha, String icon) Create a new Stamp annotation.Stamp
(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title, String icon) Create a new Stamp annotation. -
Method Summary
Modifier and TypeMethodDescriptionorg.jpedal.io.annotation.utils.AnnotDict
getDict()
Creates the annotation dictionary.Methods inherited from class org.jpedal.annotation.Annotation
getFlagsValue
-
Constructor Details
-
Stamp
Create a new Stamp annotation.- Parameters:
rect
- two diagonally opposite coordinate points that indicate the annotation's bounding boxcolor
- the color of the annotationicon
- the icon for the stamp. SeeAnnotationIcons
-
Stamp
public Stamp(float[] rect, int flags, float[] color, float strokingAlpha, float nonStrokingAlpha, String icon) Create a new Stamp 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 valueicon
- the icon for the stamp. SeeAnnotationIcons
-
Stamp
public Stamp(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title, String icon) Create a new Stamp 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 baricon
- the icon for the stamp. SeeAnnotationIcons
-
-
Method Details
-
getDict
public org.jpedal.io.annotation.utils.AnnotDict getDict()Creates the annotation dictionary.This method is considered as not part of the public API.
- Overrides:
getDict
in classorg.jpedal.annotation.Markup
- Returns:
- a dictionary containing the relevant entries.
-