//>>built
define("dojox/drawing/stencil/Line",["dojo/_base/lang","../util/oo","./_Base","../manager/_registry"],function(d,b,e,f){b=b.declare(e,function(a){},{type:"dojox.drawing.stencil.Line",anchorType:"single",baseRender:!0,dataToPoints:function(a){a=a||this.data;if(a.radius||a.angle){var c=this.util.pointOnCircle(a.x,a.y,a.radius,a.angle);this.data=a={x1:a.x,y1:a.y,x2:c.x,y2:c.y}}return this.points=[{x:a.x1,y:a.y1},{x:a.x2,y:a.y2}]},pointsToData:function(a){a=a||this.points;return this.data={x1:a[0].x,
y1:a[0].y,x2:a[1].x,y2:a[1].y}},_create:function(a,c,g){this.remove(this[a]);this[a]=this.container.createLine(c).setStroke(g);this._setNodeAtts(this[a])},render:function(){this.onBeforeRender(this);this.renderHit&&this._create("hit",this.data,this.style.currentHit);this._create("shape",this.data,this.style.current)}});d.setObject("dojox.drawing.stencil.Line",b);f.register({name:"dojox.drawing.stencil.Line"},"stencil");return b});