| java.util.ArrayList com.lowagie.text.Phrase com.lowagie.text.Anchor
Anchor | public class Anchor extends Phrase (Code) | | 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: Element See Also: Phrase |
Field Summary | |
protected String | name This is the name of the Anchor . | protected String | reference This is the reference of the Anchor . |
Constructor Summary | |
public | Anchor() Constructs an Anchor without specifying a leading. | public | Anchor(float leading) Constructs an Anchor with a certain leading. | public | Anchor(Chunk chunk) Constructs an Anchor with a certain Chunk . | public | Anchor(String string) Constructs an Anchor with a certain String . | public | Anchor(String string, Font font) Constructs an Anchor with a certain String
and a certain Font . | public | Anchor(float leading, Chunk chunk) Constructs an Anchor with a certain Chunk
and a certain leading. | public | Anchor(float leading, String string) Constructs an Anchor with a certain leading
and a certain String . | public | Anchor(float leading, String string, Font font) Constructs an Anchor with a certain leading,
a certain String and a certain Font . | public | Anchor(Phrase phrase) Constructs an Anchor with a certain Phrase . | public | Anchor(java.util.Properties attributes) Returns an Anchor that has been constructed taking in account
the value of some attributes. |
name | protected String name(Code) | | This is the name of the Anchor .
|
reference | protected String reference(Code) | | This is the reference of the Anchor .
|
Anchor | public Anchor()(Code) | | Constructs an Anchor without specifying a leading.
|
Anchor | public Anchor(float leading)(Code) | | Constructs an Anchor with a certain leading.
Parameters: leading - the leading |
Anchor | public Anchor(Chunk chunk)(Code) | | Constructs an Anchor with a certain Chunk .
Parameters: chunk - a Chunk |
Anchor | public Anchor(String string)(Code) | | Constructs an Anchor with a certain String .
Parameters: string - a String |
Anchor | public Anchor(String string, Font font)(Code) | | Constructs an Anchor with a certain String
and a certain Font .
Parameters: string - a String Parameters: font - a Font |
Anchor | public Anchor(float leading, Chunk chunk)(Code) | | Constructs an Anchor with a certain Chunk
and a certain leading.
Parameters: leading - the leading Parameters: chunk - a Chunk |
Anchor | public Anchor(float leading, String string)(Code) | | Constructs an Anchor with a certain leading
and a certain String .
Parameters: leading - the leading Parameters: string - a String |
Anchor | public Anchor(float leading, String string, Font font)(Code) | | Constructs an Anchor with a certain leading,
a certain String and a certain Font .
Parameters: leading - the leading Parameters: string - a String Parameters: font - a Font |
Anchor | public Anchor(Phrase phrase)(Code) | | Constructs an Anchor with a certain Phrase .
Parameters: phrase - a Phrase |
Anchor | public Anchor(java.util.Properties attributes)(Code) | | Returns an Anchor that has been constructed taking in account
the value of some attributes.
Parameters: attributes - Some attributes |
getChunks | public ArrayList getChunks()(Code) | | Gets all the chunks in this element.
an ArrayList |
getName | public String getName()(Code) | | Returns the name of this Anchor .
a name |
getReference | public String getReference()(Code) | | Gets the reference of this Anchor .
a reference |
getUrl | public URL getUrl()(Code) | | Gets the reference of this Anchor .
an URL |
process | public boolean process(ElementListener listener)(Code) | | Processes the element by adding it (or the different parts) to an
ElementListener .
Parameters: listener - an ElementListener true if the element was processed successfully |
setName | public void setName(String name)(Code) | | Sets the name of this Anchor .
Parameters: name - a new name |
setReference | public void setReference(String reference)(Code) | | Sets the reference of this Anchor .
Parameters: reference - a new reference |
type | public int type()(Code) | | Gets the type of the text element.
a type |
|
|