| Package | flashx.textLayout.compose |
| Class | public class BaseCompose |
| Inheritance | BaseCompose Object |
| Property | Defined By | ||
|---|---|---|---|
| globalSWFContext : ISWFContext [static] [read-only] | BaseCompose | ||
| parcelList : ParcelList [read-only] List of areas we're composing into, matches the container's bounding box | BaseCompose | ||
| startController : ContainerController [read-only] Starting controller for skipping ahead | BaseCompose | ||
| swfContext : ISWFContext [read-only] | BaseCompose | ||
| Property | Defined By | ||
|---|---|---|---|
| _accumulatedMinimumStart : Number Minimum starting coord for parcel bounds | BaseCompose | ||
| _atColumnStart : Boolean Are we at the top of the column? | BaseCompose | ||
| _blockProgression : String BlockProgression - vertical horizontal etc. | BaseCompose | ||
| _contentCommittedExtent : Number Commited extent any lines needing additional alignment must update this number | BaseCompose | ||
| _contentCommittedHeight : Number Committed logical height from floats | BaseCompose | ||
| _contentLogicalExtent : Number Maximum horizontal extension from left/right edge of the parcel. | BaseCompose | ||
| _controllerVisibleBoundsHeightTW : int | BaseCompose | ||
| _controllerVisibleBoundsWidthTW : int | BaseCompose | ||
| _controllerVisibleBoundsXTW : int Visible area of the current controller. | BaseCompose | ||
| _controllerVisibleBoundsYTW : int | BaseCompose | ||
| _curElement : FlowLeafElement Element of current location | BaseCompose | ||
| _curElementOffset : int Offset from element start to current location | BaseCompose | ||
| _curElementStart : int Absolute start position of _curElement | BaseCompose | ||
| _curInteractiveObjects : Dictionary = null For interactive objects | BaseCompose | ||
| _curLine : TextFlowLine | BaseCompose | ||
| _curLineStart : int Absolute start position of the current line | BaseCompose | ||
| _curParaElement : ParagraphElement ParagraphElement that contains the current location | BaseCompose | ||
| _curParaFormat : ITextLayoutFormat | BaseCompose | ||
| _curParaStart : int Absolute start position of _curParaElement | BaseCompose | ||
| _curParcel : Parcel Parcel we are composing - used for keeping track of when it changes b/c parcelList.parcel may have advanced | BaseCompose | ||
| _curParcelStart : int Start position of _curParcel | BaseCompose | ||
| _floatSlug : Slug [static] | BaseCompose | ||
| _flowComposer : IFlowComposer flowComposer of current compose | BaseCompose | ||
| _forceILGs : Boolean | BaseCompose | ||
| _lastGoodStart : int | BaseCompose | ||
| _lastLineDescent : Number effective descent of the last line. | BaseCompose | ||
| _lastLineLeading : Number leading factor calculated for the line composed last. | BaseCompose | ||
| _lastLineLeadingModel : String leading model for the last line's para | BaseCompose | ||
| _linePass : int | BaseCompose | ||
| _lineSlug : Slug | BaseCompose | ||
| _listItemElement : ListItemElement | BaseCompose | ||
| _measuring : Boolean Are we measuring | BaseCompose | ||
| _paragraphContainsVisibleLines : Boolean | BaseCompose | ||
| _paragraphSpaceCarried : Number Amount of spaceAfter added to the previous line (used in calculating effective paragraphSpaceBefore/paragraphSpaceAfter | BaseCompose | ||
| _parcelBottom : Number Maximum bottom edge coordinate across all the parcels in a controller | BaseCompose | ||
| _parcelLeft : Number Minimum left edge coordinate across all the parcels in a controller | BaseCompose | ||
| _parcelList : ParcelList | BaseCompose | ||
| _parcelLogicalTop : Number Minimum starting coord for parcel bounds | BaseCompose | ||
| _parcelRight : Number Maximum right edge coordinate across all the parcels in a controller | BaseCompose | ||
| _parcelTop : Number Minimum top edge across all the parcels in a controller | BaseCompose | ||
| _previousLine : TextLine | BaseCompose | ||
| _pushInFloats : Array | BaseCompose | ||
| releaseLineCreationData : Boolean [read-only] Release line creation data during this compose | BaseCompose | ||
| _rootElement : ContainerFormattedElement rootElement of current compose | BaseCompose | ||
| _savedLineSlug : Slug [static] | BaseCompose | ||
| _startComposePosition : int Beginning composition position. | BaseCompose | ||
| _startController : ContainerController First damaged controller to begin composing | BaseCompose | ||
| _stopComposePos : int position to stop composing at | BaseCompose | ||
| _textFlow : TextFlow owning textFlow of current compose | BaseCompose | ||
| _textIndent : Number Current textIndent amount, 0 if line is not the first | BaseCompose | ||
| _verticalSpaceCarried : Number Amount of vertical space added to the previous element (used in calculating vertical space collapse) | BaseCompose | ||
| _workingContentExtent : Number | BaseCompose | ||
| _workingContentHeight : Number | BaseCompose | ||
| _workingContentLogicalExtent : Number Maximum horizontal extension for the current line from left/right edge of the parcel. | BaseCompose | ||
| _workingParcelIndex : int | BaseCompose | ||
| _workingParcelLogicalTop : Number logical top of the parcel, for the line in progress | BaseCompose | ||
| _workingTotalDepth : Number | BaseCompose | ||
| Method | Defined By | ||
|---|---|---|---|
composeTextFlow(textFlow:TextFlow, composeToPosition:int, controllerEndIndex:int):int
Compose the flow into the text container. | BaseCompose | ||
| Method | Defined By | ||
|---|---|---|---|
advanceToNextContainer():void Go to next container
| BaseCompose | ||
advanceToNextParcel():void | BaseCompose | ||
applyVerticalAlignmentToColumn(controller:ContainerController, vjType:String, lines:Array, beginIndex:int, numLines:int, beginFloatIndex:int, endFloatIndex:int):void apply vj and adjust the parcel bounds | BaseCompose | ||
calculateLeadingParameters(curElement:FlowLeafElement, curElementStart:int, numberLine:TextLine = null):Number | BaseCompose | ||
commitLastLineState(curLine:TextFlowLine):void | BaseCompose | ||
composeFloat(elem:InlineGraphicElement, afterLine:Boolean):Boolean | BaseCompose | ||
composeInlineGraphicElement(inlineGraphic:InlineGraphicElement, textLine:TextLine):Boolean | BaseCompose | ||
composeInternal(composeRoot:FlowGroupElement, absStart:int):void | BaseCompose | ||
composeNextLine():TextLine | BaseCompose | ||
composeParagraphElementIntoLines():Boolean Compose the lines in the paragraph. | BaseCompose | ||
createParcelList():ParcelList | BaseCompose | ||
doVerticalAlignment(canVerticalAlign:Boolean, nextParcel:Parcel):void | BaseCompose | ||
endLine(textLine:TextLine):void Called when we are finished composing a line, and it is committed. | BaseCompose | ||
endTableBlock(block:TextFlowTableBlock):void Called when we are finished composing a line, and it is committed. | BaseCompose | ||
finalParcelAdjustment(controller:ContainerController):void | BaseCompose | ||
finishComposeLine(curTextLine:TextLine, numberLine:TextLine):void | BaseCompose | ||
finishController(controller:ContainerController):void | BaseCompose | ||
finishParcel(controller:ContainerController, nextParcel:Parcel):Boolean | BaseCompose | ||
fitLineToParcel(textLine:TextLine, isNewLine:Boolean, numberLine:TextLine):Boolean | BaseCompose | ||
getFirstIndentCharPos(paragraph:ParagraphElement):int | BaseCompose | ||
initializeForComposer(composer:IFlowComposer, composeToPosition:int, controllerStartIndex:int, controllerEndIndex:int):void Initialize for a composition that will compose up through the controllerEndIndex, or all the way to the end of the flow
| BaseCompose | ||
isLineVisible(textLine:TextLine):Boolean | BaseCompose | ||
parcelHasChanged(newParcel:Parcel):void This is called when the parcel has changed
| BaseCompose | ||
popInsideListItemMargins(numberLine:TextLine):void | BaseCompose | ||
preProcessILGs(startPos:int):Boolean | BaseCompose | ||
processFloatsAtLineEnd(textLine:TextLine):Boolean | BaseCompose | ||
processFloatsAtLineStart():void | BaseCompose | ||
processInlinesAtLineEnd(textLine:TextLine):void | BaseCompose | ||
pushInsideListItemMargins(numberLine:TextLine):void | BaseCompose | ||
releaseParcelList(list:ParcelList):void | BaseCompose | ||
resetLine(textLine:TextLine):void | BaseCompose | ||
startLine():void Called when we are about to compose a line. | BaseCompose | ||
| _accumulatedMinimumStart | property |
protected var _accumulatedMinimumStart:NumberMinimum starting coord for parcel bounds
| _atColumnStart | property |
protected var _atColumnStart:BooleanAre we at the top of the column?
| _blockProgression | property |
protected var _blockProgression:StringBlockProgression - vertical horizontal etc.
See also
| _contentCommittedExtent | property |
protected var _contentCommittedExtent:NumberCommited extent any lines needing additional alignment must update this number
| _contentCommittedHeight | property |
protected var _contentCommittedHeight:NumberCommitted logical height from floats
| _contentLogicalExtent | property |
protected var _contentLogicalExtent:NumberMaximum horizontal extension from left/right edge of the parcel. Alignment width for the parcel when measuring.
| _controllerVisibleBoundsHeightTW | property |
protected var _controllerVisibleBoundsHeightTW:int| _controllerVisibleBoundsWidthTW | property |
protected var _controllerVisibleBoundsWidthTW:int| _controllerVisibleBoundsXTW | property |
protected var _controllerVisibleBoundsXTW:intVisible area of the current controller. Used to determine which lines are going to be in view.
| _controllerVisibleBoundsYTW | property |
protected var _controllerVisibleBoundsYTW:int| _curElement | property |
protected var _curElement:FlowLeafElementElement of current location
| _curElementOffset | property |
protected var _curElementOffset:intOffset from element start to current location
| _curElementStart | property |
protected var _curElementStart:intAbsolute start position of _curElement
| _curInteractiveObjects | property |
protected var _curInteractiveObjects:Dictionary = nullFor interactive objects
| _curLine | property |
protected var _curLine:TextFlowLine| _curLineStart | property |
protected var _curLineStart:intAbsolute start position of the current line
| _curParaElement | property |
protected var _curParaElement:ParagraphElementParagraphElement that contains the current location
| _curParaFormat | property |
protected var _curParaFormat:ITextLayoutFormat| _curParaStart | property |
protected var _curParaStart:intAbsolute start position of _curParaElement
| _curParcel | property |
protected var _curParcel:ParcelParcel we are composing - used for keeping track of when it changes b/c parcelList.parcel may have advanced
| _curParcelStart | property |
protected var _curParcelStart:intStart position of _curParcel
| _floatSlug | property |
protected static var _floatSlug:Slug| _flowComposer | property |
protected var _flowComposer:IFlowComposerflowComposer of current compose
| _forceILGs | property |
protected var _forceILGs:Boolean| _lastGoodStart | property |
protected var _lastGoodStart:int| _lastLineDescent | property |
protected var _lastLineDescent:Numbereffective descent of the last line. This is the distance between a line's Roman baseline and its Descent baseline (for leading models other than LeadingModel.BOX) or the bottom of its CSS line box (for LeadingModel.BOX)
| _lastLineLeading | property |
protected var _lastLineLeading:Numberleading factor calculated for the line composed last. The factor has different meanings for different leading models.
| _lastLineLeadingModel | property |
protected var _lastLineLeadingModel:Stringleading model for the last line's para
| _linePass | property |
protected var _linePass:int| _lineSlug | property |
protected var _lineSlug:Slug| _listItemElement | property |
protected var _listItemElement:ListItemElement| _measuring | property |
protected var _measuring:BooleanAre we measuring
| _paragraphContainsVisibleLines | property |
protected var _paragraphContainsVisibleLines:Boolean| _paragraphSpaceCarried | property |
protected var _paragraphSpaceCarried:NumberAmount of spaceAfter added to the previous line (used in calculating effective paragraphSpaceBefore/paragraphSpaceAfter
| _parcelBottom | property |
protected var _parcelBottom:NumberMaximum bottom edge coordinate across all the parcels in a controller
| _parcelLeft | property |
protected var _parcelLeft:NumberMinimum left edge coordinate across all the parcels in a controller
| _parcelList | property |
protected var _parcelList:ParcelList| _parcelLogicalTop | property |
protected var _parcelLogicalTop:NumberMinimum starting coord for parcel bounds
| _parcelRight | property |
protected var _parcelRight:NumberMaximum right edge coordinate across all the parcels in a controller
| _parcelTop | property |
protected var _parcelTop:NumberMinimum top edge across all the parcels in a controller
| _previousLine | property |
protected var _previousLine:TextLine| _pushInFloats | property |
protected var _pushInFloats:Array| _rootElement | property |
protected var _rootElement:ContainerFormattedElementrootElement of current compose
| _savedLineSlug | property |
protected static var _savedLineSlug:Slug| _startComposePosition | property |
protected var _startComposePosition:intBeginning composition position. Note this gets cleared once its been passed
| _startController | property |
protected var _startController:ContainerControllerFirst damaged controller to begin composing
| _stopComposePos | property |
protected var _stopComposePos:intposition to stop composing at
| _textFlow | property |
protected var _textFlow:TextFlowowning textFlow of current compose
| _textIndent | property |
protected var _textIndent:NumberCurrent textIndent amount, 0 if line is not the first
| _verticalSpaceCarried | property |
protected var _verticalSpaceCarried:NumberAmount of vertical space added to the previous element (used in calculating vertical space collapse)
| _workingContentExtent | property |
protected var _workingContentExtent:Number| _workingContentHeight | property |
protected var _workingContentHeight:Number| _workingContentLogicalExtent | property |
protected var _workingContentLogicalExtent:NumberMaximum horizontal extension for the current line from left/right edge of the parcel.
| _workingParcelIndex | property |
protected var _workingParcelIndex:int| _workingParcelLogicalTop | property |
protected var _workingParcelLogicalTop:Numberlogical top of the parcel, for the line in progress
| _workingTotalDepth | property |
protected var _workingTotalDepth:Number| globalSWFContext | property |
globalSWFContext:ISWFContext [read-only] public static function get globalSWFContext():ISWFContext| parcelList | property |
parcelList:ParcelList [read-only] List of areas we're composing into, matches the container's bounding box
public function get parcelList():ParcelList| releaseLineCreationData | property |
releaseLineCreationData:Boolean [read-only] Release line creation data during this compose
protected function get releaseLineCreationData():Boolean| startController | property |
startController:ContainerController [read-only] Starting controller for skipping ahead
public function get startController():ContainerController| swfContext | property |
| advanceToNextContainer | () | method |
protected function advanceToNextContainer():voidGo to next container
| advanceToNextParcel | () | method |
protected function advanceToNextParcel():void| applyVerticalAlignmentToColumn | () | method |
protected function applyVerticalAlignmentToColumn(controller:ContainerController, vjType:String, lines:Array, beginIndex:int, numLines:int, beginFloatIndex:int, endFloatIndex:int):voidapply vj and adjust the parcel bounds
Parameters
controller:ContainerController | |
vjType:String | |
lines:Array | |
beginIndex:int | |
numLines:int | |
beginFloatIndex:int | |
endFloatIndex:int |
| calculateLeadingParameters | () | method |
protected function calculateLeadingParameters(curElement:FlowLeafElement, curElementStart:int, numberLine:TextLine = null):NumberParameters
curElement:FlowLeafElement | |
curElementStart:int | |
numberLine:TextLine (default = null) |
Number |
| commitLastLineState | () | method |
| composeFloat | () | method |
protected function composeFloat(elem:InlineGraphicElement, afterLine:Boolean):BooleanParameters
elem:InlineGraphicElement | |
afterLine:Boolean |
Boolean |
| composeInlineGraphicElement | () | method |
protected function composeInlineGraphicElement(inlineGraphic:InlineGraphicElement, textLine:TextLine):BooleanParameters
inlineGraphic:InlineGraphicElement | |
textLine:TextLine |
Boolean |
| composeInternal | () | method |
protected function composeInternal(composeRoot:FlowGroupElement, absStart:int):voidParameters
composeRoot:FlowGroupElement | |
absStart:int |
| composeNextLine | () | method |
protected function composeNextLine():TextLineReturnsTextLine |
| composeParagraphElementIntoLines | () | method |
protected function composeParagraphElementIntoLines():BooleanCompose the lines in the paragraph. Updates the _paragraphContainsVisibleLines flag if the paragraph contains at least one visible line. Returns true if composition should continue, false if all space is used and composition should stop.
ReturnsBoolean |
| composeTextFlow | () | method |
public function composeTextFlow(textFlow:TextFlow, composeToPosition:int, controllerEndIndex:int):intCompose the flow into the text container. Starts at the root element, and composes elements until either there are no more elements, or the text container is full. It will compose only the lines which are marked invalid, so that existing lines that are unchanged are not recomposed.
Parameters
textFlow:TextFlow | |
composeToPosition:int | |
controllerEndIndex:int |
int |
| createParcelList | () | method |
protected function createParcelList():ParcelListReturnsParcelList |
| doVerticalAlignment | () | method |
protected function doVerticalAlignment(canVerticalAlign:Boolean, nextParcel:Parcel):voidParameters
canVerticalAlign:Boolean | |
nextParcel:Parcel |
| endLine | () | method |
protected function endLine(textLine:TextLine):voidCalled when we are finished composing a line, and it is committed. Handler for derived classes to override default behavior.
Parameters
textLine:TextLine |
| endTableBlock | () | method |
protected function endTableBlock(block:TextFlowTableBlock):voidCalled when we are finished composing a line, and it is committed. Handler for derived classes to override default behavior.
Parameters
block:TextFlowTableBlock |
| finalParcelAdjustment | () | method |
protected function finalParcelAdjustment(controller:ContainerController):voidParameters
controller:ContainerController |
| finishComposeLine | () | method |
protected function finishComposeLine(curTextLine:TextLine, numberLine:TextLine):voidParameters
curTextLine:TextLine | |
numberLine:TextLine |
| finishController | () | method |
protected function finishController(controller:ContainerController):voidParameters
controller:ContainerController |
| finishParcel | () | method |
protected function finishParcel(controller:ContainerController, nextParcel:Parcel):BooleanParameters
controller:ContainerController | |
nextParcel:Parcel |
Boolean |
| fitLineToParcel | () | method |
protected function fitLineToParcel(textLine:TextLine, isNewLine:Boolean, numberLine:TextLine):BooleanParameters
textLine:TextLine | |
isNewLine:Boolean | |
numberLine:TextLine |
Boolean |
| getFirstIndentCharPos | () | method |
protected function getFirstIndentCharPos(paragraph:ParagraphElement):intParameters
paragraph:ParagraphElement |
int |
| initializeForComposer | () | method |
protected function initializeForComposer(composer:IFlowComposer, composeToPosition:int, controllerStartIndex:int, controllerEndIndex:int):voidInitialize for a composition that will compose up through the controllerEndIndex, or all the way to the end of the flow
Parameters
composer:IFlowComposer | |
composeToPosition:int — -1 means not specified. 0 means request to compose nothing, >0 specifies a position to force compose to
| |
controllerStartIndex:int — index of the first controller to compose for, derived class allows -1 for default
| |
controllerEndIndex:int — index of the last controller to compose for, or -1 to compose through all controllers
|
| isLineVisible | () | method |
protected function isLineVisible(textLine:TextLine):BooleanParameters
textLine:TextLine |
Boolean |
| parcelHasChanged | () | method |
protected function parcelHasChanged(newParcel:Parcel):voidThis is called when the parcel has changed
Parameters
newParcel:Parcel — - the parcel we had before (you can get the new parcel from the parcel list)
|
| popInsideListItemMargins | () | method |
protected function popInsideListItemMargins(numberLine:TextLine):voidParameters
numberLine:TextLine |
| preProcessILGs | () | method |
protected function preProcessILGs(startPos:int):BooleanParameters
startPos:int |
Boolean |
| processFloatsAtLineEnd | () | method |
protected function processFloatsAtLineEnd(textLine:TextLine):BooleanParameters
textLine:TextLine |
Boolean |
| processFloatsAtLineStart | () | method |
protected function processFloatsAtLineStart():void| processInlinesAtLineEnd | () | method |
protected function processInlinesAtLineEnd(textLine:TextLine):voidParameters
textLine:TextLine |
| pushInsideListItemMargins | () | method |
protected function pushInsideListItemMargins(numberLine:TextLine):voidParameters
numberLine:TextLine |
| releaseParcelList | () | method |
protected function releaseParcelList(list:ParcelList):voidParameters
list:ParcelList |
| resetLine | () | method |
protected function resetLine(textLine:TextLine):voidParameters
textLine:TextLine |
| startLine | () | method |
protected function startLine():voidCalled when we are about to compose a line. Handler for derived classes to override default behavior.