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 Summary

    Constructors
    Constructor
    Description
    Link(float[] rect, float[] color, String url)
    Create a new Link annotation.
    Link(float[] rect, int flags, float[] color, float strokingAlpha, float nonStrokingAlpha, String url)
    Create a new Link annotation.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jpedal.io.annotation.utils.AnnotDict
    Creates the annotation dictionary.

    Methods inherited from class org.jpedal.annotation.Annotation

    getFlagsValue

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
  • 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 class Annotation
      Returns:
      a dictionary containing the relevant entries.