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

    Constructors
    Constructor
    Description
    Stamp(float[] rect, float[] color, String icon)
    Create 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 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

    • Stamp

      public Stamp(float[] rect, float[] color, String icon)
      Create a new Stamp annotation.
      Parameters:
      rect - two diagonally opposite coordinate points that indicate the annotation's bounding box
      color - the color of the annotation
      icon - the icon for the stamp. See AnnotationIcons
    • 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 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
      icon - the icon for the stamp. See AnnotationIcons
    • 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 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
      icon - the icon for the stamp. See AnnotationIcons
  • 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 org.jpedal.annotation.Markup
      Returns:
      a dictionary containing the relevant entries.