<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- saved from url=(0014)about:internet --><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" href="../../../style.css" type="text/css" media="screen"><link rel="stylesheet" href="../../../print.css" type="text/css" media="print"><link rel="stylesheet" href="../../../override.css" type="text/css"><meta name="keywords" content="TextLineRecycler,flashx.textLayout.compose.TextLineRecycler,FIRST,GEOMETRY,INVALID,LAST,MIDDLE,ONLY,_accumulatedMinimumStart,_ascent,_atColumnStart,_blockProgression,_contentCommittedExtent,_contentCommittedHeight,_contentLogicalExtent,_controllerVisibleBoundsHeightTW,_controllerVisibleBoundsWidthTW,_controllerVisibleBoundsXTW,_controllerVisibleBoundsYTW,_curElement,_curElementOffset,_curElementStart,_curInteractiveObjects,_curLineStart,_curLine,_curParaElement,_curParaFormat,_curParaStart,_curParcel,_curParcelStart,_descent,_floatSlug,_flowComposer,_forceILGs,_lastGoodStart,_lastLineDescent,_lastLineLeading,_lastLineLeadingModel,_lineOffset,_linePass,_lineSlug,_listItemElement,_measuring,_paragraphContainsVisibleLines,_paragraphSpaceCarried,_parcelBottom,_parcelLeft,_parcelList,_parcelLogicalTop,_parcelRight,_parcelTop,_previousLine,_pushInFloats,_rootElement,_savedLineSlug,_startComposePosition,_startController,_stopComposePos,_textFlow,_textIndent,_verticalSpaceCarried,_workingContentExtent,_workingContentHeight,_workingContentLogicalExtent,_workingParcelIndex,_workingParcelLogicalTop,_workingTotalDepth,absoluteStart,ascent,ascent,blockIndex,columnIndex,composing,composing,container,controller,damageAbsoluteStart,damageAbsoluteStart,descent,descent,globalSWFContext,height,height,height,lineOffset,location,numControllers,numControllers,numLines,numLines,paragraph,parcelList,parentTable,releaseLineCreationData,rootElement,rootElement,spaceAfter,spaceBefore,startController,swfContext,swfContext,swfContext,textFlow,textHeight,textHeight,textLength,textLineExists,textLineRecyclerEnabled,unjustifiedTextWidth,validity,width,x,x,x,y,y,y,addCell,addController,addController,addControllerAt,addControllerAt,addLineForReuse,advanceToNextContainer,advanceToNextParcel,applyVerticalAlignmentToColumn,calculateLeadingParameters,callInContext,clear,clearCells,commitLastLineState,compose,compose,composeFloat,composeInlineGraphicElement,composeInternal,composeNextLine,composeParagraphElementIntoLines,composeTextFlow,composeToController,composeToController,composeToPosition,composeToPosition,createParcelList,damage,damage,doVerticalAlignment,drawBackground,endLine,endTableBlock,finalParcelAdjustment,findControllerIndexAtPosition,findControllerIndexAtPosition,findLineAtPosition,findLineAtPosition,findLineIndexAtPosition,findLineIndexAtPosition,finishComposeLine,finishController,finishParcel,fitLineToParcel,getAbsoluteStart,getBounds,getCellsInRange,getControllerAt,getControllerAt,getControllerIndex,getControllerIndex,getFirstIndentCharPos,getLineAt,getLineAt,getLineForReuse,getTableCells,getTextLine,hiliteBlockSelection,initialize,initializeForComposer,interactionManagerChanged,interactionManagerChanged,isDamaged,isDamaged,isLineVisible,oldTestLineVisible,parcelHasChanged,popInsideListItemMargins,preCompose,preProcessILGs,processFloatsAtLineEnd,processFloatsAtLineStart,processInlinesAtLineEnd,pushInsideListItemMargins,releaseParcelList,removeAllControllers,removeAllControllers,removeController,removeController,removeControllerAt,removeControllerAt,resetLine,setController,setFocus,setFocus,setRootElement,setRootElement,startLine,updateAllControllers,updateAllControllers,updateCompositionShapes,updateLengths,updateLengths,updateToController,updateToController"><title>flashx.textLayout.compose.TextLineRecycler</title></head><body><script language="javascript" type="text/javascript" src="../../../asdoc.js"></script><script language="javascript" type="text/javascript" src="../../../help.js"></script><script language="javascript" type="text/javascript" src="../../../cookies.js"></script><script language="javascript" type="text/javascript"><!-- | |
asdocTitle = 'TextLineRecycler - ApacheFlex API Reference'; | |
var baseRef = '../../../'; | |
window.onload = configPage; | |
--></script> | |
<script type="text/javascript"> | |
scrollToNameAnchor(); | |
</script><table class="titleTable" cellpadding="0" cellspacing="0" id="titleTable" style="display:none"><tr><td class="titleTableTitle" align="left">Apache Flex 4.14.1 API Reference </td><td class="titleTableTopNav" align="right"><a href="../../../package-summary.html" onclick="loadClassListFrame('../../../all-classes.html')">All Packages</a> | <a href="../../../class-summary.html" onclick="loadClassListFrame('../../../all-classes.html')">All Classes</a> | <a href="../../../all-index-A.html" onclick="loadClassListFrame('../../../index-list.html')">Index</a> | <a id="framesLink1" href="../../../index.html?flashx/textLayout/compose/TextLineRecycler.html&flashx/textLayout/compose/class-list.html">Frames</a><a id="noFramesLink1" style="display:none" href="" onclick="parent.location=document.location"> No Frames </a></td><td class="titleTableLogo" align="right" rowspan="3"><img src="../../../images/logo.jpg" class="logoImage" alt="AdobeLogo" title="AdobeLogo"></td></tr><tr class="titleTableRow2"><td class="titleTableSubTitle" id="subTitle" align="left">TextLineRecycler</td><td class="titleTableSubNav" id="subNav" align="right"><a href="#propertySummary">Properties</a> | <a href="#methodSummary">Methods</a></td></tr><tr class="titleTableRow3"><td colspan="3"> </td></tr></table><script language="javascript" type="text/javascript" xml:space="preserve"> | |
<!-- | |
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("TextLineRecycler"); titleBar_setSubNav(false,true,false,false,false,false,false,false,true,false,false ,false,false,false,false,false);} | |
--> | |
</script><div xmlns:fn="http://www.w3.org/2005/xpath-functions" class="MainContent"><table class="classHeaderTable" cellpadding="0" cellspacing="0"><tr><td class="classHeaderTableLabel">Package</td><td><a href="package-detail.html" onclick="javascript:loadClassListFrame('class-list.html')">flashx.textLayout.compose</a></td></tr><tr><td class="classHeaderTableLabel">Class</td><td class="classSignature">public class TextLineRecycler</td></tr><tr><td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">TextLineRecycler <img src="../../../images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> Object</td></tr></table><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p></p><p></p> | |
The TextLineRecycler class provides support for recycling of TextLines. Some player versions support a recreateTextLine. Passing TextLines | |
to the recycler makes them available for reuse. This improves Player performance. | |
<p></p><br/><hr></div><a name="propertySummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Properties</div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableProperty"><tr><th> </th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a href="#textLineRecyclerEnabled" class="signatureLink">textLineRecyclerEnabled</a> : Boolean<div class="summaryTableDescription">[static] Controls if the TLF recycler enabled.</div></td><td class="summaryTableOwnerCol">TextLineRecycler</td></tr></table></div><a name="methodSummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Methods </div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableMethod"><tr><th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#addLineForReuse()" class="signatureLink">addLineForReuse</a>(textLine:TextLine):void</div><div class="summaryTableDescription">[static] | |
Add a TextLine to the pool for reuse.</div></td><td class="summaryTableOwnerCol">TextLineRecycler</td></tr><tr class=""><td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#getLineForReuse()" class="signatureLink">getLineForReuse</a>():TextLine</div><div class="summaryTableDescription">[static] | |
Return a TextLine from the pool for reuse.</div></td><td class="summaryTableOwnerCol">TextLineRecycler</td></tr></table></div><script language="javascript" type="text/javascript"><!-- | |
showHideInherited(); | |
--></script><div class="MainContent"><div class="detailSectionHeader">Property Detail</div><a name="propertyDetail"></a><a name="textLineRecyclerEnabled"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">textLineRecyclerEnabled</td><td class="detailHeaderType">property</td></tr></table><div class="detailBody"><code>textLineRecyclerEnabled:Boolean</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p> Controls if the TLF recycler enabled. It can only be enabled in 10.1 or later players. | |
</p><br/><span class="label"> Implementation </span><br/><code> public static function get textLineRecyclerEnabled():Boolean</code><br/><code> public static function set textLineRecyclerEnabled(value:Boolean):void</code><br/></div><a name="methodDetail"></a><div class="detailSectionHeader">Method Detail</div><a name="addLineForReuse()"></a><a name="addLineForReuse(flash.text.engine.TextLine)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">addLineForReuse</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code> public static function addLineForReuse(textLine:TextLine):void</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p> | |
Add a TextLine to the pool for reuse. TextLines for reuse should have null userData and null parent. | |
</p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">textLine</span>:TextLine</code></td></tr></table></p></div><a name="getLineForReuse()"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">getLineForReuse</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td></tr></table><div class="detailBody"><code> public static function getLineForReuse():TextLine</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Language Version : </b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b> Runtime Versions : </b></td><td>Flash Player 10, AIR 1.5</td></tr></table><p></p><p></p><p> | |
Return a TextLine from the pool for reuse. | |
</p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code>TextLine</code></td></tr></table></div><br/><br/><hr><br/><p></p><center class="copyright"><footer>The Apache Software Foundation</footer><br/>Wed Mar 25 2015, 07:57 PM +01:00 </center></div></body></html><!--The Apache Software Foundation<br/>Wed Mar 25 2015, 07:57 PM +01:00 --> |