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.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThis is the title of theAnnotation
.protected int
This is the type of annotation.static final String
This is a possible attribute.static final String
This is a possible attribute.static final String
This is a possible attribute.static final String
This is a possible attribute.static final String
This is a possible attribute.static final int
This is a possible annotation type.static final int
This is a possible annotation type.static final int
This is a possible annotation type.protected float
This is the lower left x-valuestatic final String
This is a possible attribute.protected float
This is the lower left y-valuestatic final String
This is a possible attribute.static final String
This is a possible attribute.static final String
This is a possible attribute.static final int
This is a possible annotation type.static final String
This is a possible attribute.static final String
This is a possible attribute.static final String
This is a possible attribute.static final int
This is a possible annotation type.static final int
This is a possible annotation type.static final String
This is a possible attribute.static final String
This is a possible attribute.static final int
This is a possible annotation type.static final int
This is a possible annotation type.protected float
This is the upper right x-valuestatic final String
This is a possible attribute.protected float
This is the upper right y-valuestatic final String
This 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, FOOTNOTE, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MODIFICATIONDATE, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, YMARK
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Annotation
(float llx, float lly, float urx, float ury) Constructs anAnnotation
with a certain title and some text.Annotation
(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 anAnnotation
with a certain title and some text.Annotation
(String title, String text, float llx, float lly, float urx, float ury) Constructs anAnnotation
with a certain title and some text. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the type of thisAnnotation
.content()
Gets the content of thisAnnotation
.Gets the content of thisAnnotation
.Gets all the chunks in this element.boolean
Checks if this element is a content object.boolean
Checks if this element is nestable.float
llx()
Returns the lower left x-value.float
llx
(float def) Returns the lower left x-value.float
lly()
Returns the lower left y-value.float
lly
(float def) Returns the lower left y-value.boolean
process
(ElementListener listener) Processes the element by adding it (or the different parts) to anElementListener
.void
setDimensions
(float llx, float lly, float urx, float ury) Sets the dimensions of this annotation.title()
Returns the title of thisAnnotation
.int
type()
Gets the type of the text element.float
urx()
Returns the upper right x-value.float
urx
(float def) Returns the upper right x-value.float
ury()
Returns the upper right y-value.float
ury
(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
private Annotation(float llx, float lly, float urx, float ury) Constructs anAnnotation
with a certain title and some text.- Parameters:
llx
- lower left x coordinatelly
- lower left y coordinateurx
- upper right x coordinateury
- upper right y coordinate
-
Annotation
Copy constructor.- Parameters:
an
- an object of typeAnnotation
that will be copied
-
Annotation
Constructs anAnnotation
with a certain title and some text.- Parameters:
title
- the title of the annotationtext
- the content of the annotation
-
Annotation
Constructs anAnnotation
with 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 -
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
-
getAttributes
Gets the content of thisAnnotation
.- Returns:
- a reference
-
isContent
public boolean isContent()Description copied from interface:Element
Checks if this element is a content object. If not, it's a metadata object. -
isNestable
public boolean isNestable()Description copied from interface:Element
Checks if this element is nestable.- Specified by:
isNestable
in interfaceElement
- Returns:
- true if this element can be nested inside other elements.
- Since:
- iText 2.0.8
- See Also:
-