Package com.lowagie.text
Class Annotation
java.lang.Object
com.lowagie.text.Annotation
- All Implemented Interfaces:
Element
An
Annotation is a little note that can be added to a page on
a document.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashMapThis is the title of theAnnotation.protected intThis is the type of annotation.static final StringThis is a possible attribute.static final StringThis is a possible attribute.static final StringThis is a possible attribute.static final StringThis is a possible attribute.static final StringThis is a possible attribute.static final intThis is a possible annotation type.static final intThis is a possible annotation type.static final intThis is a possible annotation type.protected floatThis is the lower left x-valuestatic final StringThis is a possible attribute.protected floatThis is the lower left y-valuestatic final StringThis is a possible attribute.static final StringThis is a possible attribute.static final StringThis is a possible attribute.static final intThis is a possible annotation type.static final StringThis is a possible attribute.static final StringThis is a possible attribute.static final StringThis is a possible attribute.static final intThis is a possible annotation type.static final intThis is a possible annotation type.static final StringThis is a possible attribute.static final StringThis is a possible attribute.static final intThis is a possible annotation type.static final intThis is a possible annotation type.protected floatThis is the upper right x-valuestatic final StringThis is a possible attribute.protected floatThis is the upper right y-valuestatic final StringThis is a possible attribute.Fields inherited from interface com.lowagie.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, YMARK -
Constructor Summary
ConstructorsConstructorDescriptionAnnotation(float llx, float lly, float urx, float ury, int named) Constructs anAnnotation.Annotation(float llx, float lly, float urx, float ury, String url) Constructs anAnnotation.Annotation(float llx, float lly, float urx, float ury, String file, int page) Constructs anAnnotation.Annotation(float llx, float lly, float urx, float ury, String file, String dest) Constructs anAnnotation.Annotation(float llx, float lly, float urx, float ury, String moviePath, String mimeType, boolean showOnDisplay) Creates a Screen annotation to embed media clipsAnnotation(float llx, float lly, float urx, float ury, String application, String parameters, String operation, String defaultdir) Constructs anAnnotation.Annotation(float llx, float lly, float urx, float ury, URL url) Constructs anAnnotation.Annotation(Annotation an) Copy constructor.Annotation(String title, String text) Constructs anAnnotationwith a certain title and some text.Annotation(String title, String text, float llx, float lly, float urx, float ury) Constructs anAnnotationwith a certain title and some text. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the type of thisAnnotation.Gets the content of thisAnnotation.content()Gets the content of thisAnnotation.Gets all the chunks in this element.booleanChecks if this element is a content object.booleanChecks if this element is nestable.floatllx()Returns the lower left x-value.floatllx(float def) Returns the lower left x-value.floatlly()Returns the lower left y-value.floatlly(float def) Returns the lower left y-value.booleanprocess(ElementListener listener) Processes the element by adding it (or the different parts) to anElementListener.voidsetDimensions(float llx, float lly, float urx, float ury) Sets the dimensions of this annotation.title()Returns the title of thisAnnotation.inttype()Gets the type of the text element.floaturx()Returns the upper right x-value.floaturx(float def) Returns the upper right x-value.floatury()Returns the upper right y-value.floatury(float def) Returns the upper right y-value.
-
Field Details
-
TEXT
public static final int TEXTThis is a possible annotation type.- See Also:
-
URL_NET
public static final int URL_NETThis is a possible annotation type.- See Also:
-
URL_AS_STRING
public static final int URL_AS_STRINGThis is a possible annotation type.- See Also:
-
FILE_DEST
public static final int FILE_DESTThis is a possible annotation type.- See Also:
-
FILE_PAGE
public static final int FILE_PAGEThis is a possible annotation type.- See Also:
-
NAMED_DEST
public static final int NAMED_DESTThis is a possible annotation type.- See Also:
-
LAUNCH
public static final int LAUNCHThis is a possible annotation type.- See Also:
-
SCREEN
public static final int SCREENThis is a possible annotation type.- See Also:
-
TITLE
This is a possible attribute.- See Also:
-
CONTENT
This is a possible attribute.- See Also:
-
URL
This is a possible attribute.- See Also:
-
FILE
This is a possible attribute.- See Also:
-
DESTINATION
This is a possible attribute.- See Also:
-
PAGE
This is a possible attribute.- See Also:
-
NAMED
This is a possible attribute.- See Also:
-
APPLICATION
This is a possible attribute.- See Also:
-
PARAMETERS
This is a possible attribute.- See Also:
-
OPERATION
This is a possible attribute.- See Also:
-
DEFAULTDIR
This is a possible attribute.- See Also:
-
LLX
This is a possible attribute.- See Also:
-
LLY
This is a possible attribute.- See Also:
-
URX
This is a possible attribute.- See Also:
-
URY
This is a possible attribute.- See Also:
-
MIMETYPE
This is a possible attribute.- See Also:
-
annotationtype
protected int annotationtypeThis is the type of annotation. -
annotationAttributes
This is the title of theAnnotation. -
llx
protected float llxThis is the lower left x-value -
lly
protected float llyThis is the lower left y-value -
urx
protected float urxThis is the upper right x-value -
ury
protected float uryThis is the upper right y-value
-
-
Constructor Details
-
Annotation
Copy constructor. -
Annotation
Constructs anAnnotationwith a certain title and some text.- Parameters:
title- the title of the annotationtext- the content of the annotation
-
Annotation
Constructs anAnnotationwith a certain title and some text.- Parameters:
title- the title of the annotationtext- the content of the annotationllx- the lower left x-valuelly- the lower left y-valueurx- the upper right x-valueury- the upper right y-value
-
Annotation
Constructs anAnnotation.- Parameters:
llx- the lower left x-valuelly- the lower left y-valueurx- the upper right x-valueury- the upper right y-valueurl- the external reference
-
Annotation
Constructs anAnnotation.- Parameters:
llx- the lower left x-valuelly- the lower left y-valueurx- the upper right x-valueury- the upper right y-valueurl- the external reference
-
Annotation
Constructs anAnnotation.- Parameters:
llx- the lower left x-valuelly- the lower left y-valueurx- the upper right x-valueury- the upper right y-valuefile- an external PDF filedest- the destination in this file
-
Annotation
public Annotation(float llx, float lly, float urx, float ury, String moviePath, String mimeType, boolean showOnDisplay) Creates a Screen annotation to embed media clips- Parameters:
llx-lly-urx-ury-moviePath- path to the media clip filemimeType- mime type of the mediashowOnDisplay- if true play on display of the page
-
Annotation
Constructs anAnnotation.- Parameters:
llx- the lower left x-valuelly- the lower left y-valueurx- the upper right x-valueury- the upper right y-valuefile- an external PDF filepage- a page number in this file
-
Annotation
public Annotation(float llx, float lly, float urx, float ury, int named) Constructs anAnnotation.- Parameters:
llx- the lower left x-valuelly- the lower left y-valueurx- the upper right x-valueury- the upper right y-valuenamed- 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) Constructs anAnnotation.- Parameters:
llx- the lower left x-valuelly- the lower left y-valueurx- the upper right x-valueury- the upper right y-valueapplication- an external applicationparameters- parameters to pass to this applicationoperation- the operation to pass to this applicationdefaultdir- the default directory to run this application in
-
-
Method Details
-
type
public int type()Gets the type of the text element. -
process
Processes the element by adding it (or the different parts) to anElementListener. -
getChunks
Gets all the chunks in this element. -
setDimensions
public void setDimensions(float llx, float lly, float urx, float ury) Sets the dimensions of this annotation.- Parameters:
llx- the lower left x-valuelly- the lower left y-valueurx- the upper right x-valueury- the upper right y-value
-
llx
public float llx()Returns the lower left x-value.- Returns:
- a value
-
lly
public float lly()Returns the lower left y-value.- Returns:
- a value
-
urx
public float urx()Returns the upper right x-value.- Returns:
- a value
-
ury
public float ury()Returns the upper right y-value.- Returns:
- a value
-
llx
public float llx(float def) Returns the lower left x-value.- Parameters:
def- the default value- Returns:
- a value
-
lly
public float lly(float def) Returns the lower left y-value.- Parameters:
def- the default value- Returns:
- a value
-
urx
public float urx(float def) Returns the upper right x-value.- Parameters:
def- the default value- Returns:
- a value
-
ury
public float ury(float def) Returns the upper right y-value.- Parameters:
def- the default value- Returns:
- a value
-
annotationType
public int annotationType()Returns the type of thisAnnotation.- Returns:
- a type
-
title
Returns the title of thisAnnotation.- Returns:
- a name
-
content
Gets the content of thisAnnotation.- Returns:
- a reference
-
attributes
Gets the content of thisAnnotation.- Returns:
- a reference
-
isContent
public boolean isContent()Description copied from interface:ElementChecks if this element is a content object. If not, it's a metadata object. -
isNestable
public boolean isNestable()Description copied from interface:ElementChecks if this element is nestable.- Specified by:
isNestablein interfaceElement- Returns:
- true if this element can be nested inside other elements.
- Since:
- iText 2.0.8
- See Also:
-