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:Number
Minimum starting coord for parcel bounds
_atColumnStart | property |
protected var _atColumnStart:Boolean
Are we at the top of the column?
_blockProgression | property |
protected var _blockProgression:String
BlockProgression - vertical horizontal etc.
See also
_contentCommittedExtent | property |
protected var _contentCommittedExtent:Number
Commited extent any lines needing additional alignment must update this number
_contentCommittedHeight | property |
protected var _contentCommittedHeight:Number
Committed logical height from floats
_contentLogicalExtent | property |
protected var _contentLogicalExtent:Number
Maximum 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:int
Visible 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:FlowLeafElement
Element of current location
_curElementOffset | property |
protected var _curElementOffset:int
Offset from element start to current location
_curElementStart | property |
protected var _curElementStart:int
Absolute start position of _curElement
_curInteractiveObjects | property |
protected var _curInteractiveObjects:Dictionary = null
For interactive objects
_curLine | property |
protected var _curLine:TextFlowLine
_curLineStart | property |
protected var _curLineStart:int
Absolute start position of the current line
_curParaElement | property |
protected var _curParaElement:ParagraphElement
ParagraphElement that contains the current location
_curParaFormat | property |
protected var _curParaFormat:ITextLayoutFormat
_curParaStart | property |
protected var _curParaStart:int
Absolute start position of _curParaElement
_curParcel | property |
protected var _curParcel:Parcel
Parcel we are composing - used for keeping track of when it changes b/c parcelList.parcel may have advanced
_curParcelStart | property |
protected var _curParcelStart:int
Start position of _curParcel
_floatSlug | property |
protected static var _floatSlug:Slug
_flowComposer | property |
protected var _flowComposer:IFlowComposer
flowComposer of current compose
_forceILGs | property |
protected var _forceILGs:Boolean
_lastGoodStart | property |
protected var _lastGoodStart:int
_lastLineDescent | property |
protected var _lastLineDescent:Number
effective 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:Number
leading factor calculated for the line composed last. The factor has different meanings for different leading models.
_lastLineLeadingModel | property |
protected var _lastLineLeadingModel:String
leading 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:Boolean
Are we measuring
_paragraphContainsVisibleLines | property |
protected var _paragraphContainsVisibleLines:Boolean
_paragraphSpaceCarried | property |
protected var _paragraphSpaceCarried:Number
Amount of spaceAfter added to the previous line (used in calculating effective paragraphSpaceBefore/paragraphSpaceAfter
_parcelBottom | property |
protected var _parcelBottom:Number
Maximum bottom edge coordinate across all the parcels in a controller
_parcelLeft | property |
protected var _parcelLeft:Number
Minimum left edge coordinate across all the parcels in a controller
_parcelList | property |
protected var _parcelList:ParcelList
_parcelLogicalTop | property |
protected var _parcelLogicalTop:Number
Minimum starting coord for parcel bounds
_parcelRight | property |
protected var _parcelRight:Number
Maximum right edge coordinate across all the parcels in a controller
_parcelTop | property |
protected var _parcelTop:Number
Minimum 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:ContainerFormattedElement
rootElement of current compose
_savedLineSlug | property |
protected static var _savedLineSlug:Slug
_startComposePosition | property |
protected var _startComposePosition:int
Beginning composition position. Note this gets cleared once its been passed
_startController | property |
protected var _startController:ContainerController
First damaged controller to begin composing
_stopComposePos | property |
protected var _stopComposePos:int
position to stop composing at
_textFlow | property |
protected var _textFlow:TextFlow
owning textFlow of current compose
_textIndent | property |
protected var _textIndent:Number
Current textIndent amount, 0 if line is not the first
_verticalSpaceCarried | property |
protected var _verticalSpaceCarried:Number
Amount 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:Number
Maximum horizontal extension for the current line from left/right edge of the parcel.
_workingParcelIndex | property |
protected var _workingParcelIndex:int
_workingParcelLogicalTop | property |
protected var _workingParcelLogicalTop:Number
logical 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():void
Go 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):void
apply 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):Number
Parameters
curElement:FlowLeafElement | |
curElementStart:int | |
numberLine:TextLine (default = null )
|
Number |
commitLastLineState | () | method |
composeFloat | () | method |
protected function composeFloat(elem:InlineGraphicElement, afterLine:Boolean):Boolean
Parameters
elem:InlineGraphicElement | |
afterLine:Boolean |
Boolean |
composeInlineGraphicElement | () | method |
protected function composeInlineGraphicElement(inlineGraphic:InlineGraphicElement, textLine:TextLine):Boolean
Parameters
inlineGraphic:InlineGraphicElement | |
textLine:TextLine |
Boolean |
composeInternal | () | method |
protected function composeInternal(composeRoot:FlowGroupElement, absStart:int):void
Parameters
composeRoot:FlowGroupElement | |
absStart:int |
composeNextLine | () | method |
protected function composeNextLine():TextLine
ReturnsTextLine |
composeParagraphElementIntoLines | () | method |
protected function composeParagraphElementIntoLines():Boolean
Compose 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):int
Compose 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():ParcelList
ReturnsParcelList |
doVerticalAlignment | () | method |
protected function doVerticalAlignment(canVerticalAlign:Boolean, nextParcel:Parcel):void
Parameters
canVerticalAlign:Boolean | |
nextParcel:Parcel |
endLine | () | method |
protected function endLine(textLine:TextLine):void
Called 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):void
Called 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):void
Parameters
controller:ContainerController |
finishComposeLine | () | method |
protected function finishComposeLine(curTextLine:TextLine, numberLine:TextLine):void
Parameters
curTextLine:TextLine | |
numberLine:TextLine |
finishController | () | method |
protected function finishController(controller:ContainerController):void
Parameters
controller:ContainerController |
finishParcel | () | method |
protected function finishParcel(controller:ContainerController, nextParcel:Parcel):Boolean
Parameters
controller:ContainerController | |
nextParcel:Parcel |
Boolean |
fitLineToParcel | () | method |
protected function fitLineToParcel(textLine:TextLine, isNewLine:Boolean, numberLine:TextLine):Boolean
Parameters
textLine:TextLine | |
isNewLine:Boolean | |
numberLine:TextLine |
Boolean |
getFirstIndentCharPos | () | method |
protected function getFirstIndentCharPos(paragraph:ParagraphElement):int
Parameters
paragraph:ParagraphElement |
int |
initializeForComposer | () | method |
protected function 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
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):Boolean
Parameters
textLine:TextLine |
Boolean |
parcelHasChanged | () | method |
protected function parcelHasChanged(newParcel:Parcel):void
This 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):void
Parameters
numberLine:TextLine |
preProcessILGs | () | method |
protected function preProcessILGs(startPos:int):Boolean
Parameters
startPos:int |
Boolean |
processFloatsAtLineEnd | () | method |
protected function processFloatsAtLineEnd(textLine:TextLine):Boolean
Parameters
textLine:TextLine |
Boolean |
processFloatsAtLineStart | () | method |
protected function processFloatsAtLineStart():void
processInlinesAtLineEnd | () | method |
protected function processInlinesAtLineEnd(textLine:TextLine):void
Parameters
textLine:TextLine |
pushInsideListItemMargins | () | method |
protected function pushInsideListItemMargins(numberLine:TextLine):void
Parameters
numberLine:TextLine |
releaseParcelList | () | method |
protected function releaseParcelList(list:ParcelList):void
Parameters
list:ParcelList |
resetLine | () | method |
protected function resetLine(textLine:TextLine):void
Parameters
textLine:TextLine |
startLine | () | method |
protected function startLine():void
Called when we are about to compose a line. Handler for derived classes to override default behavior.