Class Stamp


public final class Stamp extends Annotation
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

    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