package classes.com.senocular.display
{
    import flash.display.*;
    import flash.geom.*;

    public class TransformToolControl extends MovieClip
    {
        protected var _transformTool:TransformTool;
        protected var _referencePoint:Point;
        protected var _relatedObject:InteractiveObject;

        public function TransformToolControl()
        {
            this._relatedObject = this;
            return;
        }// end function

        public function get transformTool() : TransformTool
        {
            return this._transformTool;
        }// end function

        public function set transformTool(param1:TransformTool) : void
        {
            this._transformTool = param1;
            return;
        }// end function

        public function get relatedObject() : InteractiveObject
        {
            return this._relatedObject;
        }// end function

        public function set relatedObject(param1:InteractiveObject) : void
        {
            this._relatedObject = param1 ? (param1) : (this);
            return;
        }// end function

        public function get referencePoint() : Point
        {
            return this._referencePoint;
        }// end function

        public function set referencePoint(param1:Point) : void
        {
            this._referencePoint = param1;
            return;
        }// end function

        public function counterTransform() : void
        {
            transform.matrix = new Matrix();
            var _loc_1:* = transform.concatenatedMatrix;
            _loc_1.invert();
            transform.matrix = _loc_1;
            return;
        }// end function

    }
}
