//>>built
define("dojox/drawing/ui/Tooltip",["dojo","../util/oo","../plugins/_Plugin","../manager/_registry"],function(f,g,m,n){var k=null,p=g.declare(m,function(a){this.createDom()},{show:function(a,d){this.domNode.innerHTML=d;var b=a.data.x+a.data.width+this.mouse.origin.x+30,c=a.data.y+a.data.height+this.mouse.origin.y+30;f.style(this.domNode,{display:"inline",left:b+"px",top:c+"px"});var h=f.marginBox(this.domNode);this.createShape(b-this.mouse.origin.x,c-this.mouse.origin.y,h.w,h.h)},createShape:function(a,
d,b,c){this.balloon&&this.balloon.destroy();b=a+b;c=d+c;var h=[],e=function(){for(var l=0;l<arguments.length;l++)h.push(arguments[l])};e({x:a,y:d+5},{t:"Q",x:a,y:d},{x:a+5,y:d});e({t:"L",x:b-5,y:d});e({t:"Q",x:b,y:d},{x:b,y:d+5});e({t:"L",x:b,y:c-5});e({t:"Q",x:b,y:c},{x:b-5,y:c});e({t:"L",x:a+5,y:c});e({t:"Q",x:a,y:c},{x:a,y:c-5});e({t:"L",x:a,y:d+5});this.balloon=this.drawing.addUI("path",{points:h})},createDom:function(){this.domNode=f.create("span",{"class":"drawingTooltip"},document.body);f.style(this.domNode,
{display:"none",position:"absolute"})}});g=g.declare(m,function(a){k||(k=new p(a));!a.stencil&&this.button&&(this.connect(this.button,"onOver",this,"onOver"),this.connect(this.button,"onOut",this,"onOut"))},{width:300,height:200,onOver:function(){k.show(this.button,this.data.text)},onOut:function(){}});f.setObject("dojox.drawing.ui.Tooltip",g);n.register({name:"dojox.drawing.ui.Tooltip"},"stencil");return g});