| Package | org.purepdf.elements |
| Class | public class Paragraph |
| Inheritance | Paragraph Phrase Object |
| Subclasses | ListItem |
var p1: Paragraph = new Paragraph("This is a paragraph");
FontsResourceFactory.getInstance().registerFont( BaseFont.HELVETICA, new BuiltinFonts.HELVETICA() );
var p2: Paragraph = new Paragraph("This is a paragraph", new Font( Font.HELVETICA, 12, Font.NORMAL ) );
See also
| Property | Defined By | ||
|---|---|---|---|
| alignment : int | Paragraph | ||
| extraParagraphSpace : Number | Paragraph | ||
| firstLineIndent : Number | Paragraph | ||
![]() | font : Font | Phrase | |
![]() | hasLeading : Boolean [read-only]
Checks you if the leading of this phrase is defined. | Phrase | |
| indentationLeft : Number | Paragraph | ||
| indentationRight : Number | Paragraph | ||
![]() | isContent : Boolean [read-only] | Phrase | |
![]() | isEmpty : Boolean [read-only] | Phrase | |
![]() | isNestable : Boolean [read-only] | Phrase | |
| keeptogether : Boolean
Indicates that the paragraph has to be
kept together on one page. | Paragraph | ||
![]() | leading : Number | Phrase | |
| multipliedLeading : Number [read-only] | Paragraph | ||
![]() | size : uint [read-only] | Phrase | |
| spacingAfter : Number | Paragraph | ||
| spacingBefore : Number | Paragraph | ||
| totalLeading : Number [read-only] | Paragraph | ||
| type : int [override] [read-only] | Paragraph | ||
| Property | Defined By | ||
|---|---|---|---|
| _alignment : int = -1 | Paragraph | ||
![]() | _array : Vector.<Object> | Phrase | |
![]() | _font : Font | Phrase | |
| _indentationLeft : Number = 0 | Paragraph | ||
| _indentationRight : Number = 0 | Paragraph | ||
| _keeptogether : Boolean = false | Paragraph | ||
![]() | _leading : Number = NaN | Phrase | |
| _multipliedLeading : Number = 0 | Paragraph | ||
| _spacingAfter : Number = 0 | Paragraph | ||
| _spacingBefore : Number = 0 | Paragraph | ||
| Method | Defined By | ||
|---|---|---|---|
| Paragraph | |||
add(o:Object):Boolean [override] | Paragraph | ||
![]() | Phrase | ||
[static]
Create a new paragraph from a starting Chunk and leading
| Paragraph | ||
[static]
Creates a new Paragraph from a starting Phrase/Paragraph
| Paragraph | ||
![]() | getChunks():Vector.<Object> | Phrase | |
![]() | 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 | Phrase | |
![]() | push(o:Object):Boolean | Phrase | |
setAlignment(value:String):void
Set the paragraph alignment
| Paragraph | ||
setLeading(fixedLeading:Number, multipliedLeading:Number):void | Paragraph | ||
![]() | toString():String | Phrase | |
| _alignment | property |
protected var _alignment:int = -1| _indentationLeft | property |
protected var _indentationLeft:Number = 0| _indentationRight | property |
protected var _indentationRight:Number = 0| _keeptogether | property |
protected var _keeptogether:Boolean = false| _multipliedLeading | property |
protected var _multipliedLeading:Number = 0| _spacingAfter | property |
protected var _spacingAfter:Number = 0| _spacingBefore | property |
protected var _spacingBefore:Number = 0| alignment | property |
alignment:int public function get alignment():int public function set alignment(value:int):void| extraParagraphSpace | property |
extraParagraphSpace:Number public function get extraParagraphSpace():Number public function set extraParagraphSpace(value:Number):void| firstLineIndent | property |
firstLineIndent:Number public function get firstLineIndent():Number public function set firstLineIndent(value:Number):void| indentationLeft | property |
indentationLeft:Number public function get indentationLeft():Number public function set indentationLeft(value:Number):void| indentationRight | property |
indentationRight:Number public function get indentationRight():Number public function set indentationRight(value:Number):void| keeptogether | property |
keeptogether:BooleanIndicates that the paragraph has to be kept together on one page.
public function get keeptogether():Boolean public function set keeptogether(value:Boolean):void| multipliedLeading | property |
multipliedLeading:Number [read-only] public function get multipliedLeading():Number| spacingAfter | property |
spacingAfter:Number public function get spacingAfter():Number public function set spacingAfter(value:Number):void| spacingBefore | property |
spacingBefore:Number public function get spacingBefore():Number public function set spacingBefore(value:Number):void| totalLeading | property |
totalLeading:Number [read-only] public function get totalLeading():Number| type | property |
type:int [read-only] [override] public function get type():int| Paragraph | () | Constructor |
public function Paragraph(text:String, font:Font = null)text:String | |
font:Font (default = null) |
| add | () | method |
override public function add(o:Object):BooleanParameters
o:Object |
Boolean |
| fromChunk | () | method |
public static function fromChunk(chunk:Chunk, leading:Number):ParagraphCreate a new paragraph from a starting Chunk and leading
Parameters
chunk:Chunk | |
leading:Number (default = NaN) |
Paragraph |
| fromPhrase | () | method |
public static function fromPhrase(phrase:Phrase = null):ParagraphCreates a new Paragraph from a starting Phrase/Paragraph
Parameters
phrase:Phrase (default = null) |
Paragraph — Paragraph
|
See also
| setAlignment | () | method |
public function setAlignment(value:String):voidSet the paragraph alignment
Parameters
value:String |
See also
| setLeading | () | method |
public function setLeading(fixedLeading:Number, multipliedLeading:Number):voidParameters
fixedLeading:Number | |
multipliedLeading:Number |