You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2017/04/19 06:59:36 UTC

git commit: [flex-asjs] [refs/heads/tlf] - This was not committed for some reason.

Repository: flex-asjs
Updated Branches:
  refs/heads/tlf 0b3b20a57 -> fd677581b


This was not committed for some reason.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/fd677581
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/fd677581
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/fd677581

Branch: refs/heads/tlf
Commit: fd677581bd67c00ce0106eea9b59f4ff3c542c55
Parents: 0b3b20a
Author: Harbs <ha...@in-tools.com>
Authored: Wed Apr 19 02:59:33 2017 -0400
Committer: Harbs <ha...@in-tools.com>
Committed: Wed Apr 19 02:59:33 2017 -0400

----------------------------------------------------------------------
 .../factory/FactoryBackgroundManager.as         | 42 ++++++++++++++++++++
 1 file changed, 42 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fd677581/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/factory/FactoryBackgroundManager.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/factory/FactoryBackgroundManager.as b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/factory/FactoryBackgroundManager.as
new file mode 100644
index 0000000..73281c3
--- /dev/null
+++ b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/factory/FactoryBackgroundManager.as
@@ -0,0 +1,42 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.textLayout.factory
+{
+	import org.apache.flex.text.engine.ITextLine;
+	import org.apache.flex.textLayout.compose.ITextFlowLine;
+	import org.apache.flex.textLayout.elements.BackgroundManager;
+
+	public class FactoryBackgroundManager extends BackgroundManager
+	{
+		public override function finalizeLine(line:ITextFlowLine):void
+		{
+			var textLine:ITextLine = line.getTextLine();
+
+			var array:Array = _lineDict[textLine];
+			if (array)
+			{
+				// attach the columnRect and the ITextLine to the first object in the Array
+				var obj:Object = array[0];
+
+				if (obj)	// check not needed?
+					obj.columnRect = line.controller.columnState.getColumnAt(line.columnIndex);
+			}
+		}
+	}
+}
\ No newline at end of file