Modifier and Type | Field and Description |
---|---|
protected HashMap<String,Object> |
annotationAttributes
This is the title of the Annotation .
|
protected int |
annotationtype
This is the type of annotation.
|
static String |
APPLICATION
This is a possible attribute.
|
static String |
CONTENT
This is a possible attribute.
|
static String |
DEFAULTDIR
This is a possible attribute.
|
static String |
DESTINATION
This is a possible attribute.
|
static String |
FILE
This is a possible attribute.
|
static int |
FILE_DEST
This is a possible annotation type.
|
static int |
FILE_PAGE
This is a possible annotation type.
|
static int |
LAUNCH
This is a possible annotation type.
|
protected float |
llx
This is the lower left x-value
|
static String |
LLX
This is a possible attribute.
|
protected float |
lly
This is the lower left y-value
|
static String |
LLY
This is a possible attribute.
|
static String |
MIMETYPE
This is a possible attribute.
|
static String |
NAMED
This is a possible attribute.
|
static int |
NAMED_DEST
This is a possible annotation type.
|
static String |
OPERATION
This is a possible attribute.
|
static String |
PAGE
This is a possible attribute.
|
static String |
PARAMETERS
This is a possible attribute.
|
static int |
SCREEN
This is a possible annotation type.
|
static int |
TEXT
This is a possible annotation type.
|
static String |
TITLE
This is a possible attribute.
|
static String |
URL
This is a possible attribute.
|
static int |
URL_AS_STRING
This is a possible annotation type.
|
static int |
URL_NET
This is a possible annotation type.
|
protected float |
urx
This is the upper right x-value
|
static String |
URX
This is a possible attribute.
|
protected float |
ury
This is the upper right y-value
|
static String |
URY
This is a possible attribute.
|
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, BODY, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CHAPTER, CHUNK, CREATIONDATE, CREATOR, DIV, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LANGUAGE, LIST, LISTITEM, MARKED, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, SECTION, SUBJECT, WRITABLE_DIRECT, YMARK
Constructor and Description |
---|
Annotation(Annotation an)
Copy constructor.
|
Annotation(float llx, float lly, float urx, float ury, int named)
Constructs an Annotation .
|
Annotation(float llx, float lly, float urx, float ury, String url)
Constructs an Annotation .
|
Annotation(float llx, float lly, float urx, float ury, String file, int page)
Constructs an Annotation .
|
Annotation(float llx, float lly, float urx, float ury, String file, String dest)
Constructs an Annotation .
|
Annotation(float llx, float lly, float urx, float ury, String moviePath, String mimeType, boolean showOnDisplay)
Creates a Screen annotation to embed media clips
|
Annotation(float llx, float lly, float urx, float ury, String application, String parameters, String operation, String defaultdir)
Constructs an Annotation .
|
Annotation(float llx, float lly, float urx, float ury, URL url)
Constructs an Annotation .
|
Annotation(String title, String text)
Constructs an Annotation with a certain title and some text.
|
Annotation(String title, String text, float llx, float lly, float urx, float ury)
Constructs an Annotation with a certain title and some text.
|
Modifier and Type | Method and Description |
---|---|
int |
annotationType()
Returns the type of this Annotation .
|
HashMap<String,Object> |
attributes()
Gets the content of this Annotation .
|
String |
content()
Gets the content of this Annotation .
|
List<Chunk> |
getChunks()
Gets all the chunks in this element.
|
boolean |
isContent()
Checks if this element is a content object.
|
boolean |
isNestable()
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 an ElementListener .
|
void |
setDimensions(float llx, float lly, float urx, float ury)
Sets the dimensions of this annotation.
|
String |
title()
Returns the title of this Annotation .
|
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.
|
public static final int TEXT
public static final int URL_NET
public static final int URL_AS_STRING
public static final int FILE_DEST
public static final int FILE_PAGE
public static final int NAMED_DEST
public static final int LAUNCH
public static final int SCREEN
public static final String TITLE
public static final String CONTENT
public static final String URL
public static final String FILE
public static final String DESTINATION
public static final String PAGE
public static final String NAMED
public static final String APPLICATION
public static final String PARAMETERS
public static final String OPERATION
public static final String DEFAULTDIR
public static final String LLX
public static final String LLY
public static final String URX
public static final String URY
public static final String MIMETYPE
protected int annotationtype
protected HashMap<String,Object> annotationAttributes
Annotation
.
protected float llx
protected float lly
protected float urx
protected float ury
public Annotation(Annotation an)
an
- the annotation to create a new Annotation from
public Annotation(String title, String text)
Annotation
with a certain title and some text.
title
- the title of the annotation
text
- the content of the annotation
public Annotation(String title, String text, float llx, float lly, float urx, float ury)
Annotation
with a certain title and some text.
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
public Annotation(float llx, float lly, float urx, float ury, URL url)
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
url
- the external reference
public Annotation(float llx, float lly, float urx, float ury, String url)
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
url
- the external reference
public Annotation(float llx, float lly, float urx, float ury, String file, String dest)
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
file
- an external PDF file
dest
- the destination in this file
public Annotation(float llx, float lly, float urx, float ury, String moviePath, String mimeType, boolean showOnDisplay)
llx
-
lly
-
urx
-
ury
-
moviePath
- path to the media clip file
mimeType
- mime type of the media
showOnDisplay
- if true play on display of the page
public Annotation(float llx, float lly, float urx, float ury, String file, int page)
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
file
- an external PDF file
page
- a page number in this file
public Annotation(float llx, float lly, float urx, float ury, int named)
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
named
- a named destination in this file
public Annotation(float llx, float lly, float urx, float ury, String application, String parameters, String operation, String defaultdir)
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
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
public int type()
public boolean process(ElementListener listener)
ElementListener
.
public void setDimensions(float llx, float lly, float urx, float ury)
llx
- the lower left x-value
lly
- the lower left y-value
urx
- the upper right x-value
ury
- the upper right y-value
public float llx()
public float lly()
public float urx()
public float ury()
public float llx(float def)
def
- the default value
public float lly(float def)
def
- the default value
public float urx(float def)
def
- the default value
public float ury(float def)
def
- the default value
public int annotationType()
Annotation
.
public String title()
Annotation
.
public String content()
Annotation
.
public HashMap<String,Object> attributes()
Annotation
.
public boolean isContent()
Element
isContent
in interface Element
Element.isContent()
public boolean isNestable()
Element
isNestable
in interface Element
Element.isNestable()
Copyright © 1998–2018. All rights reserved.