Packageorg.purepdf.elements
Classpublic class Anchor
InheritanceAnchor Inheritance Phrase Inheritance Object

An Anchor can be a reference or a destination of a reference. Example:
	 var anchor: Anchor = new Anchor("this is a link");
	 anchor.name = "LINK";
	 anchor.reference = "http://code.google.com/p/purepdf";
	 

See also

IElement
Phrase


Public Properties
 PropertyDefined By
 Inheritedfont : Font
Phrase
 InheritedhasLeading : Boolean
[read-only] Checks you if the leading of this phrase is defined.
Phrase
 InheritedisContent : Boolean
[read-only]
Phrase
 InheritedisEmpty : Boolean
[read-only]
Phrase
 InheritedisNestable : Boolean
[read-only]
Phrase
 Inheritedleading : Number
Phrase
  name : String
Anchor
  reference : String
Anchor
 Inheritedsize : uint
[read-only]
Phrase
  type : int
[override] [read-only]
Anchor
  url : URLRequest
[read-only]
Anchor
Protected Properties
 PropertyDefined By
 Inherited_array : Vector.<Object>
Phrase
 Inherited_font : Font
Phrase
 Inherited_leading : Number = NaN
Phrase
  _name : String = null
Anchor
  _reference : String = null
Anchor
Public Methods
 MethodDefined By
  
Anchor($text:String, $font:Font = null)
Anchor
 Inherited
add(o:Object):Boolean
Adds a Chunk, Ancor or another Phrase
Phrase
 Inherited
addAll(collection:IIterable):Boolean
Phrase
  
[static]
Anchor
  
fromPhrase(phrase:Phrase = null):Anchor
[static] Create a new Anchor from a starting Phrase or Anchor
Anchor
  
getChunks():Vector.<Object>
[override]
Anchor
 Inherited
getValue(index:int):Object
Phrase
 Inherited
initFromChunk(chunk:Chunk):void
Phrase
 Inherited
initFromPhrase(phrase:Phrase):void
Phrase
 Inherited
insert(index:int, o:Object):void
Phrase
 Inherited
iterator():Iterator
Phrase
  
process(listener:IElementListener):Boolean
[override]
Anchor
 Inherited
push(o:Object):Boolean
Phrase
 Inherited
toString():String
Phrase
Protected Methods
 MethodDefined By
 Inherited
addChunk(chunk:Chunk):Boolean
Adds a Chunk.
Phrase
Public Constants
 ConstantDefined By
 InheritedDEFAULT_LEADING : int = 16
[static]
Phrase
Property Detail
_nameproperty
protected var _name:String = null

_referenceproperty 
protected var _reference:String = null

nameproperty 
name:String


Implementation
    public function get name():String
    public function set name(value:String):void
referenceproperty 
reference:String


Implementation
    public function get reference():String
    public function set reference(value:String):void
typeproperty 
type:int  [read-only] [override]


Implementation
    public function get type():int
urlproperty 
url:URLRequest  [read-only]


Implementation
    public function get url():URLRequest
Constructor Detail
Anchor()Constructor
public function Anchor($text:String, $font:Font = null)



Parameters
$text:String
 
$font:Font (default = null)
Method Detail
fromChunk()method
public static function fromChunk(chunk:Chunk):Anchor

Parameters

chunk:Chunk

Returns
Anchor
fromPhrase()method 
public static function fromPhrase(phrase:Phrase = null):Anchor

Create a new Anchor from a starting Phrase or Anchor

Parameters

phrase:Phrase (default = null) — the starting Phrase or Anchor

Returns
Anchor — Anchor

See also

getChunks()method 
override public function getChunks():Vector.<Object>

Returns
Vector.<Object>
process()method 
override public function process(listener:IElementListener):Boolean

Parameters

listener:IElementListener

Returns
Boolean