Package org.jpedal.annotation
Class Link
java.lang.Object
org.jpedal.annotation.Annotation
org.jpedal.annotation.Link
Defines a Link annotation.
A link annotation represents a hypertext link to a destination elsewhere in the document. Actions are not yet supported.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jpedal.annotation.Annotation
getFlagsValue, setDownAppearance, setNormalAppearance, setRolloverAppearance
-
Constructor Details
-
Link
Create a new Link annotation.- Parameters:
rect- two diagonally opposite coordinate points that indicate the annotation's bounding boxcolor- the color of the annotationurl- the uniform resource identifier to resolve, encoded in UTF-8
-
Link
public Link(float[] rect, int flags, float[] color, float strokingAlpha, float nonStrokingAlpha, String url) Create a new Link 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 valueurl- the uniform resource identifier to resolve, encoded in UTF-8
-