1//////////////////////////////////////////////////////////////////////////////// 2// 3// ADOBE SYSTEMS INCORPORATED 4// Copyright 2009 Adobe Systems Incorporated 5// All Rights Reserved. 6// 7// NOTICE: Adobe permits you to use, modify, and distribute this file 8// in accordance with the terms of the license agreement accompanying it. 9// 10//////////////////////////////////////////////////////////////////////////////// 11 12package spark.layouts.supportClasses 13{ 14import flash.geom.Point; 15 16import mx.core.IVisualElement; 17import mx.events.DragEvent; 18 19/** 20 * The DropLocation class contains information describing the drop location 21 * for the dragged data in a drag-and-drop operation. 22 * 23 * <p>The <code>DropLocation</code> is created by the <code>LayoutBase</code> 24 * class when the <code>List</code> calls the layout's 25 * <code>calculateDropLocation()</code> method in response to a <code>dragOver</code>.</p> 26 * 27 * <p>The DropLocation class is used by the layout for operations such as 28 * calculating the drop indicator bounds and drag-scroll deltas.</p> 29 * 30 * @see spark.layouts.supportClasses.LayoutBase#calculateDropLocation() 31 * @see spark.layouts.supportClasses.LayoutBase#calculateDropIndicatorBounds() 32 * 33 * @langversion 3.0 34 * @playerversion Flash 10 35 * @playerversion AIR 1.5 36 * @productversion Flex 4 37 */ 38public class DropLocation 39{ 40 /** 41 * Constructor. 42 * 43 * @langversion 3.0 44 * @playerversion Flash 10 45 * @playerversion AIR 1.5 46 * @productversion Flex 4 47 */ 48 public function DropLocation() 49 { 50 } 51 52 /** 53 * The <code>DragEvent</code> associated with this location. 54 * 55 * @langversion 3.0 56 * @playerversion Flash 10 57 * @playerversion AIR 1.5 58 * @productversion Flex 4 59 */ 60 public var dragEvent:DragEvent = null; 61 62 /** 63 * The drop index corresponding to the event. 64 * 65 * @langversion 3.0 66 * @playerversion Flash 10 67 * @playerversion AIR 1.5 68 * @productversion Flex 4 69 */ 70 public var dropIndex:int = -1; 71 72 /** 73 * The event point in local coordinates of the layout's target. 74 * 75 * @langversion 3.0 76 * @playerversion Flash 10 77 * @playerversion AIR 1.5 78 * @productversion Flex 4 79 */ 80 public var dropPoint:Point = null; 81} 82} 83