protected var _attributes:HashMap = null
protected var _content:String
public static var _NEXTPAGE:Chunk
attributes:HashMap
Implementation public function get attributes():HashMap
public function set attributes(value:HashMap):void
content:String
[read-only]
Implementation public function get content():String
font:Font
Implementation public function get font():Font
public function set font(value:Font):void
hasAttributes:Boolean
[read-only]
Implementation public function get hasAttributes():Boolean
isContent:Boolean
[read-only]
Implementation public function get isContent():Boolean
isEmpty:Boolean
[read-only]
Implementation public function get isEmpty():Boolean
isNestable:Boolean
[read-only]
Implementation public function get isNestable():Boolean
NEXTPAGE:Chunk
[read-only]
Implementation public static function get NEXTPAGE():Chunk
type:int
[read-only]
Implementation public function get type():int
public function Chunk(content:String, font:Font = null)
Parameters | content:String |
|
| font:Font (default = null )
|
public function append(value:String):String
Parameters
Returns public static function fromImage(image:ImageElement, offsetX:Number, offsetY:Number):Chunk
Parameters
Returns public function getChunks():Vector.<Object>
Returns public function getHorizontalScaling():Number
Returns public function getImage():ImageElement
Returns public function getTextRise():Number
Gets the text displacement relative to the baseline
Returns public function getWidthPoint():Number
Gets the width of the Chunk in points.
Returns | Number — a width in points
|
public function process(listener:IElementListener):Boolean
Parameters
Returns public function setAction(action:PdfAction):Chunk
Parameters
Returns public function setAnchor(url:String):Chunk
Parameters
Returns public function setAnnotation(annotation:PdfAnnotation):Chunk
Parameters
Returns public function setAttribute(name:String, obj:Object):Chunk
Parameters
Returns public function setBackground(color:RGBColor, extraLeft:Number = 0, extraBottom:Number = 0, extraRight:Number = 0, extraTop:Number = 0):Chunk
Set the color and size of the background color for this
chunk element
Parameters
| color:RGBColor |
|
| extraLeft:Number (default = 0 )
|
|
| extraBottom:Number (default = 0 )
|
|
| extraRight:Number (default = 0 )
|
|
| extraTop:Number (default = 0 )
|
Returns public function setGenericTag(text:String):Chunk
Sets the generic tag Chunk.
The text for this tag can be retrieved with ChunkEvent.
Parameters
ReturnsSee also
public function setHorizontalScaling(scale:Number):Chunk
Sets the text horizontal scaling. A value of 1 is normal and a value of
0.5f shrinks the text to half it's width.
Parameters
Returns public function setLocalDestination(name:String):Chunk
Parameters
Returns public function setLocalGoto(name:String):Chunk
Parameters
Returns public function setNewPage():Chunk
Returns public function setSkew(alpha:Number, beta:Number):Chunk
Skews the text to simulate italic and other effects
Parameters
| alpha:Number — the first angle in degrees
|
|
| beta:Number — the second angle in degrees
|
Returns public function setSplitCharacter(value:ISplitCharacter):Chunk
Parameters
Returns public function setTextRenderMode(mode:int, strokeWidth:Number, strokeColor:RGBColor):Chunk
Sets the text rendering mode. It can outline text, simulate bold and make
text invisible.
Parameters
| mode:int — It can be PdfContentByte.TEXT_RENDER_MODE_FILL,
PdfContentByte.TEXT_RENDER_MODE_STROKE,
PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE
and PdfContentByte.TEXT_RENDER_MODE_INVISIBLE
.
|
|
| strokeWidth:Number — the stroke line width for the modes PdfContentByte.TEXT_RENDER_MODE_STROKE
and PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE
|
|
| strokeColor:RGBColor |
ReturnsSee also
public function setTextRise(rise:Number):Chunk
Parameters
Returns public function setUnderline(color:RGBColor = null, thickness:Number = 1, thicknessMul:Number = 0, yPosition:Number = 0, yPositionMul:Number = 0, cap:int = 0):Chunk
Parameters
| color:RGBColor (default = null ) — the color of the line. null to use text color
|
|
| thickness:Number (default = 1 ) — the weight of the line
|
|
| thicknessMul:Number (default = 0 ) — thickness multiplication factor with the font size
|
|
| yPosition:Number (default = 0 ) — absolute y position relative to the baseline
|
|
| yPositionMul:Number (default = 0 ) — position multiplication factor with the font size
|
|
| cap:int (default = 0 ) — the end line cap. Allowed values are
PdfContentByte.LINE_CAP_BUTT, PdfContentByte.LINE_CAP_ROUND
and PdfContentByte.LINE_CAP_PROJECTING_SQUARE
|
ReturnsSee also
public function toString():String
Returnspublic static const ACTION:String = ACTION
public static const BACKGROUND:String = BACKGROUND
public static const CHAR_SPACING:String = CHAR_SPACING
public static const COLOR:String = COLOR
public static const ENCODING:String = ENCODING
public static const GENERICTAG:String = GENERICTAG
public static const HSCALE:String = HSCALE
public static const HYPHENATION:String = HYPHENATION
public static const IMAGE:String = IMAGE
public static const LOCALDESTINATION:String = LOCALDESTINATION
public static const LOCALGOTO:String = LOCALGOTO
public static const NEWLINE:Chunk
public static const NEWPAGE:String = NEWPAGE
public static const OBJECT_REPLACEMENT_CHARACTER:String = 
public static const PDFANNOTATION:String = PDFANNOTATION
public static const REMOTEGOTO:String = REMOTEGOTO
public static const SEPARATOR:String = SEPARATOR
public static const SKEW:String = SKEW
public static const SPLITCHARACTER:String = SPLITCHARACTER
public static const SUBSUPSCRIPT:String = SUBSUPSCRIPT
public static const TAB:String = TAB
public static const TEXTRENDERMODE:String = TEXTRENDERMODE
public static const UNDERLINE:String = UNDERLINE
Thu May 27 2010, 07:51 AM +02:00