drag ways (still needs undo though)
[potlatch2.git] / net / systemeD / halcyon / connection / WayDraggedEvent.as
1 package net.systemeD.halcyon.connection {
2
3     import flash.events.Event;
4
5     public class WayDraggedEvent extends EntityEvent {
6         private var _way:Way;
7                 private var _xDelta:Number;
8                 private var _yDelta:Number;
9
10         public function WayDraggedEvent(type:String, way:Way, xDelta:Number, yDelta:Number) {
11             super(type, way);
12             this._way = way;
13             this._xDelta = xDelta;
14             this._yDelta = yDelta;
15         }
16
17         public function get way():Way { return _way; }
18         public function get xDelta():Number { return _xDelta; }
19         public function get yDelta():Number { return _yDelta; }
20
21         public override function toString():String {
22             return super.toString() + " in "+_way+" by "+_xDelta+","+_yDelta;
23         }
24     }
25
26 }
27