Class Annotation

java.lang.Object
com.lowagie.text.Annotation
All Implemented Interfaces:
Element

@Deprecated public class Annotation extends Object implements Element
Deprecated.
An Annotation is a little note that can be added to a page on a document.
See Also:
  • Field Details

    • TEXT

      public static final int TEXT
      Deprecated.
      This is a possible annotation type.
      See Also:
    • URL_NET

      public static final int URL_NET
      Deprecated.
      This is a possible annotation type.
      See Also:
    • URL_AS_STRING

      public static final int URL_AS_STRING
      Deprecated.
      This is a possible annotation type.
      See Also:
    • FILE_DEST

      public static final int FILE_DEST
      Deprecated.
      This is a possible annotation type.
      See Also:
    • FILE_PAGE

      public static final int FILE_PAGE
      Deprecated.
      This is a possible annotation type.
      See Also:
    • NAMED_DEST

      public static final int NAMED_DEST
      Deprecated.
      This is a possible annotation type.
      See Also:
    • LAUNCH

      public static final int LAUNCH
      Deprecated.
      This is a possible annotation type.
      See Also:
    • SCREEN

      public static final int SCREEN
      Deprecated.
      This is a possible annotation type.
      See Also:
    • TITLE

      public static final String TITLE
      Deprecated.
      This is a possible attribute.
      See Also:
    • CONTENT

      public static final String CONTENT
      Deprecated.
      This is a possible attribute.
      See Also:
    • URL

      public static final String URL
      Deprecated.
      This is a possible attribute.
      See Also:
    • FILE

      public static final String FILE
      Deprecated.
      This is a possible attribute.
      See Also:
    • DESTINATION

      public static final String DESTINATION
      Deprecated.
      This is a possible attribute.
      See Also:
    • PAGE

      public static final String PAGE
      Deprecated.
      This is a possible attribute.
      See Also:
    • NAMED

      public static final String NAMED
      Deprecated.
      This is a possible attribute.
      See Also:
    • APPLICATION

      public static final String APPLICATION
      Deprecated.
      This is a possible attribute.
      See Also:
    • PARAMETERS

      public static final String PARAMETERS
      Deprecated.
      This is a possible attribute.
      See Also:
    • OPERATION

      public static final String OPERATION
      Deprecated.
      This is a possible attribute.
      See Also:
    • DEFAULTDIR

      public static final String DEFAULTDIR
      Deprecated.
      This is a possible attribute.
      See Also:
    • LLX

      public static final String LLX
      Deprecated.
      This is a possible attribute.
      See Also:
    • LLY

      public static final String LLY
      Deprecated.
      This is a possible attribute.
      See Also:
    • URX

      public static final String URX
      Deprecated.
      This is a possible attribute.
      See Also:
    • URY

      public static final String URY
      Deprecated.
      This is a possible attribute.
      See Also:
    • MIMETYPE

      public static final String MIMETYPE
      Deprecated.
      This is a possible attribute.
      See Also:
    • annotationtype

      protected int annotationtype
      Deprecated.
      This is the type of annotation.
    • annotationAttributes

      protected Map<String,Object> annotationAttributes
      Deprecated.
      This is the title of the Annotation.
    • llx

      protected float llx
      Deprecated.
      This is the lower left x-value
    • lly

      protected float lly
      Deprecated.
      This is the lower left y-value
    • urx

      protected float urx
      Deprecated.
      This is the upper right x-value
    • ury

      protected float ury
      Deprecated.
      This is the upper right y-value
  • Constructor Details

    • Annotation

      public Annotation(Annotation an)
      Deprecated.
      Copy constructor.
      Parameters:
      an - an object of type Annotation that will be copied
    • Annotation

      public Annotation(String title, String text)
      Deprecated.
      Constructs an Annotation with a certain title and some text.
      Parameters:
      title - the title of the annotation
      text - the content of the annotation
    • Annotation

      public Annotation(String title, String text, float llx, float lly, float urx, float ury)
      Deprecated.
      Constructs an Annotation with a certain title and some text.
      Parameters:
      title - the title of the annotation
      text - the content of the annotation
      llx - the lower left x-value
      lly - the lower left y-value
      urx - the upper right x-value
      ury - the upper right y-value
    • Annotation

      public Annotation(float llx, float lly, float urx, float ury, URL url)
      Deprecated.
      Constructs an Annotation.
      Parameters:
      llx - the lower left x-value
      lly - the lower left y-value
      urx - the upper right x-value
      ury - the upper right y-value
      url - the external reference
    • Annotation

      public Annotation(float llx, float lly, float urx, float ury, String url)
      Deprecated.
      Constructs an Annotation.
      Parameters:
      llx - the lower left x-value
      lly - the lower left y-value
      urx - the upper right x-value
      ury - the upper right y-value
      url - the external reference
    • Annotation

      public Annotation(float llx, float lly, float urx, float ury, String file, String dest)
      Deprecated.
      Constructs an Annotation.
      Parameters:
      llx - the lower left x-value
      lly - the lower left y-value
      urx - the upper right x-value
      ury - the upper right y-value
      file - an external PDF file
      dest - the destination in this file
    • Annotation

      public Annotation(float llx, float lly, float urx, float ury, String moviePath, String mimeType, boolean showOnDisplay)
      Deprecated.
      Creates a Screen annotation to embed media clips
      Parameters:
      llx - llx
      lly - lly
      urx - urx
      ury - ury
      moviePath - path to the media clip file
      mimeType - mime type of the media
      showOnDisplay - if true play on display of the page
    • Annotation

      public Annotation(float llx, float lly, float urx, float ury, String file, int page)
      Deprecated.
      Constructs an Annotation.
      Parameters:
      llx - the lower left x-value
      lly - the lower left y-value
      urx - the upper right x-value
      ury - the upper right y-value
      file - an external PDF file
      page - a page number in this file
    • Annotation

      public Annotation(float llx, float lly, float urx, float ury, int named)
      Deprecated.
      Constructs an Annotation.
      Parameters:
      llx - the lower left x-value
      lly - the lower left y-value
      urx - the upper right x-value
      ury - the upper right y-value
      named - a named destination in this file
    • Annotation

      public Annotation(float llx, float lly, float urx, float ury, String application, String parameters, String operation, String defaultdir)
      Deprecated.
      Constructs an Annotation.
      Parameters:
      llx - the lower left x-value
      lly - the lower left y-value
      urx - the upper right x-value
      ury - the upper right y-value
      application - an external application
      parameters - parameters to pass to this application
      operation - the operation to pass to this application
      defaultdir - the default directory to run this application in
  • Method Details

    • type

      public int type()
      Deprecated.
      Gets the type of the text element.
      Specified by:
      type in interface Element
      Returns:
      a type
    • process

      public boolean process(ElementListener listener)
      Deprecated.
      Processes the element by adding it (or the different parts) to an ElementListener.
      Specified by:
      process in interface Element
      Parameters:
      listener - an ElementListener
      Returns:
      true if the element was processed successfully
    • getChunks

      public ArrayList<Element> getChunks()
      Deprecated.
      Gets all the chunks in this element.
      Specified by:
      getChunks in interface Element
      Returns:
      an ArrayList
    • setDimensions

      public void setDimensions(float llx, float lly, float urx, float ury)
      Deprecated.
      Sets the dimensions of this annotation.
      Parameters:
      llx - the lower left x-value
      lly - the lower left y-value
      urx - the upper right x-value
      ury - the upper right y-value
    • llx

      public float llx()
      Deprecated.
      Returns the lower left x-value.
      Returns:
      a value
    • lly

      public float lly()
      Deprecated.
      Returns the lower left y-value.
      Returns:
      a value
    • urx

      public float urx()
      Deprecated.
      Returns the upper right x-value.
      Returns:
      a value
    • ury

      public float ury()
      Deprecated.
      Returns the upper right y-value.
      Returns:
      a value
    • llx

      public float llx(float def)
      Deprecated.
      Returns the lower left x-value.
      Parameters:
      def - the default value
      Returns:
      a value
    • lly

      public float lly(float def)
      Deprecated.
      Returns the lower left y-value.
      Parameters:
      def - the default value
      Returns:
      a value
    • urx

      public float urx(float def)
      Deprecated.
      Returns the upper right x-value.
      Parameters:
      def - the default value
      Returns:
      a value
    • ury

      public float ury(float def)
      Deprecated.
      Returns the upper right y-value.
      Parameters:
      def - the default value
      Returns:
      a value
    • annotationType

      public int annotationType()
      Deprecated.
      Returns the type of this Annotation.
      Returns:
      a type
    • title

      public String title()
      Deprecated.
      Returns the title of this Annotation.
      Returns:
      a name
    • content

      public String content()
      Deprecated.
      Gets the content of this Annotation.
      Returns:
      a reference
    • getAttributes

      public Map<String,Object> getAttributes()
      Deprecated.
      Gets the content of this Annotation.
      Returns:
      a reference
    • isContent

      public boolean isContent()
      Deprecated.
      Description copied from interface: Element
      Checks if this element is a content object. If not, it's a metadata object.
      Specified by:
      isContent in interface Element
      Returns:
      true if this is a 'content' element; false if this is a 'metadata' element
      Since:
      iText 2.0.8
      See Also:
    • isNestable

      public boolean isNestable()
      Deprecated.
      Description copied from interface: Element
      Checks if this element is nestable.
      Specified by:
      isNestable in interface Element
      Returns:
      true if this element can be nested inside other elements.
      Since:
      iText 2.0.8
      See Also: