Class Anchor
- All Implemented Interfaces:
Element, TextElementArray, Serializable, Cloneable, Iterable<Element>, Collection<Element>, List<Element>, RandomAccess, SequencedCollection<Element>
Deprecated.
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");
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDeprecated.This is the name of theAnchor.protected StringDeprecated.This is the reference of theAnchor.private static final longDeprecated.Fields inherited from class Phrase
font, hyphenation, leadingFields inherited from class AbstractList
modCountFields inherited from interface 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, TITLE, YMARK -
Constructor Summary
ConstructorsConstructorDescriptionAnchor()Deprecated.Constructs anAnchorwithout specifying a leading.Anchor(float leading) Deprecated.Constructs anAnchorwith a certain leading.Deprecated.Constructs anAnchorwith a certainChunkand a certain leading.Deprecated.Constructs anAnchorwith a certain leading and a certainString.Deprecated.Constructs anAnchorwith a certain leading, a certainStringand a certainFont.Deprecated.Constructs anAnchorwith a certainChunk.Deprecated.Constructs anAnchorwith a certainPhrase.Deprecated.Constructs anAnchorwith a certainString.Deprecated.Constructs anAnchorwith a certainStringand a certainFont. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets all the chunks in this element.getName()Deprecated.Returns the name of thisAnchor.Deprecated.Gets the reference of thisAnchor.getUrl()Deprecated.Gets the reference of thisAnchor.booleanprocess(ElementListener listener) Deprecated.Processes the element by adding it (or the different parts) to anElementListener.voidDeprecated.Sets the name of thisAnchor.voidsetReference(String reference) Deprecated.Sets the reference of thisAnchor.inttype()Deprecated.Gets the type of the text element.Methods inherited from class Phrase
add, add, add, addAll, addChunk, addSpecial, getContent, getFont, getHyphenation, getInstance, getInstance, getInstance, getLeading, hasLeading, isContent, isEmpty, isNestable, setFont, setHyphenation, setLeadingMethods inherited from class ArrayList
addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class AbstractCollection
containsAll, toStringMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface List
containsAll, reversed
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.- See Also:
-
name
-
reference
-
-
Constructor Details
-
Anchor
public Anchor()Deprecated.Constructs anAnchorwithout specifying a leading. -
Anchor
public Anchor(float leading) Deprecated.Constructs anAnchorwith a certain leading.- Parameters:
leading- the leading
-
Anchor
Deprecated.Constructs anAnchorwith a certainChunk.- Parameters:
chunk- aChunk
-
Anchor
Deprecated.Constructs anAnchorwith a certainString.- Parameters:
string- aString
-
Anchor
-
Anchor
Deprecated.Constructs anAnchorwith a certainChunkand a certain leading.- Parameters:
leading- the leadingchunk- aChunk
-
Anchor
Deprecated.Constructs anAnchorwith a certain leading and a certainString.- Parameters:
leading- the leadingstring- aString
-
Anchor
-
Anchor
Deprecated.Constructs anAnchorwith a certainPhrase.- Parameters:
phrase- aPhrase
-
-
Method Details
-
process
Deprecated.Processes the element by adding it (or the different parts) to anElementListener. -
getChunks
-
type
-
getName
-
setName
Deprecated.Sets the name of thisAnchor.- Parameters:
name- a new name
-
getReference
-
setReference
Deprecated.Sets the reference of thisAnchor.- Parameters:
reference- a new reference
-
getUrl
-