You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2009/03/19 11:37:20 UTC
svn commit: r755904 [25/40] - in
/camel/trunk/components/camel-web/src/main/webapp/js/dojox: ./ analytics/
analytics/logger/ analytics/plugins/ analytics/profiles/ atom/ atom/io/
atom/widget/ atom/widget/nls/ atom/widget/nls/cs/ atom/widget/nls/de/ ato...
Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/shape.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/shape.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/shape.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/shape.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,365 @@
+/*
+ Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
+ see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.gfx.shape"]){
+dojo._hasResource["dojox.gfx.shape"]=true;
+dojo.provide("dojox.gfx.shape");
+dojo.require("dojox.gfx._base");
+dojo.declare("dojox.gfx.Shape",null,{constructor:function(){
+this.rawNode=null;
+this.shape=null;
+this.matrix=null;
+this.fillStyle=null;
+this.strokeStyle=null;
+this.bbox=null;
+this.parent=null;
+this.parentMatrix=null;
+},getNode:function(){
+return this.rawNode;
+},getShape:function(){
+return this.shape;
+},getTransform:function(){
+return this.matrix;
+},getFill:function(){
+return this.fillStyle;
+},getStroke:function(){
+return this.strokeStyle;
+},getParent:function(){
+return this.parent;
+},getBoundingBox:function(){
+return this.bbox;
+},getTransformedBoundingBox:function(){
+var b=this.getBoundingBox();
+if(!b){
+return null;
+}
+var m=this._getRealMatrix();
+var r=[];
+var g=dojox.gfx.matrix;
+r.push(g.multiplyPoint(m,b.x,b.y));
+r.push(g.multiplyPoint(m,b.x+b.width,b.y));
+r.push(g.multiplyPoint(m,b.x+b.width,b.y+b.height));
+r.push(g.multiplyPoint(m,b.x,b.y+b.height));
+return r;
+},getEventSource:function(){
+return this.rawNode;
+},setShape:function(_5){
+this.shape=dojox.gfx.makeParameters(this.shape,_5);
+this.bbox=null;
+return this;
+},setFill:function(_6){
+if(!_6){
+this.fillStyle=null;
+return this;
+}
+var f=null;
+if(typeof (_6)=="object"&&"type" in _6){
+switch(_6.type){
+case "linear":
+f=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,_6);
+break;
+case "radial":
+f=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,_6);
+break;
+case "pattern":
+f=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,_6);
+break;
+}
+}else{
+f=dojox.gfx.normalizeColor(_6);
+}
+this.fillStyle=f;
+return this;
+},setStroke:function(_8){
+if(!_8){
+this.strokeStyle=null;
+return this;
+}
+if(typeof _8=="string"||dojo.isArray(_8)||_8 instanceof dojo.Color){
+_8={color:_8};
+}
+var s=this.strokeStyle=dojox.gfx.makeParameters(dojox.gfx.defaultStroke,_8);
+s.color=dojox.gfx.normalizeColor(s.color);
+return this;
+},setTransform:function(_a){
+this.matrix=dojox.gfx.matrix.clone(_a?dojox.gfx.matrix.normalize(_a):dojox.gfx.matrix.identity);
+return this._applyTransform();
+},_applyTransform:function(){
+return this;
+},moveToFront:function(){
+var p=this.getParent();
+if(p){
+p._moveChildToFront(this);
+this._moveToFront();
+}
+return this;
+},moveToBack:function(){
+var p=this.getParent();
+if(p){
+p._moveChildToBack(this);
+this._moveToBack();
+}
+return this;
+},_moveToFront:function(){
+},_moveToBack:function(){
+},applyRightTransform:function(_d){
+return _d?this.setTransform([this.matrix,_d]):this;
+},applyLeftTransform:function(_e){
+return _e?this.setTransform([_e,this.matrix]):this;
+},applyTransform:function(_f){
+return _f?this.setTransform([this.matrix,_f]):this;
+},removeShape:function(_10){
+if(this.parent){
+this.parent.remove(this,_10);
+}
+return this;
+},_setParent:function(_11,_12){
+this.parent=_11;
+return this._updateParentMatrix(_12);
+},_updateParentMatrix:function(_13){
+this.parentMatrix=_13?dojox.gfx.matrix.clone(_13):null;
+return this._applyTransform();
+},_getRealMatrix:function(){
+var m=this.matrix;
+var p=this.parent;
+while(p){
+if(p.matrix){
+m=dojox.gfx.matrix.multiply(p.matrix,m);
+}
+p=p.parent;
+}
+return m;
+}});
+dojox.gfx.shape._eventsProcessing={connect:function(_16,_17,_18){
+return arguments.length>2?dojo.connect(this.getEventSource(),_16,_17,_18):dojo.connect(this.getEventSource(),_16,_17);
+},disconnect:function(_19){
+dojo.disconnect(_19);
+}};
+dojo.extend(dojox.gfx.Shape,dojox.gfx.shape._eventsProcessing);
+dojox.gfx.shape.Container={_init:function(){
+this.children=[];
+},add:function(_1a){
+var _1b=_1a.getParent();
+if(_1b){
+_1b.remove(_1a,true);
+}
+this.children.push(_1a);
+return _1a._setParent(this,this._getRealMatrix());
+},remove:function(_1c,_1d){
+for(var i=0;i<this.children.length;++i){
+if(this.children[i]==_1c){
+if(_1d){
+}else{
+_1c.parent=null;
+_1c.parentMatrix=null;
+}
+this.children.splice(i,1);
+break;
+}
+}
+return this;
+},clear:function(){
+this.children=[];
+return this;
+},_moveChildToFront:function(_1f){
+for(var i=0;i<this.children.length;++i){
+if(this.children[i]==_1f){
+this.children.splice(i,1);
+this.children.push(_1f);
+break;
+}
+}
+return this;
+},_moveChildToBack:function(_21){
+for(var i=0;i<this.children.length;++i){
+if(this.children[i]==_21){
+this.children.splice(i,1);
+this.children.unshift(_21);
+break;
+}
+}
+return this;
+}};
+dojo.declare("dojox.gfx.shape.Surface",null,{constructor:function(){
+this.rawNode=null;
+this._parent=null;
+this._nodes=[];
+this._events=[];
+},destroy:function(){
+dojo.forEach(this._nodes,dojo.destroy);
+this._nodes=[];
+dojo.forEach(this._events,dojo.disconnect);
+this._events=[];
+this.rawNode=null;
+if(dojo.isIE){
+while(this._parent.lastChild){
+dojo.destroy(this._parent.lastChild);
+}
+}else{
+this._parent.innerHTML="";
+}
+this._parent=null;
+},getEventSource:function(){
+return this.rawNode;
+},_getRealMatrix:function(){
+return null;
+},isLoaded:true,onLoad:function(_23){
+},whenLoaded:function(_24,_25){
+var f=dojo.hitch(_24,_25);
+if(this.isLoaded){
+f(this);
+}else{
+var h=dojo.connect(this,"onLoad",function(_28){
+dojo.disconnect(h);
+f(_28);
+});
+}
+}});
+dojo.extend(dojox.gfx.shape.Surface,dojox.gfx.shape._eventsProcessing);
+dojo.declare("dojox.gfx.Point",null,{});
+dojo.declare("dojox.gfx.Rectangle",null,{});
+dojo.declare("dojox.gfx.shape.Rect",dojox.gfx.Shape,{constructor:function(_29){
+this.shape=dojo.clone(dojox.gfx.defaultRect);
+this.rawNode=_29;
+},getBoundingBox:function(){
+return this.shape;
+}});
+dojo.declare("dojox.gfx.shape.Ellipse",dojox.gfx.Shape,{constructor:function(_2a){
+this.shape=dojo.clone(dojox.gfx.defaultEllipse);
+this.rawNode=_2a;
+},getBoundingBox:function(){
+if(!this.bbox){
+var _2b=this.shape;
+this.bbox={x:_2b.cx-_2b.rx,y:_2b.cy-_2b.ry,width:2*_2b.rx,height:2*_2b.ry};
+}
+return this.bbox;
+}});
+dojo.declare("dojox.gfx.shape.Circle",dojox.gfx.Shape,{constructor:function(_2c){
+this.shape=dojo.clone(dojox.gfx.defaultCircle);
+this.rawNode=_2c;
+},getBoundingBox:function(){
+if(!this.bbox){
+var _2d=this.shape;
+this.bbox={x:_2d.cx-_2d.r,y:_2d.cy-_2d.r,width:2*_2d.r,height:2*_2d.r};
+}
+return this.bbox;
+}});
+dojo.declare("dojox.gfx.shape.Line",dojox.gfx.Shape,{constructor:function(_2e){
+this.shape=dojo.clone(dojox.gfx.defaultLine);
+this.rawNode=_2e;
+},getBoundingBox:function(){
+if(!this.bbox){
+var _2f=this.shape;
+this.bbox={x:Math.min(_2f.x1,_2f.x2),y:Math.min(_2f.y1,_2f.y2),width:Math.abs(_2f.x2-_2f.x1),height:Math.abs(_2f.y2-_2f.y1)};
+}
+return this.bbox;
+}});
+dojo.declare("dojox.gfx.shape.Polyline",dojox.gfx.Shape,{constructor:function(_30){
+this.shape=dojo.clone(dojox.gfx.defaultPolyline);
+this.rawNode=_30;
+},setShape:function(_31,_32){
+if(_31&&_31 instanceof Array){
+dojox.gfx.Shape.prototype.setShape.call(this,{points:_31});
+if(_32&&this.shape.points.length){
+this.shape.points.push(this.shape.points[0]);
+}
+}else{
+dojox.gfx.Shape.prototype.setShape.call(this,_31);
+}
+return this;
+},getBoundingBox:function(){
+if(!this.bbox&&this.shape.points.length){
+var p=this.shape.points;
+var l=p.length;
+var t=p[0];
+var _36={l:t.x,t:t.y,r:t.x,b:t.y};
+for(var i=1;i<l;++i){
+t=p[i];
+if(_36.l>t.x){
+_36.l=t.x;
+}
+if(_36.r<t.x){
+_36.r=t.x;
+}
+if(_36.t>t.y){
+_36.t=t.y;
+}
+if(_36.b<t.y){
+_36.b=t.y;
+}
+}
+this.bbox={x:_36.l,y:_36.t,width:_36.r-_36.l,height:_36.b-_36.t};
+}
+return this.bbox;
+}});
+dojo.declare("dojox.gfx.shape.Image",dojox.gfx.Shape,{constructor:function(_38){
+this.shape=dojo.clone(dojox.gfx.defaultImage);
+this.rawNode=_38;
+},getBoundingBox:function(){
+return this.shape;
+},setStroke:function(){
+return this;
+},setFill:function(){
+return this;
+}});
+dojo.declare("dojox.gfx.shape.Text",dojox.gfx.Shape,{constructor:function(_39){
+this.fontStyle=null;
+this.shape=dojo.clone(dojox.gfx.defaultText);
+this.rawNode=_39;
+},getFont:function(){
+return this.fontStyle;
+},setFont:function(_3a){
+this.fontStyle=typeof _3a=="string"?dojox.gfx.splitFontString(_3a):dojox.gfx.makeParameters(dojox.gfx.defaultFont,_3a);
+this._setFont();
+return this;
+}});
+dojox.gfx.shape.Creator={createShape:function(_3b){
+switch(_3b.type){
+case dojox.gfx.defaultPath.type:
+return this.createPath(_3b);
+case dojox.gfx.defaultRect.type:
+return this.createRect(_3b);
+case dojox.gfx.defaultCircle.type:
+return this.createCircle(_3b);
+case dojox.gfx.defaultEllipse.type:
+return this.createEllipse(_3b);
+case dojox.gfx.defaultLine.type:
+return this.createLine(_3b);
+case dojox.gfx.defaultPolyline.type:
+return this.createPolyline(_3b);
+case dojox.gfx.defaultImage.type:
+return this.createImage(_3b);
+case dojox.gfx.defaultText.type:
+return this.createText(_3b);
+case dojox.gfx.defaultTextPath.type:
+return this.createTextPath(_3b);
+}
+return null;
+},createGroup:function(){
+return this.createObject(dojox.gfx.Group);
+},createRect:function(_3c){
+return this.createObject(dojox.gfx.Rect,_3c);
+},createEllipse:function(_3d){
+return this.createObject(dojox.gfx.Ellipse,_3d);
+},createCircle:function(_3e){
+return this.createObject(dojox.gfx.Circle,_3e);
+},createLine:function(_3f){
+return this.createObject(dojox.gfx.Line,_3f);
+},createPolyline:function(_40){
+return this.createObject(dojox.gfx.Polyline,_40);
+},createImage:function(_41){
+return this.createObject(dojox.gfx.Image,_41);
+},createText:function(_42){
+return this.createObject(dojox.gfx.Text,_42);
+},createPath:function(_43){
+return this.createObject(dojox.gfx.Path,_43);
+},createTextPath:function(_44){
+return this.createObject(dojox.gfx.TextPath,{}).setText(_44);
+},createObject:function(_45,_46){
+return null;
+}};
+}
Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/shape.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/silverlight.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/silverlight.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/silverlight.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/silverlight.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,499 @@
+/*
+ Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
+ see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.gfx.silverlight"]){
+dojo._hasResource["dojox.gfx.silverlight"]=true;
+dojo.provide("dojox.gfx.silverlight");
+dojo.require("dojox.gfx._base");
+dojo.require("dojox.gfx.shape");
+dojo.require("dojox.gfx.path");
+dojo.experimental("dojox.gfx.silverlight");
+dojox.gfx.silverlight.dasharray={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]};
+dojox.gfx.silverlight.fontweight={normal:400,bold:700};
+dojox.gfx.silverlight.caps={butt:"Flat",round:"Round",square:"Square"};
+dojox.gfx.silverlight.joins={bevel:"Bevel",round:"Round"};
+dojox.gfx.silverlight.fonts={serif:"Times New Roman",times:"Times New Roman","sans-serif":"Arial",helvetica:"Arial",monotone:"Courier New",courier:"Courier New"};
+dojox.gfx.silverlight.hexColor=function(_1){
+var c=dojox.gfx.normalizeColor(_1),t=c.toHex(),a=Math.round(c.a*255);
+a=(a<0?0:a>255?255:a).toString(16);
+return "#"+(a.length<2?"0"+a:a)+t.slice(1);
+};
+dojo.extend(dojox.gfx.Shape,{setFill:function(_5){
+var p=this.rawNode.getHost().content,r=this.rawNode,f;
+if(!_5){
+this.fillStyle=null;
+this._setFillAttr(null);
+return this;
+}
+if(typeof (_5)=="object"&&"type" in _5){
+switch(_5.type){
+case "linear":
+this.fillStyle=f=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,_5);
+var _9=p.createFromXaml("<LinearGradientBrush/>");
+_9.mappingMode="Absolute";
+_9.startPoint=f.x1+","+f.y1;
+_9.endPoint=f.x2+","+f.y2;
+dojo.forEach(f.colors,function(c){
+var t=p.createFromXaml("<GradientStop/>");
+t.offset=c.offset;
+t.color=dojox.gfx.silverlight.hexColor(c.color);
+_9.gradientStops.add(t);
+});
+this._setFillAttr(_9);
+break;
+case "radial":
+this.fillStyle=f=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,_5);
+var _c=p.createFromXaml("<RadialGradientBrush/>"),c=dojox.gfx.matrix.multiplyPoint(dojox.gfx.matrix.invert(this._getAdjustedMatrix()),f.cx,f.cy),pt=c.x+","+c.y;
+_c.mappingMode="Absolute";
+_c.gradientOrigin=pt;
+_c.center=pt;
+_c.radiusX=_c.radiusY=f.r;
+dojo.forEach(f.colors,function(c){
+var t=p.createFromXaml("<GradientStop/>");
+t.offset=c.offset;
+t.color=dojox.gfx.silverlight.hexColor(c.color);
+_c.gradientStops.add(t);
+});
+this._setFillAttr(_c);
+break;
+case "pattern":
+this.fillStyle=null;
+this._setFillAttr(null);
+break;
+}
+return this;
+}
+this.fillStyle=f=dojox.gfx.normalizeColor(_5);
+var scb=p.createFromXaml("<SolidColorBrush/>");
+scb.color=f.toHex();
+scb.opacity=f.a;
+this._setFillAttr(scb);
+return this;
+},_setFillAttr:function(f){
+this.rawNode.fill=f;
+},setStroke:function(_13){
+var p=this.rawNode.getHost().content,r=this.rawNode;
+if(!_13){
+this.strokeStyle=null;
+r.stroke=null;
+return this;
+}
+if(typeof _13=="string"||dojo.isArray(_13)||_13 instanceof dojo.Color){
+_13={color:_13};
+}
+var s=this.strokeStyle=dojox.gfx.makeParameters(dojox.gfx.defaultStroke,_13);
+s.color=dojox.gfx.normalizeColor(s.color);
+if(s){
+var scb=p.createFromXaml("<SolidColorBrush/>");
+scb.color=s.color.toHex();
+scb.opacity=s.color.a;
+r.stroke=scb;
+r.strokeThickness=s.width;
+r.strokeStartLineCap=r.strokeEndLineCap=r.strokeDashCap=dojox.gfx.silverlight.caps[s.cap];
+if(typeof s.join=="number"){
+r.strokeLineJoin="Miter";
+r.strokeMiterLimit=s.join;
+}else{
+r.strokeLineJoin=dojox.gfx.silverlight.joins[s.join];
+}
+var da=s.style.toLowerCase();
+if(da in dojox.gfx.silverlight.dasharray){
+da=dojox.gfx.silverlight.dasharray[da];
+}
+if(da instanceof Array){
+da=dojo.clone(da);
+if(s.cap!="butt"){
+for(var i=0;i<da.length;i+=2){
+--da[i];
+if(da[i]<1){
+da[i]=1;
+}
+}
+for(var i=1;i<da.length;i+=2){
+++da[i];
+}
+}
+r.strokeDashArray=da.join(",");
+}else{
+r.strokeDashArray=null;
+}
+}
+return this;
+},_getParentSurface:function(){
+var _1a=this.parent;
+for(;_1a&&!(_1a instanceof dojox.gfx.Surface);_1a=_1a.parent){
+}
+return _1a;
+},_applyTransform:function(){
+var tm=this._getAdjustedMatrix(),r=this.rawNode;
+if(tm){
+var p=this.rawNode.getHost().content,m=p.createFromXaml("<MatrixTransform/>"),mm=p.createFromXaml("<Matrix/>");
+mm.m11=tm.xx;
+mm.m21=tm.xy;
+mm.m12=tm.yx;
+mm.m22=tm.yy;
+mm.offsetX=tm.dx;
+mm.offsetY=tm.dy;
+m.matrix=mm;
+r.renderTransform=m;
+}else{
+r.renderTransform=null;
+}
+return this;
+},setRawNode:function(_20){
+_20.fill=null;
+_20.stroke=null;
+this.rawNode=_20;
+},_moveToFront:function(){
+var c=this.parent.rawNode.children,r=this.rawNode;
+c.remove(r);
+c.add(r);
+return this;
+},_moveToBack:function(){
+var c=this.parent.rawNode.children,r=this.rawNode;
+c.remove(r);
+c.insert(0,r);
+return this;
+},_getAdjustedMatrix:function(){
+return this.matrix;
+}});
+dojo.declare("dojox.gfx.Group",dojox.gfx.Shape,{constructor:function(){
+dojox.gfx.silverlight.Container._init.call(this);
+},setRawNode:function(_25){
+this.rawNode=_25;
+}});
+dojox.gfx.Group.nodeType="Canvas";
+dojo.declare("dojox.gfx.Rect",dojox.gfx.shape.Rect,{setShape:function(_26){
+this.shape=dojox.gfx.makeParameters(this.shape,_26);
+this.bbox=null;
+var r=this.rawNode,n=this.shape;
+r.width=n.width;
+r.height=n.height;
+r.radiusX=r.radiusY=n.r;
+return this._applyTransform();
+},_getAdjustedMatrix:function(){
+var m=this.matrix,s=this.shape,d={dx:s.x,dy:s.y};
+return new dojox.gfx.Matrix2D(m?[m,d]:d);
+}});
+dojox.gfx.Rect.nodeType="Rectangle";
+dojo.declare("dojox.gfx.Ellipse",dojox.gfx.shape.Ellipse,{setShape:function(_2c){
+this.shape=dojox.gfx.makeParameters(this.shape,_2c);
+this.bbox=null;
+var r=this.rawNode,n=this.shape;
+r.width=2*n.rx;
+r.height=2*n.ry;
+return this._applyTransform();
+},_getAdjustedMatrix:function(){
+var m=this.matrix,s=this.shape,d={dx:s.cx-s.rx,dy:s.cy-s.ry};
+return new dojox.gfx.Matrix2D(m?[m,d]:d);
+}});
+dojox.gfx.Ellipse.nodeType="Ellipse";
+dojo.declare("dojox.gfx.Circle",dojox.gfx.shape.Circle,{setShape:function(_32){
+this.shape=dojox.gfx.makeParameters(this.shape,_32);
+this.bbox=null;
+var r=this.rawNode,n=this.shape;
+r.width=r.height=2*n.r;
+return this._applyTransform();
+},_getAdjustedMatrix:function(){
+var m=this.matrix,s=this.shape,d={dx:s.cx-s.r,dy:s.cy-s.r};
+return new dojox.gfx.Matrix2D(m?[m,d]:d);
+}});
+dojox.gfx.Circle.nodeType="Ellipse";
+dojo.declare("dojox.gfx.Line",dojox.gfx.shape.Line,{setShape:function(_38){
+this.shape=dojox.gfx.makeParameters(this.shape,_38);
+this.bbox=null;
+var r=this.rawNode,n=this.shape;
+r.x1=n.x1;
+r.y1=n.y1;
+r.x2=n.x2;
+r.y2=n.y2;
+return this;
+}});
+dojox.gfx.Line.nodeType="Line";
+dojo.declare("dojox.gfx.Polyline",dojox.gfx.shape.Polyline,{setShape:function(_3b,_3c){
+if(_3b&&_3b instanceof Array){
+this.shape=dojox.gfx.makeParameters(this.shape,{points:_3b});
+if(_3c&&this.shape.points.length){
+this.shape.points.push(this.shape.points[0]);
+}
+}else{
+this.shape=dojox.gfx.makeParameters(this.shape,_3b);
+}
+this.box=null;
+var p=this.shape.points,rp=[];
+for(var i=0;i<p.length;++i){
+if(typeof p[i]=="number"){
+rp.push(p[i],p[++i]);
+}else{
+rp.push(p[i].x,p[i].y);
+}
+}
+this.rawNode.points=rp.join(",");
+return this;
+}});
+dojox.gfx.Polyline.nodeType="Polyline";
+dojo.declare("dojox.gfx.Image",dojox.gfx.shape.Image,{setShape:function(_40){
+this.shape=dojox.gfx.makeParameters(this.shape,_40);
+this.bbox=null;
+var r=this.rawNode,n=this.shape;
+r.width=n.width;
+r.height=n.height;
+r.source=n.src;
+return this._applyTransform();
+},_getAdjustedMatrix:function(){
+var m=this.matrix,s=this.shape,d={dx:s.x,dy:s.y};
+return new dojox.gfx.Matrix2D(m?[m,d]:d);
+},setRawNode:function(_46){
+this.rawNode=_46;
+}});
+dojox.gfx.Image.nodeType="Image";
+dojo.declare("dojox.gfx.Text",dojox.gfx.shape.Text,{setShape:function(_47){
+this.shape=dojox.gfx.makeParameters(this.shape,_47);
+this.bbox=null;
+var r=this.rawNode,s=this.shape;
+r.text=s.text;
+r.textDecorations=s.decoration==="underline"?"Underline":"None";
+r["Canvas.Left"]=-10000;
+r["Canvas.Top"]=-10000;
+if(!this._delay){
+this._delay=window.setTimeout(dojo.hitch(this,"_delayAlignment"),10);
+}
+return this;
+},_delayAlignment:function(){
+var r=this.rawNode,s=this.shape,w=r.actualWidth,h=r.actualHeight,x=s.x,y=s.y-h*0.75;
+switch(s.align){
+case "middle":
+x-=w/2;
+break;
+case "end":
+x-=w;
+break;
+}
+this._delta={dx:x,dy:y};
+r["Canvas.Left"]=0;
+r["Canvas.Top"]=0;
+this._applyTransform();
+delete this._delay;
+},_getAdjustedMatrix:function(){
+var m=this.matrix,d=this._delta,x;
+if(m){
+x=d?[m,d]:m;
+}else{
+x=d?d:{};
+}
+return new dojox.gfx.Matrix2D(x);
+},setStroke:function(){
+return this;
+},_setFillAttr:function(f){
+this.rawNode.foreground=f;
+},setRawNode:function(_54){
+this.rawNode=_54;
+},getTextWidth:function(){
+return this.rawNode.actualWidth;
+}});
+dojox.gfx.Text.nodeType="TextBlock";
+dojo.declare("dojox.gfx.Path",dojox.gfx.path.Path,{_updateWithSegment:function(_55){
+dojox.gfx.Path.superclass._updateWithSegment.apply(this,arguments);
+var p=this.shape.path;
+if(typeof (p)=="string"){
+this.rawNode.data=p?p:null;
+}
+},setShape:function(_57){
+dojox.gfx.Path.superclass.setShape.apply(this,arguments);
+var p=this.shape.path;
+this.rawNode.data=p?p:null;
+return this;
+}});
+dojox.gfx.Path.nodeType="Path";
+dojo.declare("dojox.gfx.TextPath",dojox.gfx.path.TextPath,{_updateWithSegment:function(_59){
+},setShape:function(_5a){
+},_setText:function(){
+}});
+dojox.gfx.TextPath.nodeType="text";
+dojox.gfx.silverlight.surfaces={};
+dojox.gfx.silverlight.nullFunc=function(){
+};
+dojo.declare("dojox.gfx.Surface",dojox.gfx.shape.Surface,{constructor:function(){
+dojox.gfx.silverlight.Container._init.call(this);
+},destroy:function(){
+window[this._onLoadName]=dojox.gfx.silverlight.nullFunc;
+delete dojox.gfx.silverlight.surfaces[this.rawNode.name];
+this.inherited(arguments);
+},setDimensions:function(_5b,_5c){
+this.width=dojox.gfx.normalizedLength(_5b);
+this.height=dojox.gfx.normalizedLength(_5c);
+var p=this.rawNode&&this.rawNode.getHost();
+if(p){
+p.width=_5b;
+p.height=_5c;
+}
+return this;
+},getDimensions:function(){
+var p=this.rawNode&&this.rawNode.getHost();
+var t=p?{width:p.content.actualWidth,height:p.content.actualHeight}:null;
+if(t.width<=0){
+t.width=this.width;
+}
+if(t.height<=0){
+t.height=this.height;
+}
+return t;
+}});
+dojox.gfx.createSurface=function(_60,_61,_62){
+var s=new dojox.gfx.Surface();
+_60=dojo.byId(_60);
+s._parent=_60;
+var t=_60.ownerDocument.createElement("script");
+t.type="text/xaml";
+t.id=dojox.gfx._base._getUniqueId();
+t.text="<?xml version='1.0'?><Canvas xmlns='http://schemas.microsoft.com/client/2007' Name='"+dojox.gfx._base._getUniqueId()+"'/>";
+_60.parentNode.insertBefore(t,_60);
+s._nodes.push(t);
+var obj,_66=dojox.gfx._base._getUniqueId(),_67="__"+dojox.gfx._base._getUniqueId()+"_onLoad";
+s._onLoadName=_67;
+window[_67]=function(_68){
+
+if(!s.rawNode){
+s.rawNode=dojo.byId(_66).content.root;
+dojox.gfx.silverlight.surfaces[s.rawNode.name]=_60;
+s.onLoad(s);
+
+}
+};
+if(dojo.isSafari){
+obj="<embed type='application/x-silverlight' id='"+_66+"' width='"+_61+"' height='"+_62+" background='transparent'"+" source='#"+t.id+"'"+" windowless='true'"+" maxFramerate='60'"+" onLoad='"+_67+"'"+" onError='__dojoSilverlightError'"+" /><iframe style='visibility:hidden;height:0;width:0'/>";
+}else{
+obj="<object type='application/x-silverlight' data='data:application/x-silverlight,' id='"+_66+"' width='"+_61+"' height='"+_62+"'>"+"<param name='background' value='transparent' />"+"<param name='source' value='#"+t.id+"' />"+"<param name='windowless' value='true' />"+"<param name='maxFramerate' value='60' />"+"<param name='onLoad' value='"+_67+"' />"+"<param name='onError' value='__dojoSilverlightError' />"+"</object>";
+}
+_60.innerHTML=obj;
+var _69=dojo.byId(_66);
+if(_69.content&&_69.content.root){
+s.rawNode=_69.content.root;
+dojox.gfx.silverlight.surfaces[s.rawNode.name]=_60;
+}else{
+s.rawNode=null;
+s.isLoaded=false;
+}
+s._nodes.push(_69);
+s.width=dojox.gfx.normalizedLength(_61);
+s.height=dojox.gfx.normalizedLength(_62);
+return s;
+};
+__dojoSilverlightError=function(_6a,err){
+var t="Silverlight Error:\n"+"Code: "+err.ErrorCode+"\n"+"Type: "+err.ErrorType+"\n"+"Message: "+err.ErrorMessage+"\n";
+switch(err.ErrorType){
+case "ParserError":
+t+="XamlFile: "+err.xamlFile+"\n"+"Line: "+err.lineNumber+"\n"+"Position: "+err.charPosition+"\n";
+break;
+case "RuntimeError":
+t+="MethodName: "+err.methodName+"\n";
+if(err.lineNumber!=0){
+t+="Line: "+err.lineNumber+"\n"+"Position: "+err.charPosition+"\n";
+}
+break;
+}
+console.error(t);
+};
+dojox.gfx.silverlight.Font={_setFont:function(){
+var f=this.fontStyle,r=this.rawNode,fw=dojox.gfx.silverlight.fontweight,fo=dojox.gfx.silverlight.fonts,t=f.family.toLowerCase();
+r.fontStyle=f.style=="italic"?"Italic":"Normal";
+r.fontWeight=f.weight in fw?fw[f.weight]:f.weight;
+r.fontSize=dojox.gfx.normalizedLength(f.size);
+r.fontFamily=t in fo?fo[t]:f.family;
+if(!this._delay){
+this._delay=window.setTimeout(dojo.hitch(this,"_delayAlignment"),10);
+}
+}};
+dojox.gfx.silverlight.Container={_init:function(){
+dojox.gfx.shape.Container._init.call(this);
+},add:function(_72){
+if(this!=_72.getParent()){
+dojox.gfx.shape.Container.add.apply(this,arguments);
+this.rawNode.children.add(_72.rawNode);
+}
+return this;
+},remove:function(_73,_74){
+if(this==_73.getParent()){
+var _75=_73.rawNode.getParent();
+if(_75){
+_75.children.remove(_73.rawNode);
+}
+dojox.gfx.shape.Container.remove.apply(this,arguments);
+}
+return this;
+},clear:function(){
+this.rawNode.children.clear();
+return dojox.gfx.shape.Container.clear.apply(this,arguments);
+},_moveChildToFront:dojox.gfx.shape.Container._moveChildToFront,_moveChildToBack:dojox.gfx.shape.Container._moveChildToBack};
+dojo.mixin(dojox.gfx.shape.Creator,{createObject:function(_76,_77){
+if(!this.rawNode){
+return null;
+}
+var _78=new _76();
+var _79=this.rawNode.getHost().content.createFromXaml("<"+_76.nodeType+"/>");
+_78.setRawNode(_79);
+_78.setShape(_77);
+this.add(_78);
+return _78;
+}});
+dojo.extend(dojox.gfx.Text,dojox.gfx.silverlight.Font);
+dojo.extend(dojox.gfx.Group,dojox.gfx.silverlight.Container);
+dojo.extend(dojox.gfx.Group,dojox.gfx.shape.Creator);
+dojo.extend(dojox.gfx.Surface,dojox.gfx.silverlight.Container);
+dojo.extend(dojox.gfx.Surface,dojox.gfx.shape.Creator);
+(function(){
+var _7a=dojox.gfx.silverlight.surfaces;
+var _7b=function(s,a){
+var ev={target:s,currentTarget:s,preventDefault:function(){
+},stopPropagation:function(){
+}};
+if(a){
+try{
+ev.ctrlKey=a.ctrl;
+ev.shiftKey=a.shift;
+var p=a.getPosition(null);
+ev.x=ev.offsetX=ev.layerX=p.x;
+ev.y=ev.offsetY=ev.layerY=p.y;
+var _80=_7a[s.getHost().content.root.name];
+var t=dojo._abs(_80);
+ev.clientX=t.x+p.x;
+ev.clientY=t.y+p.y;
+}
+catch(e){
+}
+}
+return ev;
+};
+var _82=function(s,a){
+var ev={keyCode:a.platformKeyCode,ctrlKey:a.ctrl,shiftKey:a.shift};
+return ev;
+};
+var _86={onclick:{name:"MouseLeftButtonUp",fix:_7b},onmouseenter:{name:"MouseEnter",fix:_7b},onmouseleave:{name:"MouseLeave",fix:_7b},onmouseover:{name:"MouseEnter",fix:_7b},onmouseout:{name:"MouseLeave",fix:_7b},onmousedown:{name:"MouseLeftButtonDown",fix:_7b},onmouseup:{name:"MouseLeftButtonUp",fix:_7b},onmousemove:{name:"MouseMove",fix:_7b},onkeydown:{name:"KeyDown",fix:_82},onkeyup:{name:"KeyUp",fix:_82}};
+var _87={connect:function(_88,_89,_8a){
+var _8b,n=_88 in _86?_86[_88]:{name:_88,fix:function(){
+return {};
+}};
+if(arguments.length>2){
+_8b=this.getEventSource().addEventListener(n.name,function(s,a){
+dojo.hitch(_89,_8a)(n.fix(s,a));
+});
+}else{
+_8b=this.getEventSource().addEventListener(n.name,function(s,a){
+_89(n.fix(s,a));
+});
+}
+return {name:n.name,token:_8b};
+},disconnect:function(_91){
+this.getEventSource().removeEventListener(_91.name,_91.token);
+}};
+dojo.extend(dojox.gfx.Shape,_87);
+dojo.extend(dojox.gfx.Surface,_87);
+dojox.gfx.equalSources=function(a,b){
+return a&&b&&a.equals(b);
+};
+})();
+}
Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/silverlight.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/silverlight_attach.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/silverlight_attach.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/silverlight_attach.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/silverlight_attach.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,73 @@
+/*
+ Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
+ see: http://dojotoolkit.org/license for details
+*/
+
+
+dojo.require("dojox.gfx.silverlight");
+dojo.experimental("dojox.gfx.silverlight_attach");
+(function(){
+dojox.gfx.attachNode=function(_1){
+return null;
+if(!_1){
+return null;
+}
+var s=null;
+switch(_1.tagName.toLowerCase()){
+case dojox.gfx.Rect.nodeType:
+s=new dojox.gfx.Rect(_1);
+break;
+case dojox.gfx.Ellipse.nodeType:
+if(_1.width==_1.height){
+s=new dojox.gfx.Circle(_1);
+}else{
+s=new dojox.gfx.Ellipse(_1);
+}
+break;
+case dojox.gfx.Polyline.nodeType:
+s=new dojox.gfx.Polyline(_1);
+break;
+case dojox.gfx.Path.nodeType:
+s=new dojox.gfx.Path(_1);
+break;
+case dojox.gfx.Line.nodeType:
+s=new dojox.gfx.Line(_1);
+break;
+case dojox.gfx.Image.nodeType:
+s=new dojox.gfx.Image(_1);
+break;
+case dojox.gfx.Text.nodeType:
+s=new dojox.gfx.Text(_1);
+_3(s);
+break;
+default:
+return null;
+}
+_4(s);
+if(!(s instanceof dojox.gfx.Image)){
+_5(s);
+_6(s);
+}
+_7(s);
+return s;
+};
+dojox.gfx.attachSurface=function(_8){
+return null;
+};
+var _5=function(_9){
+return null;
+};
+var _6=function(_a){
+return null;
+};
+var _7=function(_b){
+return null;
+};
+var _3=function(_c){
+return null;
+};
+var _4=function(_d){
+return null;
+};
+})();
Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/silverlight_attach.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/svg.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/svg.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/svg.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/svg.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,446 @@
+/*
+ Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
+ see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.gfx.svg"]){
+dojo._hasResource["dojox.gfx.svg"]=true;
+dojo.provide("dojox.gfx.svg");
+dojo.require("dojox.gfx._base");
+dojo.require("dojox.gfx.shape");
+dojo.require("dojox.gfx.path");
+dojox.gfx.svg.xmlns={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"};
+dojox.gfx.svg.getRef=function(_1){
+if(!_1||_1=="none"){
+return null;
+}
+if(_1.match(/^url\(#.+\)$/)){
+return dojo.byId(_1.slice(5,-1));
+}
+if(_1.match(/^#dojoUnique\d+$/)){
+return dojo.byId(_1.slice(1));
+}
+return null;
+};
+dojox.gfx.svg.dasharray={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]};
+dojo.extend(dojox.gfx.Shape,{setFill:function(_2){
+if(!_2){
+this.fillStyle=null;
+this.rawNode.setAttribute("fill","none");
+this.rawNode.setAttribute("fill-opacity",0);
+return this;
+}
+var f;
+var _4=function(x){
+this.setAttribute(x,f[x].toFixed(8));
+};
+if(typeof (_2)=="object"&&"type" in _2){
+switch(_2.type){
+case "linear":
+f=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,_2);
+var _6=this._setFillObject(f,"linearGradient");
+dojo.forEach(["x1","y1","x2","y2"],_4,_6);
+break;
+case "radial":
+f=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,_2);
+var _6=this._setFillObject(f,"radialGradient");
+dojo.forEach(["cx","cy","r"],_4,_6);
+break;
+case "pattern":
+f=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,_2);
+var _7=this._setFillObject(f,"pattern");
+dojo.forEach(["x","y","width","height"],_4,_7);
+break;
+}
+this.fillStyle=f;
+return this;
+}
+var f=dojox.gfx.normalizeColor(_2);
+this.fillStyle=f;
+this.rawNode.setAttribute("fill",f.toCss());
+this.rawNode.setAttribute("fill-opacity",f.a);
+this.rawNode.setAttribute("fill-rule","evenodd");
+return this;
+},setStroke:function(_8){
+if(!_8){
+this.strokeStyle=null;
+this.rawNode.setAttribute("stroke","none");
+this.rawNode.setAttribute("stroke-opacity",0);
+return this;
+}
+if(typeof _8=="string"||dojo.isArray(_8)||_8 instanceof dojo.Color){
+_8={color:_8};
+}
+var s=this.strokeStyle=dojox.gfx.makeParameters(dojox.gfx.defaultStroke,_8);
+s.color=dojox.gfx.normalizeColor(s.color);
+var rn=this.rawNode;
+if(s){
+rn.setAttribute("stroke",s.color.toCss());
+rn.setAttribute("stroke-opacity",s.color.a);
+rn.setAttribute("stroke-width",s.width);
+rn.setAttribute("stroke-linecap",s.cap);
+if(typeof s.join=="number"){
+rn.setAttribute("stroke-linejoin","miter");
+rn.setAttribute("stroke-miterlimit",s.join);
+}else{
+rn.setAttribute("stroke-linejoin",s.join);
+}
+var da=s.style.toLowerCase();
+if(da in dojox.gfx.svg.dasharray){
+da=dojox.gfx.svg.dasharray[da];
+}
+if(da instanceof Array){
+da=dojo.clone(da);
+for(var i=0;i<da.length;++i){
+da[i]*=s.width;
+}
+if(s.cap!="butt"){
+for(var i=0;i<da.length;i+=2){
+da[i]-=s.width;
+if(da[i]<1){
+da[i]=1;
+}
+}
+for(var i=1;i<da.length;i+=2){
+da[i]+=s.width;
+}
+}
+da=da.join(",");
+}
+rn.setAttribute("stroke-dasharray",da);
+rn.setAttribute("dojoGfxStrokeStyle",s.style);
+}
+return this;
+},_getParentSurface:function(){
+var _d=this.parent;
+for(;_d&&!(_d instanceof dojox.gfx.Surface);_d=_d.parent){
+}
+return _d;
+},_setFillObject:function(f,_f){
+var _10=dojox.gfx.svg.xmlns.svg;
+this.fillStyle=f;
+var _11=this._getParentSurface(),_12=_11.defNode,_13=this.rawNode.getAttribute("fill"),ref=dojox.gfx.svg.getRef(_13);
+if(ref){
+_13=ref;
+if(_13.tagName.toLowerCase()!=_f.toLowerCase()){
+var id=_13.id;
+_13.parentNode.removeChild(_13);
+_13=document.createElementNS(_10,_f);
+_13.setAttribute("id",id);
+_12.appendChild(_13);
+}else{
+while(_13.childNodes.length){
+_13.removeChild(_13.lastChild);
+}
+}
+}else{
+_13=document.createElementNS(_10,_f);
+_13.setAttribute("id",dojox.gfx._base._getUniqueId());
+_12.appendChild(_13);
+}
+if(_f=="pattern"){
+_13.setAttribute("patternUnits","userSpaceOnUse");
+var img=document.createElementNS(_10,"image");
+img.setAttribute("x",0);
+img.setAttribute("y",0);
+img.setAttribute("width",f.width.toFixed(8));
+img.setAttribute("height",f.height.toFixed(8));
+img.setAttributeNS(dojox.gfx.svg.xmlns.xlink,"href",f.src);
+_13.appendChild(img);
+}else{
+_13.setAttribute("gradientUnits","userSpaceOnUse");
+for(var i=0;i<f.colors.length;++i){
+var c=f.colors[i],t=document.createElementNS(_10,"stop"),cc=c.color=dojox.gfx.normalizeColor(c.color);
+t.setAttribute("offset",c.offset.toFixed(8));
+t.setAttribute("stop-color",cc.toCss());
+t.setAttribute("stop-opacity",cc.a);
+_13.appendChild(t);
+}
+}
+this.rawNode.setAttribute("fill","url(#"+_13.getAttribute("id")+")");
+this.rawNode.removeAttribute("fill-opacity");
+this.rawNode.setAttribute("fill-rule","evenodd");
+return _13;
+},_applyTransform:function(){
+var _1b=this.matrix;
+if(_1b){
+var tm=this.matrix;
+this.rawNode.setAttribute("transform","matrix("+tm.xx.toFixed(8)+","+tm.yx.toFixed(8)+","+tm.xy.toFixed(8)+","+tm.yy.toFixed(8)+","+tm.dx.toFixed(8)+","+tm.dy.toFixed(8)+")");
+}else{
+this.rawNode.removeAttribute("transform");
+}
+return this;
+},setRawNode:function(_1d){
+var r=this.rawNode=_1d;
+r.setAttribute("fill","none");
+r.setAttribute("fill-opacity",0);
+r.setAttribute("stroke","none");
+r.setAttribute("stroke-opacity",0);
+r.setAttribute("stroke-width",1);
+r.setAttribute("stroke-linecap","butt");
+r.setAttribute("stroke-linejoin","miter");
+r.setAttribute("stroke-miterlimit",4);
+},setShape:function(_1f){
+this.shape=dojox.gfx.makeParameters(this.shape,_1f);
+for(var i in this.shape){
+if(i!="type"){
+this.rawNode.setAttribute(i,this.shape[i]);
+}
+}
+return this;
+},_moveToFront:function(){
+this.rawNode.parentNode.appendChild(this.rawNode);
+return this;
+},_moveToBack:function(){
+this.rawNode.parentNode.insertBefore(this.rawNode,this.rawNode.parentNode.firstChild);
+return this;
+}});
+dojo.declare("dojox.gfx.Group",dojox.gfx.Shape,{constructor:function(){
+dojox.gfx.svg.Container._init.call(this);
+},setRawNode:function(_21){
+this.rawNode=_21;
+}});
+dojox.gfx.Group.nodeType="g";
+dojo.declare("dojox.gfx.Rect",dojox.gfx.shape.Rect,{setShape:function(_22){
+this.shape=dojox.gfx.makeParameters(this.shape,_22);
+this.bbox=null;
+for(var i in this.shape){
+if(i!="type"&&i!="r"){
+this.rawNode.setAttribute(i,this.shape[i]);
+}
+}
+if(this.shape.r){
+this.rawNode.setAttribute("ry",this.shape.r);
+this.rawNode.setAttribute("rx",this.shape.r);
+}
+return this;
+}});
+dojox.gfx.Rect.nodeType="rect";
+dojox.gfx.Ellipse=dojox.gfx.shape.Ellipse;
+dojox.gfx.Ellipse.nodeType="ellipse";
+dojox.gfx.Circle=dojox.gfx.shape.Circle;
+dojox.gfx.Circle.nodeType="circle";
+dojox.gfx.Line=dojox.gfx.shape.Line;
+dojox.gfx.Line.nodeType="line";
+dojo.declare("dojox.gfx.Polyline",dojox.gfx.shape.Polyline,{setShape:function(_24,_25){
+if(_24&&_24 instanceof Array){
+this.shape=dojox.gfx.makeParameters(this.shape,{points:_24});
+if(_25&&this.shape.points.length){
+this.shape.points.push(this.shape.points[0]);
+}
+}else{
+this.shape=dojox.gfx.makeParameters(this.shape,_24);
+}
+this.box=null;
+var _26=[],p=this.shape.points;
+for(var i=0;i<p.length;++i){
+if(typeof p[i]=="number"){
+_26.push(p[i].toFixed(8));
+}else{
+_26.push(p[i].x.toFixed(8));
+_26.push(p[i].y.toFixed(8));
+}
+}
+this.rawNode.setAttribute("points",_26.join(" "));
+return this;
+}});
+dojox.gfx.Polyline.nodeType="polyline";
+dojo.declare("dojox.gfx.Image",dojox.gfx.shape.Image,{setShape:function(_29){
+this.shape=dojox.gfx.makeParameters(this.shape,_29);
+this.bbox=null;
+var _2a=this.rawNode;
+for(var i in this.shape){
+if(i!="type"&&i!="src"){
+_2a.setAttribute(i,this.shape[i]);
+}
+}
+_2a.setAttributeNS(dojox.gfx.svg.xmlns.xlink,"href",this.shape.src);
+return this;
+}});
+dojox.gfx.Image.nodeType="image";
+dojo.declare("dojox.gfx.Text",dojox.gfx.shape.Text,{setShape:function(_2c){
+this.shape=dojox.gfx.makeParameters(this.shape,_2c);
+this.bbox=null;
+var r=this.rawNode,s=this.shape;
+r.setAttribute("x",s.x);
+r.setAttribute("y",s.y);
+r.setAttribute("text-anchor",s.align);
+r.setAttribute("text-decoration",s.decoration);
+r.setAttribute("rotate",s.rotated?90:0);
+r.setAttribute("kerning",s.kerning?"auto":0);
+r.setAttribute("text-rendering","optimizeLegibility");
+r.textContent=s.text;
+return this;
+},getTextWidth:function(){
+var _2f=this.rawNode,_30=_2f.parentNode,_31=_2f.cloneNode(true);
+_31.style.visibility="hidden";
+var _32=0,_33=_31.firstChild.nodeValue;
+_30.appendChild(_31);
+if(_33!=""){
+while(!_32){
+_32=parseInt(_31.getBBox().width);
+}
+}
+_30.removeChild(_31);
+return _32;
+}});
+dojox.gfx.Text.nodeType="text";
+dojo.declare("dojox.gfx.Path",dojox.gfx.path.Path,{_updateWithSegment:function(_34){
+dojox.gfx.Path.superclass._updateWithSegment.apply(this,arguments);
+if(typeof (this.shape.path)=="string"){
+this.rawNode.setAttribute("d",this.shape.path);
+}
+},setShape:function(_35){
+dojox.gfx.Path.superclass.setShape.apply(this,arguments);
+this.rawNode.setAttribute("d",this.shape.path);
+return this;
+}});
+dojox.gfx.Path.nodeType="path";
+dojo.declare("dojox.gfx.TextPath",dojox.gfx.path.TextPath,{_updateWithSegment:function(_36){
+dojox.gfx.Path.superclass._updateWithSegment.apply(this,arguments);
+this._setTextPath();
+},setShape:function(_37){
+dojox.gfx.Path.superclass.setShape.apply(this,arguments);
+this._setTextPath();
+return this;
+},_setTextPath:function(){
+if(typeof this.shape.path!="string"){
+return;
+}
+var r=this.rawNode;
+if(!r.firstChild){
+var tp=document.createElementNS(dojox.gfx.svg.xmlns.svg,"textPath"),tx=document.createTextNode("");
+tp.appendChild(tx);
+r.appendChild(tp);
+}
+var ref=r.firstChild.getAttributeNS(dojox.gfx.svg.xmlns.xlink,"href"),_3c=ref&&dojox.gfx.svg.getRef(ref);
+if(!_3c){
+var _3d=this._getParentSurface();
+if(_3d){
+var _3e=_3d.defNode;
+_3c=document.createElementNS(dojox.gfx.svg.xmlns.svg,"path");
+var id=dojox.gfx._base._getUniqueId();
+_3c.setAttribute("id",id);
+_3e.appendChild(_3c);
+r.firstChild.setAttributeNS(dojox.gfx.svg.xmlns.xlink,"href","#"+id);
+}
+}
+if(_3c){
+_3c.setAttribute("d",this.shape.path);
+}
+},_setText:function(){
+var r=this.rawNode;
+if(!r.firstChild){
+var tp=document.createElementNS(dojox.gfx.svg.xmlns.svg,"textPath"),tx=document.createTextNode("");
+tp.appendChild(tx);
+r.appendChild(tp);
+}
+r=r.firstChild;
+var t=this.text;
+r.setAttribute("alignment-baseline","middle");
+switch(t.align){
+case "middle":
+r.setAttribute("text-anchor","middle");
+r.setAttribute("startOffset","50%");
+break;
+case "end":
+r.setAttribute("text-anchor","end");
+r.setAttribute("startOffset","100%");
+break;
+default:
+r.setAttribute("text-anchor","start");
+r.setAttribute("startOffset","0%");
+break;
+}
+r.setAttribute("baseline-shift","0.5ex");
+r.setAttribute("text-decoration",t.decoration);
+r.setAttribute("rotate",t.rotated?90:0);
+r.setAttribute("kerning",t.kerning?"auto":0);
+r.firstChild.data=t.text;
+}});
+dojox.gfx.TextPath.nodeType="text";
+dojo.declare("dojox.gfx.Surface",dojox.gfx.shape.Surface,{constructor:function(){
+dojox.gfx.svg.Container._init.call(this);
+},destroy:function(){
+this.defNode=null;
+this.inherited(arguments);
+},setDimensions:function(_44,_45){
+if(!this.rawNode){
+return this;
+}
+this.rawNode.setAttribute("width",_44);
+this.rawNode.setAttribute("height",_45);
+return this;
+},getDimensions:function(){
+return this.rawNode?{width:this.rawNode.getAttribute("width"),height:this.rawNode.getAttribute("height")}:null;
+}});
+dojox.gfx.createSurface=function(_46,_47,_48){
+var s=new dojox.gfx.Surface();
+s.rawNode=document.createElementNS(dojox.gfx.svg.xmlns.svg,"svg");
+s.rawNode.setAttribute("width",_47);
+s.rawNode.setAttribute("height",_48);
+var _4a=document.createElementNS(dojox.gfx.svg.xmlns.svg,"defs");
+s.rawNode.appendChild(_4a);
+s.defNode=_4a;
+s._parent=dojo.byId(_46);
+s._parent.appendChild(s.rawNode);
+return s;
+};
+dojox.gfx.svg.Font={_setFont:function(){
+var f=this.fontStyle;
+this.rawNode.setAttribute("font-style",f.style);
+this.rawNode.setAttribute("font-variant",f.variant);
+this.rawNode.setAttribute("font-weight",f.weight);
+this.rawNode.setAttribute("font-size",f.size);
+this.rawNode.setAttribute("font-family",f.family);
+}};
+dojox.gfx.svg.Container={_init:function(){
+dojox.gfx.shape.Container._init.call(this);
+},add:function(_4c){
+if(this!=_4c.getParent()){
+this.rawNode.appendChild(_4c.rawNode);
+dojox.gfx.shape.Container.add.apply(this,arguments);
+}
+return this;
+},remove:function(_4d,_4e){
+if(this==_4d.getParent()){
+if(this.rawNode==_4d.rawNode.parentNode){
+this.rawNode.removeChild(_4d.rawNode);
+}
+dojox.gfx.shape.Container.remove.apply(this,arguments);
+}
+return this;
+},clear:function(){
+var r=this.rawNode;
+while(r.lastChild){
+r.removeChild(r.lastChild);
+}
+var d=this.defNode;
+if(d){
+while(d.lastChild){
+d.removeChild(d.lastChild);
+}
+r.appendChild(d);
+}
+return dojox.gfx.shape.Container.clear.apply(this,arguments);
+},_moveChildToFront:dojox.gfx.shape.Container._moveChildToFront,_moveChildToBack:dojox.gfx.shape.Container._moveChildToBack};
+dojo.mixin(dojox.gfx.shape.Creator,{createObject:function(_51,_52){
+if(!this.rawNode){
+return null;
+}
+var _53=new _51(),_54=document.createElementNS(dojox.gfx.svg.xmlns.svg,_51.nodeType);
+_53.setRawNode(_54);
+this.rawNode.appendChild(_54);
+_53.setShape(_52);
+this.add(_53);
+return _53;
+}});
+dojo.extend(dojox.gfx.Text,dojox.gfx.svg.Font);
+dojo.extend(dojox.gfx.TextPath,dojox.gfx.svg.Font);
+dojo.extend(dojox.gfx.Group,dojox.gfx.svg.Container);
+dojo.extend(dojox.gfx.Group,dojox.gfx.shape.Creator);
+dojo.extend(dojox.gfx.Surface,dojox.gfx.svg.Container);
+dojo.extend(dojox.gfx.Surface,dojox.gfx.shape.Creator);
+}
Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/svg.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/svg_attach.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/svg_attach.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/svg_attach.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/svg_attach.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,191 @@
+/*
+ Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
+ see: http://dojotoolkit.org/license for details
+*/
+
+
+dojo.require("dojox.gfx.svg");
+dojo.experimental("dojox.gfx.svg_attach");
+(function(){
+dojox.gfx.attachNode=function(_1){
+if(!_1){
+return null;
+}
+var s=null;
+switch(_1.tagName.toLowerCase()){
+case dojox.gfx.Rect.nodeType:
+s=new dojox.gfx.Rect(_1);
+_3(s);
+break;
+case dojox.gfx.Ellipse.nodeType:
+s=new dojox.gfx.Ellipse(_1);
+_4(s,dojox.gfx.defaultEllipse);
+break;
+case dojox.gfx.Polyline.nodeType:
+s=new dojox.gfx.Polyline(_1);
+_4(s,dojox.gfx.defaultPolyline);
+break;
+case dojox.gfx.Path.nodeType:
+s=new dojox.gfx.Path(_1);
+_4(s,dojox.gfx.defaultPath);
+break;
+case dojox.gfx.Circle.nodeType:
+s=new dojox.gfx.Circle(_1);
+_4(s,dojox.gfx.defaultCircle);
+break;
+case dojox.gfx.Line.nodeType:
+s=new dojox.gfx.Line(_1);
+_4(s,dojox.gfx.defaultLine);
+break;
+case dojox.gfx.Image.nodeType:
+s=new dojox.gfx.Image(_1);
+_4(s,dojox.gfx.defaultImage);
+break;
+case dojox.gfx.Text.nodeType:
+var t=_1.getElementsByTagName("textPath");
+if(t&&t.length){
+s=new dojox.gfx.TextPath(_1);
+_4(s,dojox.gfx.defaultPath);
+_6(s);
+}else{
+s=new dojox.gfx.Text(_1);
+_7(s);
+}
+_8(s);
+break;
+default:
+return null;
+}
+if(!(s instanceof dojox.gfx.Image)){
+_9(s);
+_a(s);
+}
+_b(s);
+return s;
+};
+dojox.gfx.attachSurface=function(_c){
+var s=new dojox.gfx.Surface();
+s.rawNode=_c;
+var _e=_c.getElementsByTagName("defs");
+if(_e.length==0){
+return null;
+}
+s.defNode=_e[0];
+return s;
+};
+var _9=function(_f){
+var _10=_f.rawNode.getAttribute("fill");
+if(_10=="none"){
+_f.fillStyle=null;
+return;
+}
+var _11=null,_12=dojox.gfx.svg.getRef(_10);
+if(_12){
+switch(_12.tagName.toLowerCase()){
+case "lineargradient":
+_11=_13(dojox.gfx.defaultLinearGradient,_12);
+dojo.forEach(["x1","y1","x2","y2"],function(x){
+_11[x]=_12.getAttribute(x);
+});
+break;
+case "radialgradient":
+_11=_13(dojox.gfx.defaultRadialGradient,_12);
+dojo.forEach(["cx","cy","r"],function(x){
+_11[x]=_12.getAttribute(x);
+});
+_11.cx=_12.getAttribute("cx");
+_11.cy=_12.getAttribute("cy");
+_11.r=_12.getAttribute("r");
+break;
+case "pattern":
+_11=dojo.lang.shallowCopy(dojox.gfx.defaultPattern,true);
+dojo.forEach(["x","y","width","height"],function(x){
+_11[x]=_12.getAttribute(x);
+});
+_11.src=_12.firstChild.getAttributeNS(dojox.gfx.svg.xmlns.xlink,"href");
+break;
+}
+}else{
+_11=new dojo.Color(_10);
+var _17=_f.rawNode.getAttribute("fill-opacity");
+if(_17!=null){
+_11.a=_17;
+}
+}
+_f.fillStyle=_11;
+};
+var _13=function(_18,_19){
+var _1a=dojo.clone(_18);
+_1a.colors=[];
+for(var i=0;i<_19.childNodes.length;++i){
+_1a.colors.push({offset:_19.childNodes[i].getAttribute("offset"),color:new dojo.Color(_19.childNodes[i].getAttribute("stop-color"))});
+}
+return _1a;
+};
+var _a=function(_1c){
+var _1d=_1c.rawNode,_1e=_1d.getAttribute("stroke");
+if(_1e==null||_1e=="none"){
+_1c.strokeStyle=null;
+return;
+}
+var _1f=_1c.strokeStyle=dojo.clone(dojox.gfx.defaultStroke);
+var _20=new dojo.Color(_1e);
+if(_20){
+_1f.color=_20;
+_1f.color.a=_1d.getAttribute("stroke-opacity");
+_1f.width=_1d.getAttribute("stroke-width");
+_1f.cap=_1d.getAttribute("stroke-linecap");
+_1f.join=_1d.getAttribute("stroke-linejoin");
+if(_1f.join=="miter"){
+_1f.join=_1d.getAttribute("stroke-miterlimit");
+}
+_1f.style=_1d.getAttribute("dojoGfxStrokeStyle");
+}
+};
+var _b=function(_21){
+var _22=_21.rawNode.getAttribute("transform");
+if(_22.match(/^matrix\(.+\)$/)){
+var t=_22.slice(7,-1).split(",");
+_21.matrix=dojox.gfx.matrix.normalize({xx:parseFloat(t[0]),xy:parseFloat(t[2]),yx:parseFloat(t[1]),yy:parseFloat(t[3]),dx:parseFloat(t[4]),dy:parseFloat(t[5])});
+}else{
+_21.matrix=null;
+}
+};
+var _8=function(_24){
+var _25=_24.fontStyle=dojo.clone(dojox.gfx.defaultFont),r=_24.rawNode;
+_25.style=r.getAttribute("font-style");
+_25.variant=r.getAttribute("font-variant");
+_25.weight=r.getAttribute("font-weight");
+_25.size=r.getAttribute("font-size");
+_25.family=r.getAttribute("font-family");
+};
+var _4=function(_27,def){
+var _29=_27.shape=dojo.clone(def),r=_27.rawNode;
+for(var i in _29){
+_29[i]=r.getAttribute(i);
+}
+};
+var _3=function(_2c){
+_4(_2c,dojox.gfx.defaultRect);
+_2c.shape.r=Math.min(_2c.rawNode.getAttribute("rx"),_2c.rawNode.getAttribute("ry"));
+};
+var _7=function(_2d){
+var _2e=_2d.shape=dojo.clone(dojox.gfx.defaultText),r=_2d.rawNode;
+_2e.x=r.getAttribute("x");
+_2e.y=r.getAttribute("y");
+_2e.align=r.getAttribute("text-anchor");
+_2e.decoration=r.getAttribute("text-decoration");
+_2e.rotated=parseFloat(r.getAttribute("rotate"))!=0;
+_2e.kerning=r.getAttribute("kerning")=="auto";
+_2e.text=r.firstChild.nodeValue;
+};
+var _6=function(_30){
+var _31=_30.shape=dojo.clone(dojox.gfx.defaultTextPath),r=_30.rawNode;
+_31.align=r.getAttribute("text-anchor");
+_31.decoration=r.getAttribute("text-decoration");
+_31.rotated=parseFloat(r.getAttribute("rotate"))!=0;
+_31.kerning=r.getAttribute("kerning")=="auto";
+_31.text=r.firstChild.nodeValue;
+};
+})();
Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/svg_attach.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/utils.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/utils.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/utils.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/utils.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,84 @@
+/*
+ Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
+ see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.gfx.utils"]){
+dojo._hasResource["dojox.gfx.utils"]=true;
+dojo.provide("dojox.gfx.utils");
+dojo.require("dojox.gfx");
+(function(){
+var d=dojo,g=dojox.gfx,gu=g.utils;
+dojo.mixin(gu,{forEach:function(_4,f,o){
+o=o||d.global;
+f.call(o,_4);
+if(_4 instanceof g.Surface||_4 instanceof g.Group){
+d.forEach(_4.children,function(_7){
+gu.inspect(_7,f,o);
+});
+}
+},serialize:function(_8){
+var t={},v,_b=_8 instanceof g.Surface;
+if(_b||_8 instanceof g.Group){
+t.children=d.map(_8.children,gu.serialize);
+if(_b){
+return t.children;
+}
+}else{
+t.shape=_8.getShape();
+}
+if(_8.getTransform){
+v=_8.getTransform();
+if(v){
+t.transform=v;
+}
+}
+if(_8.getStroke){
+v=_8.getStroke();
+if(v){
+t.stroke=v;
+}
+}
+if(_8.getFill){
+v=_8.getFill();
+if(v){
+t.fill=v;
+}
+}
+if(_8.getFont){
+v=_8.getFont();
+if(v){
+t.font=v;
+}
+}
+return t;
+},toJson:function(_c,_d){
+return d.toJson(gu.serialize(_c),_d);
+},deserialize:function(_e,_f){
+if(_f instanceof Array){
+return d.map(_f,d.hitch(null,gu.serialize,_e));
+}
+var _10=("shape" in _f)?_e.createShape(_f.shape):_e.createGroup();
+if("transform" in _f){
+_10.setTransform(_f.transform);
+}
+if("stroke" in _f){
+_10.setStroke(_f.stroke);
+}
+if("fill" in _f){
+_10.setFill(_f.fill);
+}
+if("font" in _f){
+_10.setFont(_f.font);
+}
+if("children" in _f){
+d.forEach(_f.children,d.hitch(null,gu.deserialize,_10));
+}
+return _10;
+},fromJson:function(_11,_12){
+return gu.deserialize(_11,d.fromJson(_12));
+}});
+})();
+}
Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/utils.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/vml.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/vml.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/vml.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/vml.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,872 @@
+/*
+ Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
+ see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.gfx.vml"]){
+dojo._hasResource["dojox.gfx.vml"]=true;
+dojo.provide("dojox.gfx.vml");
+dojo.require("dojox.gfx._base");
+dojo.require("dojox.gfx.shape");
+dojo.require("dojox.gfx.path");
+dojo.require("dojox.gfx.arc");
+(function(){
+var g=dojox.gfx,m=g.matrix,_3=g.vml,sh=g.shape;
+_3.xmlns="urn:schemas-microsoft-com:vml";
+_3.text_alignment={start:"left",middle:"center",end:"right"};
+_3._parseFloat=function(_5){
+return _5.match(/^\d+f$/i)?parseInt(_5)/65536:parseFloat(_5);
+};
+_3._bool={"t":1,"true":1};
+dojo.extend(g.Shape,{setFill:function(_6){
+if(!_6){
+this.fillStyle=null;
+this.rawNode.filled="f";
+return this;
+}
+if(typeof _6=="object"&&"type" in _6){
+var i,f,fo,a,s;
+switch(_6.type){
+case "linear":
+var _c=this._getRealMatrix();
+s=[];
+f=g.makeParameters(g.defaultLinearGradient,_6);
+a=f.colors;
+this.fillStyle=f;
+dojo.forEach(a,function(v,i,a){
+a[i].color=g.normalizeColor(v.color);
+});
+if(a[0].offset>0){
+s.push("0 "+a[0].color.toHex());
+}
+for(i=0;i<a.length;++i){
+s.push(a[i].offset.toFixed(8)+" "+a[i].color.toHex());
+}
+i=a.length-1;
+if(a[i].offset<1){
+s.push("1 "+a[i].color.toHex());
+}
+fo=this.rawNode.fill;
+fo.colors.value=s.join(";");
+fo.method="sigma";
+fo.type="gradient";
+var fc1=_c?m.multiplyPoint(_c,f.x1,f.y1):{x:f.x1,y:f.y1},fc2=_c?m.multiplyPoint(_c,f.x2,f.y2):{x:f.x2,y:f.y2};
+fo.angle=(m._radToDeg(Math.atan2(fc2.x-fc1.x,fc2.y-fc1.y))+180)%360;
+fo.on=true;
+break;
+case "radial":
+f=g.makeParameters(g.defaultRadialGradient,_6);
+this.fillStyle=f;
+var l=parseFloat(this.rawNode.style.left),t=parseFloat(this.rawNode.style.top),w=parseFloat(this.rawNode.style.width),h=parseFloat(this.rawNode.style.height),c=isNaN(w)?1:2*f.r/w;
+a=[];
+if(f.colors[0].offset>0){
+a.push({offset:1,color:g.normalizeColor(f.colors[0].color)});
+}
+dojo.forEach(f.colors,function(v,i){
+a.push({offset:1-v.offset*c,color:g.normalizeColor(v.color)});
+});
+i=a.length-1;
+while(i>=0&&a[i].offset<0){
+--i;
+}
+if(i<a.length-1){
+var q=a[i],p=a[i+1];
+p.color=dojo.blendColors(q.color,p.color,q.offset/(q.offset-p.offset));
+p.offset=0;
+while(a.length-i>2){
+a.pop();
+}
+}
+i=a.length-1,s=[];
+if(a[i].offset>0){
+s.push("0 "+a[i].color.toHex());
+}
+for(;i>=0;--i){
+s.push(a[i].offset.toFixed(8)+" "+a[i].color.toHex());
+}
+fo=this.rawNode.fill;
+fo.colors.value=s.join(";");
+fo.method="sigma";
+fo.type="gradientradial";
+if(isNaN(w)||isNaN(h)||isNaN(l)||isNaN(t)){
+fo.focusposition="0.5 0.5";
+}else{
+fo.focusposition=((f.cx-l)/w).toFixed(8)+" "+((f.cy-t)/h).toFixed(8);
+}
+fo.focussize="0 0";
+fo.on=true;
+break;
+case "pattern":
+f=g.makeParameters(g.defaultPattern,_6);
+this.fillStyle=f;
+fo=this.rawNode.fill;
+fo.type="tile";
+fo.src=f.src;
+if(f.width&&f.height){
+fo.size.x=g.px2pt(f.width);
+fo.size.y=g.px2pt(f.height);
+}
+fo.alignShape="f";
+fo.position.x=0;
+fo.position.y=0;
+fo.origin.x=f.width?f.x/f.width:0;
+fo.origin.y=f.height?f.y/f.height:0;
+fo.on=true;
+break;
+}
+this.rawNode.fill.opacity=1;
+return this;
+}
+this.fillStyle=g.normalizeColor(_6);
+this.rawNode.fill.method="any";
+this.rawNode.fill.type="solid";
+this.rawNode.fillcolor=this.fillStyle.toHex();
+this.rawNode.fill.opacity=this.fillStyle.a;
+this.rawNode.filled=true;
+return this;
+},setStroke:function(_1b){
+if(!_1b){
+this.strokeStyle=null;
+this.rawNode.stroked="f";
+return this;
+}
+if(typeof _1b=="string"||dojo.isArray(_1b)||_1b instanceof dojo.Color){
+_1b={color:_1b};
+}
+var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_1b);
+s.color=g.normalizeColor(s.color);
+var rn=this.rawNode;
+rn.stroked=true;
+rn.strokecolor=s.color.toCss();
+rn.strokeweight=s.width+"px";
+if(rn.stroke){
+rn.stroke.opacity=s.color.a;
+rn.stroke.endcap=this._translate(this._capMap,s.cap);
+if(typeof s.join=="number"){
+rn.stroke.joinstyle="miter";
+rn.stroke.miterlimit=s.join;
+}else{
+rn.stroke.joinstyle=s.join;
+}
+rn.stroke.dashstyle=s.style=="none"?"Solid":s.style;
+}
+return this;
+},_capMap:{butt:"flat"},_capMapReversed:{flat:"butt"},_translate:function(_1e,_1f){
+return (_1f in _1e)?_1e[_1f]:_1f;
+},_applyTransform:function(){
+if(this.fillStyle&&this.fillStyle.type=="linear"){
+this.setFill(this.fillStyle);
+}
+var _20=this._getRealMatrix();
+if(!_20){
+return this;
+}
+var _21=this.rawNode.skew;
+if(typeof _21=="undefined"){
+for(var i=0;i<this.rawNode.childNodes.length;++i){
+if(this.rawNode.childNodes[i].tagName=="skew"){
+_21=this.rawNode.childNodes[i];
+break;
+}
+}
+}
+if(_21){
+_21.on="f";
+var mt=_20.xx.toFixed(8)+" "+_20.xy.toFixed(8)+" "+_20.yx.toFixed(8)+" "+_20.yy.toFixed(8)+" 0 0",_24=Math.floor(_20.dx).toFixed()+"px "+Math.floor(_20.dy).toFixed()+"px",s=this.rawNode.style,l=parseFloat(s.left),t=parseFloat(s.top),w=parseFloat(s.width),h=parseFloat(s.height);
+if(isNaN(l)){
+l=0;
+}
+if(isNaN(t)){
+t=0;
+}
+if(isNaN(w)){
+w=1;
+}
+if(isNaN(h)){
+h=1;
+}
+var _2a=(-l/w-0.5).toFixed(8)+" "+(-t/h-0.5).toFixed(8);
+_21.matrix=mt;
+_21.origin=_2a;
+_21.offset=_24;
+_21.on=true;
+}
+return this;
+},_setDimensions:function(_2b,_2c){
+return this;
+},setRawNode:function(_2d){
+_2d.stroked="f";
+_2d.filled="f";
+this.rawNode=_2d;
+},_moveToFront:function(){
+this.rawNode.parentNode.appendChild(this.rawNode);
+return this;
+},_moveToBack:function(){
+var r=this.rawNode,p=r.parentNode,n=p.firstChild;
+p.insertBefore(r,n);
+if(n.tagName=="rect"){
+n.swapNode(r);
+}
+return this;
+},_getRealMatrix:function(){
+return this.parentMatrix?new g.Matrix2D([this.parentMatrix,this.matrix]):this.matrix;
+}});
+dojo.declare("dojox.gfx.Group",dojox.gfx.Shape,{constructor:function(){
+_3.Container._init.call(this);
+},_applyTransform:function(){
+var _31=this._getRealMatrix();
+for(var i=0;i<this.children.length;++i){
+this.children[i]._updateParentMatrix(_31);
+}
+return this;
+},_setDimensions:function(_33,_34){
+var r=this.rawNode,rs=r.style,bs=this.bgNode.style;
+rs.width=_33;
+rs.height=_34;
+r.coordsize=_33+" "+_34;
+bs.width=_33;
+bs.height=_34;
+for(var i=0;i<this.children.length;++i){
+this.children[i]._setDimensions(_33,_34);
+}
+return this;
+}});
+g.Group.nodeType="group";
+dojo.declare("dojox.gfx.Rect",dojox.gfx.shape.Rect,{setShape:function(_39){
+var _3a=this.shape=g.makeParameters(this.shape,_39);
+this.bbox=null;
+var _3b=this.rawNode.style;
+_3b.left=_3a.x.toFixed();
+_3b.top=_3a.y.toFixed();
+_3b.width=(typeof _3a.width=="string"&&_3a.width.indexOf("%")>=0)?_3a.width:_3a.width.toFixed();
+_3b.height=(typeof _3a.width=="string"&&_3a.height.indexOf("%")>=0)?_3a.height:_3a.height.toFixed();
+var r=Math.min(1,(_3a.r/Math.min(parseFloat(_3a.width),parseFloat(_3a.height)))).toFixed(8);
+var _3d=this.rawNode.parentNode,_3e=null;
+if(_3d){
+if(_3d.lastChild!=this.rawNode){
+for(var i=0;i<_3d.childNodes.length;++i){
+if(_3d.childNodes[i]==this.rawNode){
+_3e=_3d.childNodes[i+1];
+break;
+}
+}
+}
+_3d.removeChild(this.rawNode);
+}
+this.rawNode.arcsize=r;
+if(_3d){
+if(_3e){
+_3d.insertBefore(this.rawNode,_3e);
+}else{
+_3d.appendChild(this.rawNode);
+}
+}
+return this.setTransform(this.matrix).setFill(this.fillStyle).setStroke(this.strokeStyle);
+}});
+g.Rect.nodeType="roundrect";
+dojo.declare("dojox.gfx.Ellipse",dojox.gfx.shape.Ellipse,{setShape:function(_40){
+var _41=this.shape=g.makeParameters(this.shape,_40);
+this.bbox=null;
+var _42=this.rawNode.style;
+_42.left=(_41.cx-_41.rx).toFixed();
+_42.top=(_41.cy-_41.ry).toFixed();
+_42.width=(_41.rx*2).toFixed();
+_42.height=(_41.ry*2).toFixed();
+return this.setTransform(this.matrix);
+}});
+g.Ellipse.nodeType="oval";
+dojo.declare("dojox.gfx.Circle",dojox.gfx.shape.Circle,{setShape:function(_43){
+var _44=this.shape=g.makeParameters(this.shape,_43);
+this.bbox=null;
+var _45=this.rawNode.style;
+_45.left=(_44.cx-_44.r).toFixed();
+_45.top=(_44.cy-_44.r).toFixed();
+_45.width=(_44.r*2).toFixed();
+_45.height=(_44.r*2).toFixed();
+return this;
+}});
+g.Circle.nodeType="oval";
+dojo.declare("dojox.gfx.Line",dojox.gfx.shape.Line,{constructor:function(_46){
+if(_46){
+_46.setAttribute("dojoGfxType","line");
+}
+},setShape:function(_47){
+var _48=this.shape=g.makeParameters(this.shape,_47);
+this.bbox=null;
+this.rawNode.path.v="m"+_48.x1.toFixed()+" "+_48.y1.toFixed()+"l"+_48.x2.toFixed()+" "+_48.y2.toFixed()+"e";
+return this.setTransform(this.matrix);
+}});
+g.Line.nodeType="shape";
+dojo.declare("dojox.gfx.Polyline",dojox.gfx.shape.Polyline,{constructor:function(_49){
+if(_49){
+_49.setAttribute("dojoGfxType","polyline");
+}
+},setShape:function(_4a,_4b){
+if(_4a&&_4a instanceof Array){
+this.shape=g.makeParameters(this.shape,{points:_4a});
+if(_4b&&this.shape.points.length){
+this.shape.points.push(this.shape.points[0]);
+}
+}else{
+this.shape=g.makeParameters(this.shape,_4a);
+}
+this.bbox=null;
+var _4c=[],p=this.shape.points;
+if(p.length>0){
+_4c.push("m");
+var k=1;
+if(typeof p[0]=="number"){
+_4c.push(p[0].toFixed());
+_4c.push(p[1].toFixed());
+k=2;
+}else{
+_4c.push(p[0].x.toFixed());
+_4c.push(p[0].y.toFixed());
+}
+if(p.length>k){
+_4c.push("l");
+for(var i=k;i<p.length;++i){
+if(typeof p[i]=="number"){
+_4c.push(p[i].toFixed());
+}else{
+_4c.push(p[i].x.toFixed());
+_4c.push(p[i].y.toFixed());
+}
+}
+}
+}
+_4c.push("e");
+this.rawNode.path.v=_4c.join(" ");
+return this.setTransform(this.matrix);
+}});
+g.Polyline.nodeType="shape";
+dojo.declare("dojox.gfx.Image",dojox.gfx.shape.Image,{setShape:function(_50){
+var _51=this.shape=g.makeParameters(this.shape,_50);
+this.bbox=null;
+this.rawNode.firstChild.src=_51.src;
+return this.setTransform(this.matrix);
+},_applyTransform:function(){
+var _52=this._getRealMatrix(),_53=this.rawNode,s=_53.style,_55=this.shape;
+if(_52){
+_52=m.multiply(_52,{dx:_55.x,dy:_55.y});
+}else{
+_52=m.normalize({dx:_55.x,dy:_55.y});
+}
+if(_52.xy==0&&_52.yx==0&&_52.xx>0&&_52.yy>0){
+s.filter="";
+s.width=Math.floor(_52.xx*_55.width);
+s.height=Math.floor(_52.yy*_55.height);
+s.left=Math.floor(_52.dx);
+s.top=Math.floor(_52.dy);
+}else{
+var ps=_53.parentNode.style;
+s.left="0px";
+s.top="0px";
+s.width=ps.width;
+s.height=ps.height;
+_52=m.multiply(_52,{xx:_55.width/parseInt(s.width),yy:_55.height/parseInt(s.height)});
+var f=_53.filters["DXImageTransform.Microsoft.Matrix"];
+if(f){
+f.M11=_52.xx;
+f.M12=_52.xy;
+f.M21=_52.yx;
+f.M22=_52.yy;
+f.Dx=_52.dx;
+f.Dy=_52.dy;
+}else{
+s.filter="progid:DXImageTransform.Microsoft.Matrix(M11="+_52.xx+", M12="+_52.xy+", M21="+_52.yx+", M22="+_52.yy+", Dx="+_52.dx+", Dy="+_52.dy+")";
+}
+}
+return this;
+},_setDimensions:function(_58,_59){
+var r=this.rawNode,f=r.filters["DXImageTransform.Microsoft.Matrix"];
+if(f){
+var s=r.style;
+s.width=_58;
+s.height=_59;
+return this._applyTransform();
+}
+return this;
+}});
+g.Image.nodeType="rect";
+dojo.declare("dojox.gfx.Text",dojox.gfx.shape.Text,{constructor:function(_5d){
+if(_5d){
+_5d.setAttribute("dojoGfxType","text");
+}
+this.fontStyle=null;
+},_alignment:{start:"left",middle:"center",end:"right"},setShape:function(_5e){
+this.shape=g.makeParameters(this.shape,_5e);
+this.bbox=null;
+var r=this.rawNode,s=this.shape,x=s.x,y=s.y.toFixed();
+switch(s.align){
+case "middle":
+x-=5;
+break;
+case "end":
+x-=10;
+break;
+}
+this.rawNode.path.v="m"+x.toFixed()+","+y+"l"+(x+10).toFixed()+","+y+"e";
+var p=null,t=null,c=r.childNodes;
+for(var i=0;i<c.length;++i){
+var tag=c[i].tagName;
+if(tag=="path"){
+p=c[i];
+if(t){
+break;
+}
+}else{
+if(tag=="textpath"){
+t=c[i];
+if(p){
+break;
+}
+}
+}
+}
+if(!p){
+p=this.rawNode.ownerDocument.createElement("v:path");
+r.appendChild(p);
+}
+if(!t){
+t=this.rawNode.ownerDocument.createElement("v:textpath");
+r.appendChild(t);
+}
+p.textPathOk=true;
+t.on=true;
+var a=_3.text_alignment[s.align];
+t.style["v-text-align"]=a?a:"left";
+t.style["text-decoration"]=s.decoration;
+t.style["v-rotate-letters"]=s.rotated;
+t.style["v-text-kern"]=s.kerning;
+t.string=s.text;
+return this.setTransform(this.matrix);
+},_setFont:function(){
+var f=this.fontStyle,c=this.rawNode.childNodes;
+for(var i=0;i<c.length;++i){
+if(c[i].tagName=="textpath"){
+c[i].style.font=g.makeFontString(f);
+break;
+}
+}
+this.setTransform(this.matrix);
+},_getRealMatrix:function(){
+var _6c=g.Shape.prototype._getRealMatrix.call(this);
+if(_6c){
+_6c=m.multiply(_6c,{dy:-g.normalizedLength(this.fontStyle?this.fontStyle.size:"10pt")*0.35});
+}
+return _6c;
+},getTextWidth:function(){
+var _6d=this.rawNode,_6e=_6d.style.display;
+_6d.style.display="inline";
+var _6f=g.pt2px(parseFloat(_6d.currentStyle.width));
+_6d.style.display=_6e;
+return _6f;
+}});
+g.Text.nodeType="shape";
+g.path._calcArc=function(_70){
+var _71=Math.cos(_70),_72=Math.sin(_70),p2={x:_71+(4/3)*(1-_71),y:_72-(4/3)*_71*(1-_71)/_72};
+return {s:{x:_71,y:-_72},c1:{x:p2.x,y:-p2.y},c2:p2,e:{x:_71,y:_72}};
+};
+dojo.declare("dojox.gfx.Path",dojox.gfx.path.Path,{constructor:function(_74){
+if(_74&&!_74.getAttribute("dojoGfxType")){
+_74.setAttribute("dojoGfxType","path");
+}
+this.vmlPath="";
+this.lastControl={};
+},_updateWithSegment:function(_75){
+var _76=dojo.clone(this.last);
+g.Path.superclass._updateWithSegment.apply(this,arguments);
+var _77=this[this.renderers[_75.action]](_75,_76);
+if(typeof this.vmlPath=="string"){
+this.vmlPath+=_77.join("");
+this.rawNode.path.v=this.vmlPath+" r0,0 e";
+}else{
+Array.prototype.push.apply(this.vmlPath,_77);
+}
+},setShape:function(_78){
+this.vmlPath=[];
+this.lastControl.type="";
+g.Path.superclass.setShape.apply(this,arguments);
+this.vmlPath=this.vmlPath.join("");
+this.rawNode.path.v=this.vmlPath+" r0,0 e";
+return this;
+},_pathVmlToSvgMap:{m:"M",l:"L",t:"m",r:"l",c:"C",v:"c",qb:"Q",x:"z",e:""},renderers:{M:"_moveToA",m:"_moveToR",L:"_lineToA",l:"_lineToR",H:"_hLineToA",h:"_hLineToR",V:"_vLineToA",v:"_vLineToR",C:"_curveToA",c:"_curveToR",S:"_smoothCurveToA",s:"_smoothCurveToR",Q:"_qCurveToA",q:"_qCurveToR",T:"_qSmoothCurveToA",t:"_qSmoothCurveToR",A:"_arcTo",a:"_arcTo",Z:"_closePath",z:"_closePath"},_addArgs:function(_79,_7a,_7b,_7c){
+var n=_7a instanceof Array?_7a:_7a.args;
+for(var i=_7b;i<_7c;++i){
+_79.push(" ",n[i].toFixed());
+}
+},_adjustRelCrd:function(_7f,_80,_81){
+var n=_80 instanceof Array?_80:_80.args,l=n.length,_84=new Array(l),i=0,x=_7f.x,y=_7f.y;
+if(typeof x!="number"){
+_84[0]=x=n[0];
+_84[1]=y=n[1];
+i=2;
+}
+if(typeof _81=="number"&&_81!=2){
+var j=_81;
+while(j<=l){
+for(;i<j;i+=2){
+_84[i]=x+n[i];
+_84[i+1]=y+n[i+1];
+}
+x=_84[j-2];
+y=_84[j-1];
+j+=_81;
+}
+}else{
+for(;i<l;i+=2){
+_84[i]=(x+=n[i]);
+_84[i+1]=(y+=n[i+1]);
+}
+}
+return _84;
+},_adjustRelPos:function(_89,_8a){
+var n=_8a instanceof Array?_8a:_8a.args,l=n.length,_8d=new Array(l);
+for(var i=0;i<l;++i){
+_8d[i]=(_89+=n[i]);
+}
+return _8d;
+},_moveToA:function(_8f){
+var p=[" m"],n=_8f instanceof Array?_8f:_8f.args,l=n.length;
+this._addArgs(p,n,0,2);
+if(l>2){
+p.push(" l");
+this._addArgs(p,n,2,l);
+}
+this.lastControl.type="";
+return p;
+},_moveToR:function(_93,_94){
+return this._moveToA(this._adjustRelCrd(_94,_93));
+},_lineToA:function(_95){
+var p=[" l"],n=_95 instanceof Array?_95:_95.args;
+this._addArgs(p,n,0,n.length);
+this.lastControl.type="";
+return p;
+},_lineToR:function(_98,_99){
+return this._lineToA(this._adjustRelCrd(_99,_98));
+},_hLineToA:function(_9a,_9b){
+var p=[" l"],y=" "+_9b.y.toFixed(),n=_9a instanceof Array?_9a:_9a.args,l=n.length;
+for(var i=0;i<l;++i){
+p.push(" ",n[i].toFixed(),y);
+}
+this.lastControl.type="";
+return p;
+},_hLineToR:function(_a1,_a2){
+return this._hLineToA(this._adjustRelPos(_a2.x,_a1),_a2);
+},_vLineToA:function(_a3,_a4){
+var p=[" l"],x=" "+_a4.x.toFixed(),n=_a3 instanceof Array?_a3:_a3.args,l=n.length;
+for(var i=0;i<l;++i){
+p.push(x," ",n[i].toFixed());
+}
+this.lastControl.type="";
+return p;
+},_vLineToR:function(_aa,_ab){
+return this._vLineToA(this._adjustRelPos(_ab.y,_aa),_ab);
+},_curveToA:function(_ac){
+var p=[],n=_ac instanceof Array?_ac:_ac.args,l=n.length,lc=this.lastControl;
+for(var i=0;i<l;i+=6){
+p.push(" c");
+this._addArgs(p,n,i,i+6);
+}
+lc.x=n[l-4];
+lc.y=n[l-3];
+lc.type="C";
+return p;
+},_curveToR:function(_b2,_b3){
+return this._curveToA(this._adjustRelCrd(_b3,_b2,6));
+},_smoothCurveToA:function(_b4,_b5){
+var p=[],n=_b4 instanceof Array?_b4:_b4.args,l=n.length,lc=this.lastControl,i=0;
+if(lc.type!="C"){
+p.push(" c");
+this._addArgs(p,[_b5.x,_b5.y],0,2);
+this._addArgs(p,n,0,4);
+lc.x=n[0];
+lc.y=n[1];
+lc.type="C";
+i=4;
+}
+for(;i<l;i+=4){
+p.push(" c");
+this._addArgs(p,[2*_b5.x-lc.x,2*_b5.y-lc.y],0,2);
+this._addArgs(p,n,i,i+4);
+lc.x=n[i];
+lc.y=n[i+1];
+}
+return p;
+},_smoothCurveToR:function(_bb,_bc){
+return this._smoothCurveToA(this._adjustRelCrd(_bc,_bb,4),_bc);
+},_qCurveToA:function(_bd){
+var p=[],n=_bd instanceof Array?_bd:_bd.args,l=n.length,lc=this.lastControl;
+for(var i=0;i<l;i+=4){
+p.push(" qb");
+this._addArgs(p,n,i,i+4);
+}
+lc.x=n[l-4];
+lc.y=n[l-3];
+lc.type="Q";
+return p;
+},_qCurveToR:function(_c3,_c4){
+return this._qCurveToA(this._adjustRelCrd(_c4,_c3,4));
+},_qSmoothCurveToA:function(_c5,_c6){
+var p=[],n=_c5 instanceof Array?_c5:_c5.args,l=n.length,lc=this.lastControl,i=0;
+if(lc.type!="Q"){
+p.push(" qb");
+this._addArgs(p,[lc.x=_c6.x,lc.y=_c6.y],0,2);
+lc.type="Q";
+this._addArgs(p,n,0,2);
+i=2;
+}
+for(;i<l;i+=2){
+p.push(" qb");
+this._addArgs(p,[lc.x=2*_c6.x-lc.x,lc.y=2*_c6.y-lc.y],0,2);
+this._addArgs(p,n,i,i+2);
+}
+return p;
+},_qSmoothCurveToR:function(_cc,_cd){
+return this._qSmoothCurveToA(this._adjustRelCrd(_cd,_cc,2),_cd);
+},_arcTo:function(_ce,_cf){
+var p=[],n=_ce.args,l=n.length,_d3=_ce.action=="a";
+for(var i=0;i<l;i+=7){
+var x1=n[i+5],y1=n[i+6];
+if(_d3){
+x1+=_cf.x;
+y1+=_cf.y;
+}
+var _d7=g.arc.arcAsBezier(_cf,n[i],n[i+1],n[i+2],n[i+3]?1:0,n[i+4]?1:0,x1,y1);
+for(var j=0;j<_d7.length;++j){
+p.push(" c");
+var t=_d7[j];
+this._addArgs(p,t,0,t.length);
+}
+_cf.x=x1;
+_cf.y=y1;
+}
+this.lastControl.type="";
+return p;
+},_closePath:function(){
+this.lastControl.type="";
+return ["x"];
+}});
+g.Path.nodeType="shape";
+dojo.declare("dojox.gfx.TextPath",dojox.gfx.Path,{constructor:function(_da){
+if(_da){
+_da.setAttribute("dojoGfxType","textpath");
+}
+this.fontStyle=null;
+if(!("text" in this)){
+this.text=dojo.clone(g.defaultTextPath);
+}
+if(!("fontStyle" in this)){
+this.fontStyle=dojo.clone(g.defaultFont);
+}
+},setText:function(_db){
+this.text=g.makeParameters(this.text,typeof _db=="string"?{text:_db}:_db);
+this._setText();
+return this;
+},setFont:function(_dc){
+this.fontStyle=typeof _dc=="string"?g.splitFontString(_dc):g.makeParameters(g.defaultFont,_dc);
+this._setFont();
+return this;
+},_setText:function(){
+this.bbox=null;
+var r=this.rawNode,s=this.text,p=null,t=null,c=r.childNodes;
+for(var i=0;i<c.length;++i){
+var tag=c[i].tagName;
+if(tag=="path"){
+p=c[i];
+if(t){
+break;
+}
+}else{
+if(tag=="textpath"){
+t=c[i];
+if(p){
+break;
+}
+}
+}
+}
+if(!p){
+p=this.rawNode.ownerDocument.createElement("v:path");
+r.appendChild(p);
+}
+if(!t){
+t=this.rawNode.ownerDocument.createElement("v:textpath");
+r.appendChild(t);
+}
+p.textPathOk=true;
+t.on=true;
+var a=_3.text_alignment[s.align];
+t.style["v-text-align"]=a?a:"left";
+t.style["text-decoration"]=s.decoration;
+t.style["v-rotate-letters"]=s.rotated;
+t.style["v-text-kern"]=s.kerning;
+t.string=s.text;
+},_setFont:function(){
+var f=this.fontStyle,c=this.rawNode.childNodes;
+for(var i=0;i<c.length;++i){
+if(c[i].tagName=="textpath"){
+c[i].style.font=g.makeFontString(f);
+break;
+}
+}
+}});
+g.TextPath.nodeType="shape";
+dojo.declare("dojox.gfx.Surface",dojox.gfx.shape.Surface,{constructor:function(){
+_3.Container._init.call(this);
+},setDimensions:function(_e8,_e9){
+this.width=g.normalizedLength(_e8);
+this.height=g.normalizedLength(_e9);
+if(!this.rawNode){
+return this;
+}
+var cs=this.clipNode.style,r=this.rawNode,rs=r.style,bs=this.bgNode.style,ps=this._parent.style,i;
+ps.width=_e8;
+ps.height=_e9;
+cs.width=_e8;
+cs.height=_e9;
+cs.clip="rect(0px "+_e8+"px "+_e9+"px 0px)";
+rs.width=_e8;
+rs.height=_e9;
+r.coordsize=_e8+" "+_e9;
+bs.width=_e8;
+bs.height=_e9;
+for(i=0;i<this.children.length;++i){
+this.children[i]._setDimensions(_e8,_e9);
+}
+return this;
+},getDimensions:function(){
+var t=this.rawNode?{width:g.normalizedLength(this.rawNode.style.width),height:g.normalizedLength(this.rawNode.style.height)}:null;
+if(t.width<=0){
+t.width=this.width;
+}
+if(t.height<=0){
+t.height=this.height;
+}
+return t;
+}});
+dojox.gfx.createSurface=function(_f1,_f2,_f3){
+if(!_f2){
+_f2="100%";
+}
+if(!_f3){
+_f3="100%";
+}
+var s=new g.Surface(),p=dojo.byId(_f1),c=s.clipNode=p.ownerDocument.createElement("div"),r=s.rawNode=p.ownerDocument.createElement("v:group"),cs=c.style,rs=r.style;
+s._parent=p;
+s._nodes.push(c);
+p.style.width=_f2;
+p.style.height=_f3;
+cs.position="absolute";
+cs.width=_f2;
+cs.height=_f3;
+cs.clip="rect(0px "+_f2+"px "+_f3+"px 0px)";
+rs.position="absolute";
+rs.width=_f2;
+rs.height=_f3;
+r.coordsize=(_f2=="100%"?_f2:parseFloat(_f2))+" "+(_f3=="100%"?_f3:parseFloat(_f3));
+r.coordorigin="0 0";
+var b=s.bgNode=r.ownerDocument.createElement("v:rect"),bs=b.style;
+bs.left=bs.top=0;
+bs.width=rs.width;
+bs.height=rs.height;
+b.filled=b.stroked="f";
+r.appendChild(b);
+c.appendChild(r);
+p.appendChild(c);
+s.width=g.normalizedLength(_f2);
+s.height=g.normalizedLength(_f3);
+return s;
+};
+_3.Container={_init:function(){
+sh.Container._init.call(this);
+},add:function(_fc){
+if(this!=_fc.getParent()){
+this.rawNode.appendChild(_fc.rawNode);
+if(!_fc.getParent()){
+_fc.setFill(_fc.getFill());
+_fc.setStroke(_fc.getStroke());
+}
+sh.Container.add.apply(this,arguments);
+}
+return this;
+},remove:function(_fd,_fe){
+if(this==_fd.getParent()){
+if(this.rawNode==_fd.rawNode.parentNode){
+this.rawNode.removeChild(_fd.rawNode);
+}
+sh.Container.remove.apply(this,arguments);
+}
+return this;
+},clear:function(){
+var r=this.rawNode;
+while(r.firstChild!=r.lastChild){
+if(r.firstChild!=this.bgNode){
+r.removeChild(r.firstChild);
+}
+if(r.lastChild!=this.bgNode){
+r.removeChild(r.lastChild);
+}
+}
+return sh.Container.clear.apply(this,arguments);
+},_moveChildToFront:sh.Container._moveChildToFront,_moveChildToBack:sh.Container._moveChildToBack};
+dojo.mixin(sh.Creator,{createGroup:function(){
+var node=this.createObject(g.Group,null);
+var r=node.rawNode.ownerDocument.createElement("v:rect");
+r.style.left=r.style.top=0;
+r.style.width=node.rawNode.style.width;
+r.style.height=node.rawNode.style.height;
+r.filled=r.stroked="f";
+node.rawNode.appendChild(r);
+node.bgNode=r;
+return node;
+},createImage:function(_102){
+if(!this.rawNode){
+return null;
+}
+var _103=new g.Image(),doc=this.rawNode.ownerDocument,node=doc.createElement("v:rect");
+node.stroked="f";
+node.style.width=this.rawNode.style.width;
+node.style.height=this.rawNode.style.height;
+var img=doc.createElement("v:imagedata");
+node.appendChild(img);
+_103.setRawNode(node);
+this.rawNode.appendChild(node);
+_103.setShape(_102);
+this.add(_103);
+return _103;
+},createObject:function(_107,_108){
+if(!this.rawNode){
+return null;
+}
+var _109=new _107(),node=this.rawNode.ownerDocument.createElement("v:"+_107.nodeType);
+_109.setRawNode(node);
+this.rawNode.appendChild(node);
+switch(_107){
+case g.Group:
+case g.Line:
+case g.Polyline:
+case g.Image:
+case g.Text:
+case g.Path:
+case g.TextPath:
+this._overrideSize(node);
+}
+_109.setShape(_108);
+this.add(_109);
+return _109;
+},_overrideSize:function(node){
+var s=this.rawNode.style,w=s.width,h=s.height;
+node.style.width=w;
+node.style.height=h;
+node.coordsize=parseInt(w)+" "+parseInt(h);
+}});
+dojo.extend(g.Group,_3.Container);
+dojo.extend(g.Group,sh.Creator);
+dojo.extend(g.Surface,_3.Container);
+dojo.extend(g.Surface,sh.Creator);
+})();
+}
Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/vml.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/vml_attach.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/vml_attach.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/vml_attach.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/vml_attach.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,300 @@
+/*
+ Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
+ see: http://dojotoolkit.org/license for details
+*/
+
+
+dojo.require("dojox.gfx.vml");
+dojo.experimental("dojox.gfx.vml_attach");
+(function(){
+dojox.gfx.attachNode=function(_1){
+if(!_1){
+return null;
+}
+var s=null;
+switch(_1.tagName.toLowerCase()){
+case dojox.gfx.Rect.nodeType:
+s=new dojox.gfx.Rect(_1);
+_3(s);
+break;
+case dojox.gfx.Ellipse.nodeType:
+if(_1.style.width==_1.style.height){
+s=new dojox.gfx.Circle(_1);
+_4(s);
+}else{
+s=new dojox.gfx.Ellipse(_1);
+_5(s);
+}
+break;
+case dojox.gfx.Path.nodeType:
+switch(_1.getAttribute("dojoGfxType")){
+case "line":
+s=new dojox.gfx.Line(_1);
+_6(s);
+break;
+case "polyline":
+s=new dojox.gfx.Polyline(_1);
+_7(s);
+break;
+case "path":
+s=new dojox.gfx.Path(_1);
+_8(s);
+break;
+case "text":
+s=new dojox.gfx.Text(_1);
+_9(s);
+_a(s);
+_b(s);
+break;
+case "textpath":
+s=new dojox.gfx.TextPath(_1);
+_8(s);
+_9(s);
+_a(s);
+break;
+}
+break;
+case dojox.gfx.Image.nodeType:
+switch(_1.getAttribute("dojoGfxType")){
+case "image":
+s=new dojox.gfx.Image(_1);
+_c(s);
+_d(s);
+break;
+}
+break;
+default:
+return null;
+}
+if(!(s instanceof dojox.gfx.Image)){
+_e(s);
+_f(s);
+if(!(s instanceof dojox.gfx.Text)){
+_10(s);
+}
+}
+return s;
+};
+dojox.gfx.attachSurface=function(_11){
+var s=new dojox.gfx.Surface();
+s.clipNode=_11;
+var r=s.rawNode=_11.firstChild;
+var b=r.firstChild;
+if(!b||b.tagName!="rect"){
+return null;
+}
+s.bgNode=r;
+return s;
+};
+var _e=function(_15){
+var _16=null,r=_15.rawNode,fo=r.fill;
+if(fo.on&&fo.type=="gradient"){
+var _16=dojo.clone(dojox.gfx.defaultLinearGradient),rad=dojox.gfx.matrix._degToRad(fo.angle);
+_16.x2=Math.cos(rad);
+_16.y2=Math.sin(rad);
+_16.colors=[];
+var _1a=fo.colors.value.split(";");
+for(var i=0;i<_1a.length;++i){
+var t=_1a[i].match(/\S+/g);
+if(!t||t.length!=2){
+continue;
+}
+_16.colors.push({offset:dojox.gfx.vml._parseFloat(t[0]),color:new dojo.Color(t[1])});
+}
+}else{
+if(fo.on&&fo.type=="gradientradial"){
+var _16=dojo.clone(dojox.gfx.defaultRadialGradient),w=parseFloat(r.style.width),h=parseFloat(r.style.height);
+_16.cx=isNaN(w)?0:fo.focusposition.x*w;
+_16.cy=isNaN(h)?0:fo.focusposition.y*h;
+_16.r=isNaN(w)?1:w/2;
+_16.colors=[];
+var _1a=fo.colors.value.split(";");
+for(var i=_1a.length-1;i>=0;--i){
+var t=_1a[i].match(/\S+/g);
+if(!t||t.length!=2){
+continue;
+}
+_16.colors.push({offset:dojox.gfx.vml._parseFloat(t[0]),color:new dojo.Color(t[1])});
+}
+}else{
+if(fo.on&&fo.type=="tile"){
+var _16=dojo.clone(dojox.gfx.defaultPattern);
+_16.width=dojox.gfx.pt2px(fo.size.x);
+_16.height=dojox.gfx.pt2px(fo.size.y);
+_16.x=fo.origin.x*_16.width;
+_16.y=fo.origin.y*_16.height;
+_16.src=fo.src;
+}else{
+if(fo.on&&r.fillcolor){
+_16=new dojo.Color(r.fillcolor+"");
+_16.a=fo.opacity;
+}
+}
+}
+}
+_15.fillStyle=_16;
+};
+var _f=function(_1f){
+var r=_1f.rawNode;
+if(!r.stroked){
+_1f.strokeStyle=null;
+return;
+}
+var _21=_1f.strokeStyle=dojo.clone(dojox.gfx.defaultStroke),rs=r.stroke;
+_21.color=new dojo.Color(r.strokecolor.value);
+_21.width=dojox.gfx.normalizedLength(r.strokeweight+"");
+_21.color.a=rs.opacity;
+_21.cap=this._translate(this._capMapReversed,rs.endcap);
+_21.join=rs.joinstyle=="miter"?rs.miterlimit:rs.joinstyle;
+_21.style=rs.dashstyle;
+};
+var _10=function(_23){
+var s=_23.rawNode.skew,sm=s.matrix,so=s.offset;
+_23.matrix=dojox.gfx.matrix.normalize({xx:sm.xtox,xy:sm.ytox,yx:sm.xtoy,yy:sm.ytoy,dx:dojox.gfx.pt2px(so.x),dy:dojox.gfx.pt2px(so.y)});
+};
+var _27=function(_28){
+_28.bgNode=_28.rawNode.firstChild;
+};
+var _3=function(_29){
+var r=_29.rawNode,_2b=r.outerHTML.match(/arcsize = \"(\d*\.?\d+[%f]?)\"/)[1],_2c=r.style,_2d=parseFloat(_2c.width),_2e=parseFloat(_2c.height);
+_2b=(_2b.indexOf("%")>=0)?parseFloat(_2b)/100:dojox.gfx.vml._parseFloat(_2b);
+_29.shape=dojox.gfx.makeParameters(dojox.gfx.defaultRect,{x:parseInt(_2c.left),y:parseInt(_2c.top),width:_2d,height:_2e,r:Math.min(_2d,_2e)*_2b});
+};
+var _5=function(_2f){
+var _30=_2f.rawNode.style,rx=parseInt(_30.width)/2,ry=parseInt(_30.height)/2;
+_2f.shape=dojox.gfx.makeParameters(dojox.gfx.defaultEllipse,{cx:parseInt(_30.left)+rx,cy:parseInt(_30.top)+ry,rx:rx,ry:ry});
+};
+var _4=function(_33){
+var _34=_33.rawNode.style,r=parseInt(_34.width)/2;
+_33.shape=dojox.gfx.makeParameters(dojox.gfx.defaultCircle,{cx:parseInt(_34.left)+r,cy:parseInt(_34.top)+r,r:r});
+};
+var _6=function(_36){
+var _37=_36.shape=dojo.clone(dojox.gfx.defaultLine),p=_36.rawNode.path.v.match(dojox.gfx.pathVmlRegExp);
+do{
+if(p.length<7||p[0]!="m"||p[3]!="l"||p[6]!="e"){
+break;
+}
+_37.x1=parseInt(p[1]);
+_37.y1=parseInt(p[2]);
+_37.x2=parseInt(p[4]);
+_37.y2=parseInt(p[5]);
+}while(false);
+};
+var _7=function(_39){
+var _3a=_39.shape=dojo.clone(dojox.gfx.defaultPolyline),p=_39.rawNode.path.v.match(dojox.gfx.pathVmlRegExp);
+do{
+if(p.length<3||p[0]!="m"){
+break;
+}
+var x=parseInt(p[0]),y=parseInt(p[1]);
+if(isNaN(x)||isNaN(y)){
+break;
+}
+_3a.points.push({x:x,y:y});
+if(p.length<6||p[3]!="l"){
+break;
+}
+for(var i=4;i<p.length;i+=2){
+x=parseInt(p[i]);
+y=parseInt(p[i+1]);
+if(isNaN(x)||isNaN(y)){
+break;
+}
+_3a.points.push({x:x,y:y});
+}
+}while(false);
+};
+var _c=function(_3f){
+_3f.shape=dojo.clone(dojox.gfx.defaultImage);
+_3f.shape.src=_3f.rawNode.firstChild.src;
+};
+var _d=function(_40){
+var m=_40.rawNode.filters["DXImageTransform.Microsoft.Matrix"];
+_40.matrix=dojox.gfx.matrix.normalize({xx:m.M11,xy:m.M12,yx:m.M21,yy:m.M22,dx:m.Dx,dy:m.Dy});
+};
+var _9=function(_42){
+var _43=_42.shape=dojo.clone(dojox.gfx.defaultText),r=_42.rawNode,p=r.path.v.match(dojox.gfx.pathVmlRegExp);
+do{
+if(!p||p.length!=7){
+break;
+}
+var c=r.childNodes,i=0;
+for(;i<c.length&&c[i].tagName!="textpath";++i){
+}
+if(i>=c.length){
+break;
+}
+var s=c[i].style;
+_43.text=c[i].string;
+switch(s["v-text-align"]){
+case "left":
+_43.x=parseInt(p[1]);
+_43.align="start";
+break;
+case "center":
+_43.x=(parseInt(p[1])+parseInt(p[4]))/2;
+_43.align="middle";
+break;
+case "right":
+_43.x=parseInt(p[4]);
+_43.align="end";
+break;
+}
+_43.y=parseInt(p[2]);
+_43.decoration=s["text-decoration"];
+_43.rotated=s["v-rotate-letters"].toLowerCase() in dojox.gfx.vml._bool;
+_43.kerning=s["v-text-kern"].toLowerCase() in dojox.gfx.vml._bool;
+return;
+}while(false);
+_42.shape=null;
+};
+var _a=function(_49){
+var _4a=_49.fontStyle=dojo.clone(dojox.gfx.defaultFont),c=_49.rawNode.childNodes,i=0;
+for(;i<c.length&&c[i].tagName=="textpath";++i){
+}
+if(i>=c.length){
+_49.fontStyle=null;
+return;
+}
+var s=c[i].style;
+_4a.style=s.fontstyle;
+_4a.variant=s.fontvariant;
+_4a.weight=s.fontweight;
+_4a.size=s.fontsize;
+_4a.family=s.fontfamily;
+};
+var _b=function(_4e){
+_10(_4e);
+var _4f=_4e.matrix,fs=_4e.fontStyle;
+if(_4f&&fs){
+_4e.matrix=dojox.gfx.matrix.multiply(_4f,{dy:dojox.gfx.normalizedLength(fs.size)*0.35});
+}
+};
+var _8=function(_51){
+var _52=_51.shape=dojo.clone(dojox.gfx.defaultPath),p=_51.rawNode.path.v.match(dojox.gfx.pathVmlRegExp),t=[],_55=false,map=dojox.gfx.Path._pathVmlToSvgMap;
+for(var i=0;i<p.length;++p){
+var s=p[i];
+if(s in map){
+_55=false;
+t.push(map[s]);
+}else{
+if(!_55){
+var n=parseInt(s);
+if(isNaN(n)){
+_55=true;
+}else{
+t.push(n);
+}
+}
+}
+}
+var l=t.length;
+if(l>=4&&t[l-1]==""&&t[l-2]==0&&t[l-3]==0&&t[l-4]=="l"){
+t.splice(l-4,4);
+}
+if(l){
+_52.path=t.join(" ");
+}
+};
+})();
Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx/vml_attach.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,14 @@
+/*
+ Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
+ see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.gfx3d"]){
+dojo._hasResource["dojox.gfx3d"]=true;
+dojo.provide("dojox.gfx3d");
+dojo.require("dojox.gfx3d.matrix");
+dojo.require("dojox.gfx3d._base");
+dojo.require("dojox.gfx3d.object");
+}
Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d.js
------------------------------------------------------------------------------
svn:eol-style = native
Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d/README
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d/README?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d/README (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d/README Thu Mar 19 10:37:00 2009
@@ -0,0 +1,36 @@
+-------------------------------------------------------------------------------
+dojox.gfx3d
+-------------------------------------------------------------------------------
+Version 0.100
+Release date: 10/31/2007
+-------------------------------------------------------------------------------
+Project state:
+beta
+-------------------------------------------------------------------------------
+Credits
+ Kun Xi (bookstack@gmail.com)
+ Eugene Lazutkin (eugene.lazutkin@gmail.com)
+-------------------------------------------------------------------------------
+Project description
+
+Implementation of simple portable 3D graphics library.
+-------------------------------------------------------------------------------
+Dependencies:
+
+Dojo Core, dojox.gfx.
+-------------------------------------------------------------------------------
+Documentation
+
+Not ready yet.
+-------------------------------------------------------------------------------
+Installation instructions
+
+Grab the following from the Dojo SVN Repository:
+http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/gfx3d.js
+http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/gfx3d/*
+
+Install into the following directory structure:
+/dojox/gfx3d/
+
+...which should be at the same level as your Dojo checkout.
+-------------------------------------------------------------------------------
Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d/README
------------------------------------------------------------------------------
svn:eol-style = native
Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d/_base.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d/_base.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d/_base.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d/_base.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,12 @@
+/*
+ Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
+ see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.gfx3d._base"]){
+dojo._hasResource["dojox.gfx3d._base"]=true;
+dojo.provide("dojox.gfx3d._base");
+dojo.mixin(dojox.gfx3d,{defaultEdges:{type:"edges",style:null,points:[]},defaultTriangles:{type:"triangles",style:null,points:[]},defaultQuads:{type:"quads",style:null,points:[]},defaultOrbit:{type:"orbit",center:{x:0,y:0,z:0},radius:50},defaultPath3d:{type:"path3d",path:[]},defaultPolygon:{type:"polygon",path:[]},defaultCube:{type:"cube",bottom:{x:0,y:0,z:0},top:{x:100,y:100,z:100}},defaultCylinder:{type:"cylinder",center:{x:0,y:0,z:0},height:100,radius:50}});
+}
Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/gfx3d/_base.js
------------------------------------------------------------------------------
svn:eol-style = native