blob: 96a5e6b97d327ecd92fca8b169ca3ae170d1fc2d [file] [log] [blame]
////////////////////////////////////////////////////////////////////////////////
//
// 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 flashx.textLayout.compose
{
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
import flash.geom.Matrix;
import flash.geom.Rectangle;
/** Contains information about the float that was generated by composition, and is used for composing and updating */
[ExcludeClass]
public class FloatCompositionData
{
public var graphic:DisplayObject; // display object used for float
public var columnIndex:int; // parcel index float was composed into
public var floatType:String; // float type @see flashx.textLayout.formats.Float)
public var x:Number; // x position of DisplayObject origin, in parent object coords
public var y:Number; // y position of DisplayObject origin, in parent object coords
public var alpha:Number; // alpha value from fte-inline placeholder
public var matrix:Matrix; // matrix value from fte-inline placeholder
public var absolutePosition:int; // location of the float in the text flow
public var depth:Number;
public var knockOutWidth:Number;
public var parent:DisplayObjectContainer;
CONFIG::debug { public var displacedVertically:Boolean; }
public function FloatCompositionData(absolutePosition:int, graphic:DisplayObject, floatType:String, x:Number, y:Number, alpha:Number, matrix:Matrix, depth:Number,
knockOutWidth:Number, columnIndex:int, parent:DisplayObjectContainer)
{
this.absolutePosition = absolutePosition;
this.graphic = graphic;
this.floatType = floatType;
this.x = x;
this.y = y;
this.alpha = alpha;
this.matrix = matrix;
this.depth = depth;
this.knockOutWidth = knockOutWidth;
this.columnIndex = columnIndex;
this.parent = parent;
}
}
}