|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.lowagie.text.Phrase
com.lowagie.text.Anchor
An Anchor can be a reference or a destination of a reference.
An Anchor is a special kind of Phrase.
It is constructed in the same way.
Example:
Anchor anchor = new Anchor("this is a link");
anchor.setName("LINK");
anchor.setReference("http://www.lowagie.com");
Element,
Phrase,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class java.util.AbstractList |
|
| Field Summary | |
static String |
ANCHOR
This is the anchor tag. |
protected String |
name
This is the name of the Anchor. |
protected String |
reference
This is the reference of the Anchor. |
| Fields inherited from class com.lowagie.text.Phrase |
font, leading, markupAttributes |
| Fields inherited from class java.util.ArrayList |
|
| Fields inherited from class java.util.AbstractList |
modCount |
| 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, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE |
| Constructor Summary | |
Anchor()
Constructs an Anchor without specifying a leading. |
|
Anchor(Chunk chunk)
Constructs an Anchor with a certain Chunk. |
|
Anchor(float leading)
Constructs an Anchor with a certain leading. |
|
Anchor(float leading,
Chunk chunk)
Constructs an Anchor with a certain Chunk
and a certain leading. |
|
Anchor(float leading,
String string)
Constructs an Anchor with a certain leading
and a certain String. |
|
Anchor(float leading,
String string,
Font font)
Constructs an Anchor with a certain leading,
a certain String and a certain Font. |
|
Anchor(Properties attributes)
Returns an Anchor that has been constructed taking in account
the value of some attributes. |
|
Anchor(String string)
Constructs an Anchor with a certain String. |
|
Anchor(String string,
Font font)
Constructs an Anchor with a certain String
and a certain Font. |
|
| Method Summary | |
ArrayList |
getChunks()
Gets all the chunks in this element. |
Iterator |
getElements()
Gets an iterator of Elements. |
static boolean |
isTag(String tag)
Checks if a given tag corresponds with this object. |
String |
name()
Returns the name of this Anchor. |
boolean |
process(ElementListener listener)
Processes the element by adding it (or the different parts) to an ElementListener. |
String |
reference()
Gets the reference of this Anchor. |
void |
setName(String name)
Sets the name of this Anchor. |
void |
setReference(String reference)
Sets the reference of this Anchor. |
int |
type()
Gets the type of the text element. |
URL |
url()
Gets the reference of this Anchor. |
| Methods inherited from class com.lowagie.text.Phrase |
add, add, addAll, addSpecial, font, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, isEmpty, leading, leadingDefined, setLeading, setMarkupAttribute, setMarkupAttributes |
| Methods inherited from class java.util.ArrayList |
addAll, clear, clone, contains, ensureCapacity, get, indexOf, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.lowagie.text.TextElementArray |
add |
| Methods inherited from interface com.lowagie.text.Element |
toString |
| Methods inherited from interface com.lowagie.text.MarkupAttributes |
getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, setMarkupAttribute, setMarkupAttributes |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
| Field Detail |
public static final String ANCHOR
protected String name
Anchor.
protected String reference
Anchor.
| Constructor Detail |
public Anchor()
Anchor without specifying a leading.
public Anchor(float leading)
Anchor with a certain leading.
leading - the leadingpublic Anchor(Chunk chunk)
Anchor with a certain Chunk.
chunk - a Chunkpublic Anchor(String string)
Anchor with a certain String.
string - a String
public Anchor(String string,
Font font)
Anchor with a certain String
and a certain Font.
string - a Stringfont - a Font
public Anchor(float leading,
Chunk chunk)
Anchor with a certain Chunk
and a certain leading.
leading - the leadingchunk - a Chunk
public Anchor(float leading,
String string)
Anchor with a certain leading
and a certain String.
leading - the leadingstring - a String
public Anchor(float leading,
String string,
Font font)
Anchor with a certain leading,
a certain String and a certain Font.
leading - the leadingstring - a Stringfont - a Fontpublic Anchor(Properties attributes)
Anchor that has been constructed taking in account
the value of some attributes.
attributes - Some attributes| Method Detail |
public boolean process(ElementListener listener)
ElementListener.
process in interface Elementprocess in class Phraselistener - an ElementListener
true if the element was processed successfullypublic ArrayList getChunks()
getChunks in interface ElementgetChunks in class PhraseArrayListpublic int type()
type in interface Elementtype in class Phrasepublic Iterator getElements()
Elements.
Iteratorpublic void setName(String name)
Anchor.
name - a new namepublic void setReference(String reference)
Anchor.
reference - a new referencepublic String name()
Anchor.
public String reference()
Anchor.
public URL url()
Anchor.
URLpublic static boolean isTag(String tag)
tag - the given tag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||