Class Link


public final class Link extends Annotation
Defines a Link annotation.

A link annotation represents a hypertext link to a destination elsewhere in the document. Actions are not yet supported.

  • Constructor Details

    • Link

      public Link(float[] rect, float[] color, String url)
      Create a new Link annotation.
      Parameters:
      rect - two diagonally opposite coordinate points that indicate the annotation's bounding box
      color - the color of the annotation
      url - 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 box
      flags - the annotation's flags. See Annotation.getFlagsValue(boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean)
      color - the color of the annotation
      strokingAlpha - the line transparency value
      nonStrokingAlpha - the fill transparency value
      url - the uniform resource identifier to resolve, encoded in UTF-8