Package | org.purepdf.elements |
Class | public class MultiColumnText |
Inheritance | MultiColumnText Object |
Implements | IElement |
Property | Defined By | ||
---|---|---|---|
alignment : int [write-only]
| MultiColumnText | ||
arabicOptions : int [write-only]
Sets the arabic shaping options. | MultiColumnText | ||
columnsRightToLeft : Boolean [write-only]
Sets the direction of the columns. | MultiColumnText | ||
currentColumn : int [read-only] | MultiColumnText | ||
_desiredHeight : Number = 0 | MultiColumnText | ||
desiredHeight : int [write-only] | MultiColumnText | ||
isContent : Boolean [read-only] | MultiColumnText | ||
isNestable : Boolean [read-only] | MultiColumnText | ||
overflow : Boolean [read-only] | MultiColumnText | ||
runDirection : int [write-only]
| MultiColumnText | ||
spaceCharRatio : Number [write-only]
Sets the ratio between the extra word spacing and the extra character spacing
when the text is fully justified. | MultiColumnText | ||
top : Number = -1 | MultiColumnText | ||
type : int [read-only] | MultiColumnText |
Method | Defined By | ||
---|---|---|---|
MultiColumnText | |||
Adds a Cunk to the current text array
Will not have any effect if addElement() was called before. | MultiColumnText | ||
addColumn(left:Vector.<Number>, right:Vector.<Number>):void
Adds a new column
| MultiColumnText | ||
addElement(element:IElement):void
Add an element to be rendered in a column. | MultiColumnText | ||
Adds a Phrase to the current text array. | MultiColumnText | ||
addRegularColumns(left:Number, right:Number, gutterWidth:Number, numColumns:int):void
Add the specified number of evenly spaced rectangular columns. | MultiColumnText | ||
addSimpleColumn(left:Number, right:Number):void
Add a simple rectangular column with specified left
and right x position boundaries. | MultiColumnText | ||
getChunks():Vector.<Object> | MultiColumnText | ||
getColumnBottom():Number | MultiColumnText | ||
nextColumn():void
Moves the text insertion point to the beginning of the next column. | MultiColumnText | ||
process(listener:IElementListener):Boolean | MultiColumnText | ||
resetCurrentColumn():void | MultiColumnText | ||
shiftCurrentColumn():Boolean
Shifts the current column. | MultiColumnText | ||
toString():String | MultiColumnText | ||
useColumnParams(sourceColumn:ColumnText):void
Copy the parameters from the specified ColumnText
| MultiColumnText | ||
Write out the columns. | MultiColumnText |
Constant | Defined By | ||
---|---|---|---|
AUTOMATIC : int = -1 [static] | MultiColumnText |
_desiredHeight | property |
public var _desiredHeight:Number = 0
alignment | property |
alignment:int
[write-only]
public function set alignment(value:int):void
See also
arabicOptions | property |
arabicOptions:int
[write-only] Sets the arabic shaping options. The option can be AR_NOVOWEL, AR_COMPOSEDTASHKEEL and AR_LIG.
public function set arabicOptions(value:int):void
See also
columnsRightToLeft | property |
columnsRightToLeft:Boolean
[write-only] Sets the direction of the columns.
public function set columnsRightToLeft(value:Boolean):void
currentColumn | property |
currentColumn:int
[read-only] public function get currentColumn():int
desiredHeight | property |
desiredHeight:int
[write-only] public function set desiredHeight(value:int):void
isContent | property |
isContent:Boolean
[read-only] public function get isContent():Boolean
isNestable | property |
isNestable:Boolean
[read-only] public function get isNestable():Boolean
overflow | property |
overflow:Boolean
[read-only] public function get overflow():Boolean
runDirection | property |
runDirection:int
[write-only]
public function set runDirection(value:int):void
See also
spaceCharRatio | property |
spaceCharRatio:Number
[write-only] Sets the ratio between the extra word spacing and the extra character spacing when the text is fully justified. If the ratio is PdfWriter.NO_SPACE_CHAR_RATIO then the extra character spacing will be zero.
public function set spaceCharRatio(value:Number):void
See also
top | property |
public var top:Number = -1
type | property |
type:int
[read-only] public function get type():int
MultiColumnText | () | Constructor |
public function MultiColumnText()
addChunk | () | method |
public function addChunk(chunk:Chunk):void
Adds a Cunk to the current text array Will not have any effect if addElement() was called before.
Parameters
chunk:Chunk |
See also
addColumn | () | method |
public function addColumn(left:Vector.<Number>, right:Vector.<Number>):void
Adds a new column
Parameters
left:Vector.<Number> | |
right:Vector.<Number> |
addElement | () | method |
public function addElement(element:IElement):void
Add an element to be rendered in a column. Note that you can only add a Phrase or a Chunk if the columns are not all simple
Parameters
element:IElement — element to add
|
DocumentError
|
addPhrase | () | method |
public function addPhrase(phrase:Phrase):void
Adds a Phrase to the current text array. Will not have any effect if addElement() was called before.
Parameters
phrase:Phrase |
See also
addRegularColumns | () | method |
public function addRegularColumns(left:Number, right:Number, gutterWidth:Number, numColumns:int):void
Add the specified number of evenly spaced rectangular columns. Columns will be separated by the specified gutterWidth.
Parameters
left:Number — left boundary of first column
| |
right:Number — right boundary of last column
| |
gutterWidth:Number — width of gutter spacing between columns
| |
numColumns:int — number of columns to add
|
addSimpleColumn | () | method |
public function addSimpleColumn(left:Number, right:Number):void
Add a simple rectangular column with specified left and right x position boundaries.
Parameters
left:Number — left boundary
| |
right:Number — right boundary
|
getChunks | () | method |
public function getChunks():Vector.<Object>
ReturnsVector.<Object> |
getColumnBottom | () | method |
public function getColumnBottom():Number
ReturnsNumber |
nextColumn | () | method |
public function nextColumn():void
Moves the text insertion point to the beginning of the next column. Adds a page break if needed.
DocumentError
|
process | () | method |
public function process(listener:IElementListener):Boolean
Parameters
listener:IElementListener |
Boolean |
resetCurrentColumn | () | method |
public function resetCurrentColumn():void
shiftCurrentColumn | () | method |
public function shiftCurrentColumn():Boolean
Shifts the current column.
ReturnsBoolean — true if the current column has changed
|
toString | () | method |
public function toString():String
ReturnsString |
useColumnParams | () | method |
public function useColumnParams(sourceColumn:ColumnText):void
Copy the parameters from the specified ColumnText
Parameters
sourceColumn:ColumnText |
write | () | method |
public function write(canvas:PdfContentByte, document:PdfDocument, documentY:Number):Number
Write out the columns. After writing, use overflow to see if all text was written.
Parameters
canvas:PdfContentByte | |
document:PdfDocument | |
documentY:Number |
Number — the current height after writing
|
DocumentError
|
AUTOMATIC | Constant |
public static const AUTOMATIC:int = -1