Package | org.purepdf.elements |
Class | public class Anchor |
Inheritance | Anchor Phrase Object |
var anchor: Anchor = new Anchor("this is a link"); anchor.name = "LINK"; anchor.reference = "http://code.google.com/p/purepdf";
See also
Property | Defined By | ||
---|---|---|---|
font : Font | Phrase | ||
hasLeading : Boolean [read-only]
Checks you if the leading of this phrase is defined. | Phrase | ||
isContent : Boolean [read-only] | Phrase | ||
isEmpty : Boolean [read-only] | Phrase | ||
isNestable : Boolean [read-only] | Phrase | ||
leading : Number | Phrase | ||
name : String | Anchor | ||
reference : String | Anchor | ||
size : uint [read-only] | Phrase | ||
type : int [override] [read-only] | Anchor | ||
url : URLRequest [read-only] | Anchor |
Property | Defined By | ||
---|---|---|---|
_array : Vector.<Object> | Phrase | ||
_font : Font | Phrase | ||
_leading : Number = NaN | Phrase | ||
_name : String = null | Anchor | ||
_reference : String = null | Anchor |
Method | Defined By | ||
---|---|---|---|
Anchor | |||
add(o:Object):Boolean
Adds a Chunk, Ancor or another Phrase
| Phrase | ||
Phrase | |||
[static] | Anchor | ||
[static]
Create a new Anchor from a starting Phrase or Anchor
| Anchor | ||
getChunks():Vector.<Object> [override] | Anchor | ||
getValue(index:int):Object | Phrase | ||
initFromChunk(chunk:Chunk):void | Phrase | ||
initFromPhrase(phrase:Phrase):void | Phrase | ||
insert(index:int, o:Object):void | Phrase | ||
iterator():Iterator | Phrase | ||
process(listener:IElementListener):Boolean [override] | Anchor | ||
push(o:Object):Boolean | Phrase | ||
toString():String | Phrase |
_name | property |
protected var _name:String = null
_reference | property |
protected var _reference:String = null
name | property |
name:String
public function get name():String
public function set name(value:String):void
reference | property |
reference:String
public function get reference():String
public function set reference(value:String):void
type | property |
type:int
[read-only] [override] public function get type():int
url | property |
url:URLRequest
[read-only] public function get url():URLRequest
Anchor | () | Constructor |
public function Anchor($text:String, $font:Font = null)
$text:String | |
$font:Font (default = null )
|
fromChunk | () | method |
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
|
Anchor — Anchor
|
See also
getChunks | () | method |
override public function getChunks():Vector.<Object>
ReturnsVector.<Object> |
process | () | method |
override public function process(listener:IElementListener):Boolean
Parameters
listener:IElementListener |
Boolean |