Class Ink


public final class Ink extends Annotation
Defines an Ink annotation.

An ink annotation represents a freehand "scribble" composed of one or more disjoint paths.

  • Constructor Details

    • Ink

      public Ink(float[] rect, float[] color, float[][] inkList, float lineWidth)
      Create a new Ink annotation.
      Parameters:
      rect - two diagonally opposite coordinate points that indicate the annotation's bounding box
      color - the color of the annotation
      inkList - An array of n arrays, each representing a stroked path. Each array shall be a series of alternating horizontal and vertical coordinates in default user space, specifying points along the path.
      lineWidth - the width of the lines
    • Ink

      public Ink(float[] rect, int flags, float[] color, float strokingAlpha, float nonStrokingAlpha, float[][] inkList, float lineWidth)
      Create a new Ink 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
      inkList - An array of n arrays, each representing a stroked path. Each array shall be a series of alternating horizontal and vertical coordinates in default user space, specifying points along the path.
      lineWidth - the width of the lines
    • Ink

      public Ink(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title, float[][] inkList, float lineWidth)
      Create a new Ink 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)
      contents - text that shall be displayed or null
      color - the color of the annotation
      strokingAlpha - the line transparency value
      nonStrokingAlpha - the fill transparency value
      title - the text for the title bar
      inkList - An array of n arrays, each representing a stroked path. Each array shall be a series of alternating horizontal and vertical coordinates in default user space, specifying points along the path.
      lineWidth - the width of the lines