tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkuhn...@apache.org
Subject svn commit: r618461 [14/43] - in /tapestry/tapestry4/trunk/tapestry-framework/src/js: dojo-0.4.3-custom-4.1.5/ dojo-0.4.3-custom-4.1.5/nls/ dojo-0.4.3-custom-4.1.5/src/ dojo-0.4.3-custom-4.1.5/src/animation/ dojo-0.4.3-custom-4.1.5/src/cal/ dojo-0.4.3-...
Date Mon, 04 Feb 2008 22:08:37 GMT
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Axis.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Axis.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Axis.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Axis.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,175 @@
+dojo.provide("dojo.charting.svg.Axis");
+dojo.require("dojo.lang.common");
+if(dojo.render.svg.capable){
+dojo.extend(dojo.charting.Axis,{renderLines:function(_1,_2,_3){
+if(this.nodes.lines){
+while(this.nodes.lines.childNodes.length>0){
+this.nodes.lines.removeChild(this.nodes.lines.childNodes[0]);
+}
+if(this.nodes.lines.parentNode){
+this.nodes.lines.parentNode.removeChild(this.nodes.lines);
+this.nodes.lines=null;
+}
+}
+var _4=_1.getArea();
+var g=this.nodes.lines=document.createElementNS(dojo.svg.xmlns.svg,"g");
+g.setAttribute("id",this.getId()+"-lines");
+for(var i=0;i<this._labels.length;i++){
+if(this._labels[i].value==this.origin){
+continue;
+}
+var v=this.getCoord(this._labels[i].value,_1,_2);
+var l=document.createElementNS(dojo.svg.xmlns.svg,"line");
+l.setAttribute("style","stroke:#999;stroke-width:1px;stroke-dasharray:1,4;");
+if(_3=="x"){
+l.setAttribute("y1",_4.top);
+l.setAttribute("y2",_4.bottom);
+l.setAttribute("x1",v);
+l.setAttribute("x2",v);
+}else{
+if(_3=="y"){
+l.setAttribute("y1",v);
+l.setAttribute("y2",v);
+l.setAttribute("x1",_4.left);
+l.setAttribute("x2",_4.right);
+}
+}
+g.appendChild(l);
+}
+return g;
+},renderTicks:function(_9,_a,_b,_c){
+if(this.nodes.ticks){
+while(this.nodes.ticks.childNodes.length>0){
+this.nodes.ticks.removeChild(this.nodes.ticks.childNodes[0]);
+}
+if(this.nodes.ticks.parentNode){
+this.nodes.ticks.parentNode.removeChild(this.nodes.ticks);
+this.nodes.ticks=null;
+}
+}
+var g=this.nodes.ticks=document.createElementNS(dojo.svg.xmlns.svg,"g");
+g.setAttribute("id",this.getId()+"-ticks");
+for(var i=0;i<this._labels.length;i++){
+var v=this.getCoord(this._labels[i].value,_9,_a);
+var l=document.createElementNS(dojo.svg.xmlns.svg,"line");
+l.setAttribute("style","stroke:#000;stroke-width:1pt;");
+if(_b=="x"){
+l.setAttribute("y1",_c);
+l.setAttribute("y2",_c+3);
+l.setAttribute("x1",v);
+l.setAttribute("x2",v);
+}else{
+if(_b=="y"){
+l.setAttribute("y1",v);
+l.setAttribute("y2",v);
+l.setAttribute("x1",_c-2);
+l.setAttribute("x2",_c+2);
+}
+}
+g.appendChild(l);
+}
+return g;
+},renderLabels:function(_11,_12,_13,_14,_15,_16){
+function createLabel(_17,x,y,_1a,_1b){
+var _1c=document.createElementNS(dojo.svg.xmlns.svg,"text");
+_1c.setAttribute("x",x);
+_1c.setAttribute("y",(_13=="x"?y:y+2));
+_1c.setAttribute("style","text-anchor:"+_1b+";font-family:sans-serif;font-size:"+_1a+"px;fill:#000;");
+_1c.appendChild(document.createTextNode(_17));
+return _1c;
+}
+if(this.nodes.labels){
+while(this.nodes.labels.childNodes.length>0){
+this.nodes.labels.removeChild(this.nodes.labels.childNodes[0]);
+}
+if(this.nodes.labels.parentNode){
+this.nodes.labels.parentNode.removeChild(this.nodes.labels);
+this.nodes.labels=null;
+}
+}
+var g=this.nodes.labels=document.createElementNS(dojo.svg.xmlns.svg,"g");
+g.setAttribute("id",this.getId()+"-labels");
+for(var i=0;i<this._labels.length;i++){
+var v=this.getCoord(this._labels[i].value,_11,_12);
+if(_13=="x"){
+g.appendChild(createLabel(this._labels[i].label,v,_14,_15,_16));
+}else{
+if(_13=="y"){
+g.appendChild(createLabel(this._labels[i].label,_14,v,_15,_16));
+}
+}
+}
+return g;
+},render:function(_20,_21,_22,_23){
+if(!this._rerender&&this.nodes.main){
+return this.nodes.main;
+}
+this._rerender=false;
+var _24=_20.getArea();
+var _25=1;
+var _26="stroke:#000;stroke-width:"+_25+"px;";
+var _27=10;
+var _28=_22.getCoord(this.origin,_20,_21);
+this.nodes.main=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var g=this.nodes.main;
+g.setAttribute("id",this.getId());
+var _2a=this.nodes.axis=document.createElementNS(dojo.svg.xmlns.svg,"line");
+if(_23=="x"){
+_2a.setAttribute("y1",_28);
+_2a.setAttribute("y2",_28);
+_2a.setAttribute("x1",_24.left-_25);
+_2a.setAttribute("x2",_24.right+_25);
+_2a.setAttribute("style",_26);
+var y=_28+_27+2;
+if(this.showLines){
+g.appendChild(this.renderLines(_20,_21,_23,y));
+}
+if(this.showTicks){
+g.appendChild(this.renderTicks(_20,_21,_23,_28));
+}
+if(this.showLabels){
+g.appendChild(this.renderLabels(_20,_21,_23,y,_27,"middle"));
+}
+if(this.showLabel&&this.label){
+var x=_20.size.width/2;
+var _2d=document.createElementNS(dojo.svg.xmlns.svg,"text");
+_2d.setAttribute("x",x);
+_2d.setAttribute("y",(_28+(_27*2)+(_27/2)));
+_2d.setAttribute("style","text-anchor:middle;font-family:sans-serif;font-weight:bold;font-size:"+(_27+2)+"px;fill:#000;");
+_2d.appendChild(document.createTextNode(this.label));
+g.appendChild(_2d);
+}
+}else{
+_2a.setAttribute("x1",_28);
+_2a.setAttribute("x2",_28);
+_2a.setAttribute("y1",_24.top);
+_2a.setAttribute("y2",_24.bottom);
+_2a.setAttribute("style",_26);
+var _2e=this.origin==_22.range.upper;
+var x=_28+(_2e?4:-4);
+var _2f=_2e?"start":"end";
+if(this.showLines){
+g.appendChild(this.renderLines(_20,_21,_23,x));
+}
+if(this.showTicks){
+g.appendChild(this.renderTicks(_20,_21,_23,_28));
+}
+if(this.showLabels){
+g.appendChild(this.renderLabels(_20,_21,_23,x,_27,_2f));
+}
+if(this.showLabel&&this.label){
+var x=_2e?(_28+(_27*2)+(_27/2)):(_28-(_27*4));
+var y=_20.size.height/2;
+var _2d=document.createElementNS(dojo.svg.xmlns.svg,"text");
+_2d.setAttribute("x",x);
+_2d.setAttribute("y",y);
+_2d.setAttribute("transform","rotate(90, "+x+", "+y+")");
+_2d.setAttribute("style","text-anchor:middle;font-family:sans-serif;font-weight:bold;font-size:"+(_27+2)+"px;fill:#000;");
+_2d.appendChild(document.createTextNode(this.label));
+g.appendChild(_2d);
+}
+}
+g.appendChild(_2a);
+return g;
+}});
+}

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Axis.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Axis.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Axis.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/PlotArea.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/PlotArea.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/PlotArea.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/PlotArea.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,64 @@
+dojo.provide("dojo.charting.svg.PlotArea");
+dojo.require("dojo.lang.common");
+if(dojo.render.svg.capable){
+dojo.require("dojo.svg");
+dojo.extend(dojo.charting.PlotArea,{resize:function(){
+var _1=this.getArea();
+this.nodes.area.setAttribute("width",this.size.width);
+this.nodes.area.setAttribute("height",this.size.height);
+var _2=this.nodes.area.getElementsByTagName("rect")[0];
+_2.setAttribute("x",_1.left);
+_2.setAttribute("y",_1.top);
+_2.setAttribute("width",_1.right-_1.left);
+_2.setAttribute("height",_1.bottom-_1.top);
+this.nodes.background.setAttribute("width",this.size.width);
+this.nodes.background.setAttribute("height",this.size.height);
+if(this.nodes.plots){
+this.nodes.area.removeChild(this.nodes.plots);
+this.nodes.plots=null;
+}
+this.nodes.plots=document.createElementNS(dojo.svg.xmlns.svg,"g");
+this.nodes.plots.setAttribute("id",this.getId()+"-plots");
+this.nodes.plots.setAttribute("style","clip-path:url(#"+this.getId()+"-clip);");
+this.nodes.area.appendChild(this.nodes.plots);
+for(var i=0;i<this.plots.length;i++){
+this.nodes.plots.appendChild(this.initializePlot(this.plots[i]));
+}
+if(this.nodes.axes){
+this.nodes.area.removeChild(this.nodes.axes);
+this.nodes.axes=null;
+}
+this.nodes.axes=document.createElementNS(dojo.svg.xmlns.svg,"g");
+this.nodes.axes.setAttribute("id",this.getId()+"-axes");
+this.nodes.area.appendChild(this.nodes.axes);
+var _4=this.getAxes();
+for(var p in _4){
+var _6=_4[p];
+this.nodes.axes.appendChild(_6.axis.initialize(this,_6.plot,_6.drawAgainst,_6.plane));
+}
+},initializePlot:function(_7){
+_7.destroy();
+_7.dataNode=document.createElementNS(dojo.svg.xmlns.svg,"g");
+_7.dataNode.setAttribute("id",_7.getId());
+return _7.dataNode;
+},initialize:function(){
+this.destroy();
+this.nodes.main=document.createElement("div");
+this.nodes.area=document.createElementNS(dojo.svg.xmlns.svg,"svg");
+this.nodes.area.setAttribute("id",this.getId());
+this.nodes.main.appendChild(this.nodes.area);
+var _8=document.createElementNS(dojo.svg.xmlns.svg,"defs");
+var _9=document.createElementNS(dojo.svg.xmlns.svg,"clipPath");
+_9.setAttribute("id",this.getId()+"-clip");
+var _a=document.createElementNS(dojo.svg.xmlns.svg,"rect");
+_9.appendChild(_a);
+_8.appendChild(_9);
+this.nodes.area.appendChild(_8);
+this.nodes.background=document.createElementNS(dojo.svg.xmlns.svg,"rect");
+this.nodes.background.setAttribute("id",this.getId()+"-background");
+this.nodes.background.setAttribute("fill","#fff");
+this.nodes.area.appendChild(this.nodes.background);
+this.resize();
+return this.nodes.main;
+}});
+}

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/PlotArea.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/PlotArea.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/PlotArea.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Plotters.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Plotters.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Plotters.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Plotters.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,689 @@
+dojo.provide("dojo.charting.svg.Plotters");
+dojo.require("dojo.lang.common");
+if(dojo.render.svg.capable){
+dojo.require("dojo.svg");
+dojo.mixin(dojo.charting.Plotters,{Bar:function(_1,_2,_3,_4){
+var _5=_1.getArea();
+var _6=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var n=_2.series.length;
+var _8=[];
+for(var i=0;i<n;i++){
+var _a=_2.series[i].data.evaluate(_3);
+_8.push(_a);
+}
+var _b=8;
+var _c=_8[0].length;
+if(_c==0){
+return _6;
+}
+var _d=((_5.right-_5.left)-(_b*(_c-1)))/_c;
+var _e=_d/n;
+var _f=_2.axisY.getCoord(_2.axisX.origin,_1,_2);
+for(var i=0;i<_c;i++){
+var _10=_5.left+(_d*i)+(_b*i);
+for(var j=0;j<n;j++){
+var _12=_8[j][i].y;
+var yA=_f;
+var x=_10+(_e*j);
+var y=_2.axisY.getCoord(_12,_1,_2);
+var h=Math.abs(yA-y);
+if(_12<_2.axisX.origin){
+yA=y;
+y=_f;
+}
+var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
+bar.setAttribute("fill",_8[j][i].series.color);
+bar.setAttribute("stroke-width","0");
+bar.setAttribute("x",x);
+bar.setAttribute("y",y);
+bar.setAttribute("width",_e);
+bar.setAttribute("height",h);
+bar.setAttribute("fill-opacity","0.6");
+if(_4){
+_4(bar,_8[j][i].src);
+}
+_6.appendChild(bar);
+}
+}
+return _6;
+},HorizontalBar:function(_18,_19,_1a,_1b){
+var _1c=_18.getArea();
+var _1d=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var n=_19.series.length;
+var _1f=[];
+for(var i=0;i<n;i++){
+var tmp=_19.series[i].data.evaluate(_1a);
+_1f.push(tmp);
+}
+var _22=6;
+var _23=_1f[0].length;
+if(_23==0){
+return _1d;
+}
+var h=((_1c.bottom-_1c.top)-(_22*(_23-1)))/_23;
+var _25=h/n;
+var _26=_19.axisX.getCoord(0,_18,_19);
+for(var i=0;i<_23;i++){
+var _27=_1c.top+(h*i)+(_22*i);
+for(var j=0;j<n;j++){
+var _29=_1f[j][i].y;
+var y=_27+(_25*j);
+var xA=_26;
+var x=_19.axisX.getCoord(_29,_18,_19);
+var w=Math.abs(x-xA);
+if(_29>0){
+x=_26;
+}
+var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
+bar.setAttribute("fill",_1f[j][i].series.color);
+bar.setAttribute("stroke-width","0");
+bar.setAttribute("x",xA);
+bar.setAttribute("y",y);
+bar.setAttribute("width",w);
+bar.setAttribute("height",_25);
+bar.setAttribute("fill-opacity","0.6");
+if(_1b){
+_1b(bar,_1f[j][i].src);
+}
+_1d.appendChild(bar);
+}
+}
+return _1d;
+},Gantt:function(_2f,_30,_31,_32){
+var _33=_2f.getArea();
+var _34=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var n=_30.series.length;
+var _36=[];
+for(var i=0;i<n;i++){
+var tmp=_30.series[i].data.evaluate(_31);
+_36.push(tmp);
+}
+var _39=2;
+var _3a=_36[0].length;
+if(_3a==0){
+return _34;
+}
+var h=((_33.bottom-_33.top)-(_39*(_3a-1)))/_3a;
+var _3c=h/n;
+for(var i=0;i<_3a;i++){
+var _3d=_33.top+(h*i)+(_39*i);
+for(var j=0;j<n;j++){
+var _3f=_36[j][i].high;
+var low=_36[j][i].low;
+if(low>_3f){
+var t=_3f;
+_3f=low;
+low=t;
+}
+var x=_30.axisX.getCoord(low,_2f,_30);
+var w=_30.axisX.getCoord(_3f,_2f,_30)-x;
+var y=_3d+(_3c*j);
+var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
+bar.setAttribute("fill",_36[j][i].series.color);
+bar.setAttribute("stroke-width","0");
+bar.setAttribute("x",x);
+bar.setAttribute("y",y);
+bar.setAttribute("width",w);
+bar.setAttribute("height",_3c);
+bar.setAttribute("fill-opacity","0.6");
+if(_32){
+_32(bar,_36[j][i].src);
+}
+_34.appendChild(bar);
+}
+}
+return _34;
+},StackedArea:function(_46,_47,_48,_49){
+var _4a=_46.getArea();
+var _4b=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var n=_47.series.length;
+var _4d=[];
+var _4e=[];
+for(var i=0;i<n;i++){
+var tmp=_47.series[i].data.evaluate(_48);
+for(var j=0;j<tmp.length;j++){
+if(i==0){
+_4e.push(tmp[j].y);
+}else{
+_4e[j]+=tmp[j].y;
+}
+tmp[j].y=_4e[j];
+}
+_4d.push(tmp);
+}
+for(var i=n-1;i>=0;i--){
+var _52=document.createElementNS(dojo.svg.xmlns.svg,"path");
+_52.setAttribute("fill",_4d[i][0].series.color);
+_52.setAttribute("fill-opacity","0.4");
+_52.setAttribute("stroke",_4d[i][0].series.color);
+_52.setAttribute("stroke-width","1");
+_52.setAttribute("stroke-opacity","0.85");
+var cmd=[];
+var r=3;
+for(var j=0;j<_4d[i].length;j++){
+var _55=_4d[i];
+var x=_47.axisX.getCoord(_55[j].x,_46,_47);
+var y=_47.axisY.getCoord(_55[j].y,_46,_47);
+if(j==0){
+cmd.push("M");
+}else{
+cmd.push("L");
+}
+cmd.push(x+","+y);
+var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
+c.setAttribute("cx",x);
+c.setAttribute("cy",y);
+c.setAttribute("r","3");
+c.setAttribute("fill",_55[j].series.color);
+c.setAttribute("fill-opacity","0.6");
+c.setAttribute("stroke-width","1");
+c.setAttribute("stroke-opacity","0.85");
+_4b.appendChild(c);
+if(_49){
+_49(c,_4d[i].src);
+}
+}
+if(i==0){
+cmd.push("L");
+cmd.push(x+","+_47.axisY.getCoord(_47.axisX.origin,_46,_47));
+cmd.push("L");
+cmd.push(_47.axisX.getCoord(_4d[0][0].x,_46,_47)+","+_47.axisY.getCoord(_47.axisX.origin,_46,_47));
+cmd.push("Z");
+}else{
+var _55=_4d[i-1];
+cmd.push("L");
+cmd.push(x+","+Math.round(_47.axisY.getCoord(_55[_55.length-1].y,_46,_47)));
+for(var j=_55.length-2;j>=0;j--){
+var x=_47.axisX.getCoord(_55[j].x,_46,_47);
+var y=_47.axisY.getCoord(_55[j].y,_46,_47);
+cmd.push("L");
+cmd.push(x+","+y);
+}
+}
+_52.setAttribute("d",cmd.join(" ")+" Z");
+_4b.appendChild(_52);
+}
+return _4b;
+},StackedCurvedArea:function(_59,_5a,_5b,_5c){
+var _5d=3;
+var _5e=_59.getArea();
+var _5f=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var n=_5a.series.length;
+var _61=[];
+var _62=[];
+for(var i=0;i<n;i++){
+var tmp=_5a.series[i].data.evaluate(_5b);
+for(var j=0;j<tmp.length;j++){
+if(i==0){
+_62.push(tmp[j].y);
+}else{
+_62[j]+=tmp[j].y;
+}
+tmp[j].y=_62[j];
+}
+_61.push(tmp);
+}
+for(var i=n-1;i>=0;i--){
+var _66=document.createElementNS(dojo.svg.xmlns.svg,"path");
+_66.setAttribute("fill",_61[i][0].series.color);
+_66.setAttribute("fill-opacity","0.4");
+_66.setAttribute("stroke",_61[i][0].series.color);
+_66.setAttribute("stroke-width","1");
+_66.setAttribute("stroke-opacity","0.85");
+var cmd=[];
+var r=3;
+for(var j=0;j<_61[i].length;j++){
+var _69=_61[i];
+var x=_5a.axisX.getCoord(_69[j].x,_59,_5a);
+var y=_5a.axisY.getCoord(_69[j].y,_59,_5a);
+var dx=_5e.left+1;
+var dy=_5e.bottom;
+if(j>0){
+dx=x-_5a.axisX.getCoord(_69[j-1].x,_59,_5a);
+dy=_5a.axisY.getCoord(_69[j-1].y,_59,_5a);
+}
+if(j==0){
+cmd.push("M");
+}else{
+cmd.push("C");
+var cx=x-(_5d-1)*(dx/_5d);
+cmd.push(cx+","+dy);
+cx=x-(dx/_5d);
+cmd.push(cx+","+y);
+}
+cmd.push(x+","+y);
+var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
+c.setAttribute("cx",x);
+c.setAttribute("cy",y);
+c.setAttribute("r","3");
+c.setAttribute("fill",_69[j].series.color);
+c.setAttribute("fill-opacity","0.6");
+c.setAttribute("stroke-width","1");
+c.setAttribute("stroke-opacity","0.85");
+_5f.appendChild(c);
+if(_5c){
+_5c(c,_61[i].src);
+}
+}
+if(i==0){
+cmd.push("L");
+cmd.push(x+","+_5a.axisY.getCoord(_5a.axisX.origin,_59,_5a));
+cmd.push("L");
+cmd.push(_5a.axisX.getCoord(_61[0][0].x,_59,_5a)+","+_5a.axisY.getCoord(_5a.axisX.origin,_59,_5a));
+cmd.push("Z");
+}else{
+var _69=_61[i-1];
+cmd.push("L");
+cmd.push(x+","+Math.round(_5a.axisY.getCoord(_69[_69.length-1].y,_59,_5a)));
+for(var j=_69.length-2;j>=0;j--){
+var x=_5a.axisX.getCoord(_69[j].x,_59,_5a);
+var y=_5a.axisY.getCoord(_69[j].y,_59,_5a);
+var dx=x-_5a.axisX.getCoord(_69[j+1].x,_59,_5a);
+var dy=_5a.axisY.getCoord(_69[j+1].y,_59,_5a);
+cmd.push("C");
+var cx=x-(_5d-1)*(dx/_5d);
+cmd.push(cx+","+dy);
+cx=x-(dx/_5d);
+cmd.push(cx+","+y);
+cmd.push(x+","+y);
+}
+}
+_66.setAttribute("d",cmd.join(" ")+" Z");
+_5f.appendChild(_66);
+}
+return _5f;
+},DataBar:function(_70,_71,_72,_73){
+var _74=_71.getArea();
+var _75=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var n=_70.length;
+var w=(_74.right-_74.left)/(_72.axisX.range.upper-_72.axisX.range.lower);
+var _78=_72.axisY.getCoord(_72.axisX.origin,_71,_72);
+for(var i=0;i<n;i++){
+var _7a=_70[i].y;
+var yA=_78;
+var x=_72.axisX.getCoord(_70[i].x,_71,_72)-(w/2);
+var y=_72.axisY.getCoord(_7a,_71,_72);
+var h=Math.abs(yA-y);
+if(_7a<_72.axisX.origin){
+yA=y;
+y=_78;
+}
+var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
+bar.setAttribute("fill",_70[i].series.color);
+bar.setAttribute("stroke-width","0");
+bar.setAttribute("x",x);
+bar.setAttribute("y",y);
+bar.setAttribute("width",w);
+bar.setAttribute("height",h);
+bar.setAttribute("fill-opacity","0.6");
+if(_73){
+_73(bar,_70[i].src);
+}
+_75.appendChild(bar);
+}
+return _75;
+},Line:function(_80,_81,_82,_83){
+var _84=_81.getArea();
+var _85=document.createElementNS(dojo.svg.xmlns.svg,"g");
+if(_80.length==0){
+return _85;
+}
+var _86=document.createElementNS(dojo.svg.xmlns.svg,"path");
+_85.appendChild(_86);
+_86.setAttribute("fill","none");
+_86.setAttribute("stroke",_80[0].series.color);
+_86.setAttribute("stroke-width","2");
+_86.setAttribute("stroke-opacity","0.85");
+if(_80[0].series.label!=null){
+_86.setAttribute("title",_80[0].series.label);
+}
+var cmd=[];
+for(var i=0;i<_80.length;i++){
+var x=_82.axisX.getCoord(_80[i].x,_81,_82);
+var y=_82.axisY.getCoord(_80[i].y,_81,_82);
+if(i==0){
+cmd.push("M");
+}else{
+cmd.push("L");
+}
+cmd.push(x+","+y);
+var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
+c.setAttribute("cx",x);
+c.setAttribute("cy",y);
+c.setAttribute("r","3");
+c.setAttribute("fill",_80[i].series.color);
+c.setAttribute("fill-opacity","0.6");
+c.setAttribute("stroke-width","1");
+c.setAttribute("stroke-opacity","0.85");
+_85.appendChild(c);
+if(_83){
+_83(c,_80[i].src);
+}
+}
+_86.setAttribute("d",cmd.join(" "));
+return _85;
+},CurvedLine:function(_8c,_8d,_8e,_8f){
+var _90=3;
+var _91=_8d.getArea();
+var _92=document.createElementNS(dojo.svg.xmlns.svg,"g");
+if(_8c.length==0){
+return _92;
+}
+var _93=document.createElementNS(dojo.svg.xmlns.svg,"path");
+_92.appendChild(_93);
+_93.setAttribute("fill","none");
+_93.setAttribute("stroke",_8c[0].series.color);
+_93.setAttribute("stroke-width","2");
+_93.setAttribute("stroke-opacity","0.85");
+if(_8c[0].series.label!=null){
+_93.setAttribute("title",_8c[0].series.label);
+}
+var cmd=[];
+for(var i=0;i<_8c.length;i++){
+var x=_8e.axisX.getCoord(_8c[i].x,_8d,_8e);
+var y=_8e.axisY.getCoord(_8c[i].y,_8d,_8e);
+var dx=_91.left+1;
+var dy=_91.bottom;
+if(i>0){
+dx=x-_8e.axisX.getCoord(_8c[i-1].x,_8d,_8e);
+dy=_8e.axisY.getCoord(_8c[i-1].y,_8d,_8e);
+}
+if(i==0){
+cmd.push("M");
+}else{
+cmd.push("C");
+var cx=x-(_90-1)*(dx/_90);
+cmd.push(cx+","+dy);
+cx=x-(dx/_90);
+cmd.push(cx+","+y);
+}
+cmd.push(x+","+y);
+var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
+c.setAttribute("cx",x);
+c.setAttribute("cy",y);
+c.setAttribute("r","3");
+c.setAttribute("fill",_8c[i].series.color);
+c.setAttribute("fill-opacity","0.6");
+c.setAttribute("stroke-width","1");
+c.setAttribute("stroke-opacity","0.85");
+_92.appendChild(c);
+if(_8f){
+_8f(c,_8c[i].src);
+}
+}
+_93.setAttribute("d",cmd.join(" "));
+return _92;
+},Area:function(_9c,_9d,_9e,_9f){
+var _a0=_9d.getArea();
+var _a1=document.createElementNS(dojo.svg.xmlns.svg,"g");
+if(_9c.length==0){
+return _a1;
+}
+var _a2=document.createElementNS(dojo.svg.xmlns.svg,"path");
+_a1.appendChild(_a2);
+_a2.setAttribute("fill",_9c[0].series.color);
+_a2.setAttribute("fill-opacity","0.4");
+_a2.setAttribute("stroke",_9c[0].series.color);
+_a2.setAttribute("stroke-width","1");
+_a2.setAttribute("stroke-opacity","0.85");
+if(_9c[0].series.label!=null){
+_a2.setAttribute("title",_9c[0].series.label);
+}
+var cmd=[];
+for(var i=0;i<_9c.length;i++){
+var x=_9e.axisX.getCoord(_9c[i].x,_9d,_9e);
+var y=_9e.axisY.getCoord(_9c[i].y,_9d,_9e);
+if(i==0){
+cmd.push("M");
+}else{
+cmd.push("L");
+}
+cmd.push(x+","+y);
+var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
+c.setAttribute("cx",x);
+c.setAttribute("cy",y);
+c.setAttribute("r","3");
+c.setAttribute("fill",_9c[i].series.color);
+c.setAttribute("fill-opacity","0.6");
+c.setAttribute("stroke-width","1");
+c.setAttribute("stroke-opacity","0.85");
+_a1.appendChild(c);
+if(_9f){
+_9f(c,_9c[i].src);
+}
+}
+cmd.push("L");
+cmd.push(x+","+_9e.axisY.getCoord(_9e.axisX.origin,_9d,_9e));
+cmd.push("L");
+cmd.push(_9e.axisX.getCoord(_9c[0].x,_9d,_9e)+","+_9e.axisY.getCoord(_9e.axisX.origin,_9d,_9e));
+cmd.push("Z");
+_a2.setAttribute("d",cmd.join(" "));
+return _a1;
+},CurvedArea:function(_a8,_a9,_aa,_ab){
+var _ac=3;
+var _ad=_a9.getArea();
+var _ae=document.createElementNS(dojo.svg.xmlns.svg,"g");
+if(_a8.length==0){
+return _ae;
+}
+var _af=document.createElementNS(dojo.svg.xmlns.svg,"path");
+_ae.appendChild(_af);
+_af.setAttribute("fill",_a8[0].series.color);
+_af.setAttribute("fill-opacity","0.4");
+_af.setAttribute("stroke",_a8[0].series.color);
+_af.setAttribute("stroke-width","1");
+_af.setAttribute("stroke-opacity","0.85");
+if(_a8[0].series.label!=null){
+_af.setAttribute("title",_a8[0].series.label);
+}
+var cmd=[];
+for(var i=0;i<_a8.length;i++){
+var x=_aa.axisX.getCoord(_a8[i].x,_a9,_aa);
+var y=_aa.axisY.getCoord(_a8[i].y,_a9,_aa);
+var dx=_ad.left+1;
+var dy=_ad.bottom;
+if(i>0){
+dx=x-_aa.axisX.getCoord(_a8[i-1].x,_a9,_aa);
+dy=_aa.axisY.getCoord(_a8[i-1].y,_a9,_aa);
+}
+if(i==0){
+cmd.push("M");
+}else{
+cmd.push("C");
+var cx=x-(_ac-1)*(dx/_ac);
+cmd.push(cx+","+dy);
+cx=x-(dx/_ac);
+cmd.push(cx+","+y);
+}
+cmd.push(x+","+y);
+var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
+c.setAttribute("cx",x);
+c.setAttribute("cy",y);
+c.setAttribute("r","3");
+c.setAttribute("fill",_a8[i].series.color);
+c.setAttribute("fill-opacity","0.6");
+c.setAttribute("stroke-width","1");
+c.setAttribute("stroke-opacity","0.85");
+_ae.appendChild(c);
+if(_ab){
+_ab(c,_a8[i].src);
+}
+}
+cmd.push("L");
+cmd.push(x+","+_aa.axisY.getCoord(_aa.axisX.origin,_a9,_aa));
+cmd.push("L");
+cmd.push(_aa.axisX.getCoord(_a8[0].x,_a9,_aa)+","+_aa.axisY.getCoord(_aa.axisX.origin,_a9,_aa));
+cmd.push("Z");
+_af.setAttribute("d",cmd.join(" "));
+return _ae;
+},HighLow:function(_b8,_b9,_ba,_bb){
+var _bc=_b9.getArea();
+var _bd=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var n=_b8.length;
+var _bf=((_bc.right-_bc.left)/(_ba.axisX.range.upper-_ba.axisX.range.lower))/4;
+var w=_bf*2;
+for(var i=0;i<n;i++){
+var _c2=_b8[i].high;
+var low=_b8[i].low;
+if(low>_c2){
+var t=low;
+low=_c2;
+_c2=t;
+}
+var x=_ba.axisX.getCoord(_b8[i].x,_b9,_ba)-(w/2);
+var y=_ba.axisY.getCoord(_c2,_b9,_ba);
+var h=_ba.axisY.getCoord(low,_b9,_ba)-y;
+var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
+bar.setAttribute("fill",_b8[i].series.color);
+bar.setAttribute("stroke-width","0");
+bar.setAttribute("x",x);
+bar.setAttribute("y",y);
+bar.setAttribute("width",w);
+bar.setAttribute("height",h);
+bar.setAttribute("fill-opacity","0.6");
+if(_bb){
+_bb(bar,_b8[i].src);
+}
+_bd.appendChild(bar);
+}
+return _bd;
+},HighLowClose:function(_c9,_ca,_cb,_cc){
+var _cd=_ca.getArea();
+var _ce=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var n=_c9.length;
+var _d0=((_cd.right-_cd.left)/(_cb.axisX.range.upper-_cb.axisX.range.lower))/4;
+var w=_d0*2;
+for(var i=0;i<n;i++){
+var _d3=_c9[i].high;
+var low=_c9[i].low;
+if(low>_d3){
+var t=low;
+low=_d3;
+_d3=t;
+}
+var c=_c9[i].close;
+var x=_cb.axisX.getCoord(_c9[i].x,_ca,_cb)-(w/2);
+var y=_cb.axisY.getCoord(_d3,_ca,_cb);
+var h=_cb.axisY.getCoord(low,_ca,_cb)-y;
+var _da=_cb.axisY.getCoord(c,_ca,_cb);
+var g=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
+bar.setAttribute("fill",_c9[i].series.color);
+bar.setAttribute("stroke-width","0");
+bar.setAttribute("x",x);
+bar.setAttribute("y",y);
+bar.setAttribute("width",w);
+bar.setAttribute("height",h);
+bar.setAttribute("fill-opacity","0.6");
+g.appendChild(bar);
+var _dd=document.createElementNS(dojo.svg.xmlns.svg,"line");
+_dd.setAttribute("x1",x);
+_dd.setAttribute("x2",x+w+(_d0*2));
+_dd.setAttribute("y1",_da);
+_dd.setAttribute("y2",_da);
+_dd.setAttribute("style","stroke:"+_c9[i].series.color+";stroke-width:1px;stroke-opacity:0.6;");
+g.appendChild(_dd);
+if(_cc){
+_cc(g,_c9[i].src);
+}
+_ce.appendChild(g);
+}
+return _ce;
+},HighLowOpenClose:function(_de,_df,_e0,_e1){
+var _e2=_df.getArea();
+var _e3=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var n=_de.length;
+var _e5=((_e2.right-_e2.left)/(_e0.axisX.range.upper-_e0.axisX.range.lower))/4;
+var w=_e5*2;
+for(var i=0;i<n;i++){
+var _e8=_de[i].high;
+var low=_de[i].low;
+if(low>_e8){
+var t=low;
+low=_e8;
+_e8=t;
+}
+var o=_de[i].open;
+var c=_de[i].close;
+var x=_e0.axisX.getCoord(_de[i].x,_df,_e0)-(w/2);
+var y=_e0.axisY.getCoord(_e8,_df,_e0);
+var h=_e0.axisY.getCoord(low,_df,_e0)-y;
+var _f0=_e0.axisY.getCoord(o,_df,_e0);
+var _f1=_e0.axisY.getCoord(c,_df,_e0);
+var g=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
+bar.setAttribute("fill",_de[i].series.color);
+bar.setAttribute("stroke-width","0");
+bar.setAttribute("x",x);
+bar.setAttribute("y",y);
+bar.setAttribute("width",w);
+bar.setAttribute("height",h);
+bar.setAttribute("fill-opacity","0.6");
+g.appendChild(bar);
+var _f4=document.createElementNS(dojo.svg.xmlns.svg,"line");
+_f4.setAttribute("x1",x-(_e5*2));
+_f4.setAttribute("x2",x+w);
+_f4.setAttribute("y1",_f0);
+_f4.setAttribute("y2",_f0);
+_f4.setAttribute("style","stroke:"+_de[i].series.color+";stroke-width:1px;stroke-opacity:0.6;");
+g.appendChild(_f4);
+var _f4=document.createElementNS(dojo.svg.xmlns.svg,"line");
+_f4.setAttribute("x1",x);
+_f4.setAttribute("x2",x+w+(_e5*2));
+_f4.setAttribute("y1",_f1);
+_f4.setAttribute("y2",_f1);
+_f4.setAttribute("style","stroke:"+_de[i].series.color+";stroke-width:1px;stroke-opacity:0.6;");
+g.appendChild(_f4);
+if(_e1){
+_e1(g,_de[i].src);
+}
+_e3.appendChild(g);
+}
+return _e3;
+},Scatter:function(_f5,_f6,_f7,_f8){
+var r=7;
+var _fa=document.createElementNS(dojo.svg.xmlns.svg,"g");
+for(var i=0;i<_f5.length;i++){
+var x=_f7.axisX.getCoord(_f5[i].x,_f6,_f7);
+var y=_f7.axisY.getCoord(_f5[i].y,_f6,_f7);
+var _fe=document.createElementNS(dojo.svg.xmlns.svg,"path");
+_fe.setAttribute("fill",_f5[i].series.color);
+_fe.setAttribute("stroke-width","0");
+_fe.setAttribute("d","M "+x+","+(y-r)+" "+"Q "+x+","+y+" "+(x+r)+","+y+" "+"Q "+x+","+y+" "+x+","+(y+r)+" "+"Q "+x+","+y+" "+(x-r)+","+y+" "+"Q "+x+","+y+" "+x+","+(y-r)+" "+"Z");
+if(_f8){
+_f8(_fe,_f5[i].src);
+}
+_fa.appendChild(_fe);
+}
+return _fa;
+},Bubble:function(_ff,_100,plot,_102){
+var _103=document.createElementNS(dojo.svg.xmlns.svg,"g");
+var _104=1;
+for(var i=0;i<_ff.length;i++){
+var x=plot.axisX.getCoord(_ff[i].x,_100,plot);
+var y=plot.axisY.getCoord(_ff[i].y,_100,plot);
+if(i==0){
+var raw=_ff[i].size;
+var dy=plot.axisY.getCoord(_ff[i].y+raw,_100,plot)-y;
+_104=dy/raw;
+}
+if(_104<1){
+_104=1;
+}
+var _10a=document.createElementNS(dojo.svg.xmlns.svg,"circle");
+_10a.setAttribute("fill",_ff[i].series.color);
+_10a.setAttribute("fill-opacity","0.8");
+_10a.setAttribute("stroke",_ff[i].series.color);
+_10a.setAttribute("stroke-width","1");
+_10a.setAttribute("cx",x);
+_10a.setAttribute("cy",y);
+_10a.setAttribute("r",(_ff[i].size/2)*_104);
+if(_102){
+_102(_10a,_ff[i].src);
+}
+_103.appendChild(_10a);
+}
+return _103;
+}});
+dojo.charting.Plotters["Default"]=dojo.charting.Plotters.Line;
+}

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Plotters.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Plotters.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/svg/Plotters.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Axis.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Axis.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Axis.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Axis.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,226 @@
+dojo.provide("dojo.charting.vml.Axis");
+dojo.require("dojo.lang.common");
+if(dojo.render.vml.capable){
+dojo.extend(dojo.charting.Axis,{renderLines:function(_1,_2,_3){
+if(this.nodes.lines){
+while(this.nodes.lines.childNodes.length>0){
+this.nodes.lines.removeChild(this.nodes.lines.childNodes[0]);
+}
+if(this.nodes.lines.parentNode){
+this.nodes.lines.parentNode.removeChild(this.nodes.lines);
+this.nodes.lines=null;
+}
+}
+var _4=_1.getArea();
+var g=this.nodes.lines=document.createElement("div");
+g.setAttribute("id",this.getId()+"-lines");
+for(var i=0;i<this._labels.length;i++){
+if(this._labels[i].value==this.origin){
+continue;
+}
+var v=this.getCoord(this._labels[i].value,_1,_2);
+var l=document.createElement("v:line");
+var _9=document.createElement("v:stroke");
+_9.dashstyle="dot";
+l.appendChild(_9);
+l.setAttribute("strokecolor","#666");
+l.setAttribute("strokeweight","1px");
+var s=l.style;
+s.position="absolute";
+s.top="0px";
+s.left="0px";
+s.antialias="false";
+if(_3=="x"){
+l.setAttribute("from",v+"px,"+_4.top+"px");
+l.setAttribute("to",v+"px,"+_4.bottom+"px");
+}else{
+if(_3=="y"){
+l.setAttribute("from",_4.left+"px,"+v+"px");
+l.setAttribute("to",_4.right+"px,"+v+"px");
+}
+}
+g.appendChild(l);
+}
+return g;
+},renderTicks:function(_b,_c,_d,_e){
+if(this.nodes.ticks){
+while(this.nodes.ticks.childNodes.length>0){
+this.nodes.ticks.removeChild(this.nodes.ticks.childNodes[0]);
+}
+if(this.nodes.ticks.parentNode){
+this.nodes.ticks.parentNode.removeChild(this.nodes.ticks);
+this.nodes.ticks=null;
+}
+}
+var g=this.nodes.ticks=document.createElement("div");
+g.setAttribute("id",this.getId()+"-ticks");
+for(var i=0;i<this._labels.length;i++){
+var v=this.getCoord(this._labels[i].value,_b,_c);
+var l=document.createElement("v:line");
+l.setAttribute("strokecolor","#000");
+l.setAttribute("strokeweight","1px");
+var s=l.style;
+s.position="absolute";
+s.top="0px";
+s.left="0px";
+s.antialias="false";
+if(_d=="x"){
+l.setAttribute("from",v+"px,"+_e+"px");
+l.setAttribute("to",v+"px,"+(_e+3)+"px");
+}else{
+if(_d=="y"){
+l.setAttribute("from",(_e-2)+"px,"+v+"px");
+l.setAttribute("to",(_e+2)+"px,"+v+"px");
+}
+}
+g.appendChild(l);
+}
+return g;
+},renderLabels:function(_14,_15,_16,_17,_18,_19){
+function createLabel(_1a,x,y,_1d,_1e){
+var _1f=document.createElement("div");
+var s=_1f.style;
+_1f.innerHTML=_1a;
+s.fontSize=_1d+"px";
+s.fontFamily="sans-serif";
+s.position="absolute";
+s.top=y+"px";
+if(_1e=="center"){
+s.left=x+"px";
+s.textAlign="center";
+}else{
+if(_1e=="left"){
+s.left=x+"px";
+s.textAlign="left";
+}else{
+if(_1e=="right"){
+s.right=x+"px";
+s.textAlign="right";
+}
+}
+}
+return _1f;
+}
+if(this.nodes.labels){
+while(this.nodes.labels.childNodes.length>0){
+this.nodes.labels.removeChild(this.nodes.labels.childNodes[0]);
+}
+if(this.nodes.labels.parentNode){
+this.nodes.labels.parentNode.removeChild(this.nodes.labels);
+this.nodes.labels=null;
+}
+}
+var g=this.nodes.labels=document.createElement("div");
+g.setAttribute("id",this.getId()+"-labels");
+for(var i=0;i<this._labels.length;i++){
+var v=this.getCoord(this._labels[i].value,_14,_15);
+if(_16=="x"){
+var _24=createLabel(this._labels[i].label,v,_17,_18,_19);
+document.body.appendChild(_24);
+_24.style.left=v-(_24.offsetWidth/2)+"px";
+g.appendChild(_24);
+}else{
+if(_16=="y"){
+var _24=createLabel(this._labels[i].label,_17,v,_18,_19);
+document.body.appendChild(_24);
+_24.style.top=v-(_24.offsetHeight/2)+"px";
+g.appendChild(_24);
+}
+}
+}
+return g;
+},render:function(_25,_26,_27,_28){
+if(!this._rerender&&this.nodes.main){
+return this.nodes.main;
+}
+this._rerender=false;
+var _29=_25.getArea();
+var _2a=1;
+var _2b="stroke:#000;stroke-width:"+_2a+"px;";
+var _2c=10;
+var _2d=_27.getCoord(this.origin,_25,_26);
+var g=this.nodes.main=document.createElement("div");
+g.setAttribute("id",this.getId());
+var _2f=this.nodes.axis=document.createElement("v:line");
+_2f.setAttribute("strokecolor","#000");
+_2f.setAttribute("strokeweight",_2a+"px");
+var s=_2f.style;
+s.position="absolute";
+s.top="0px";
+s.left="0px";
+s.antialias="false";
+if(_28=="x"){
+_2f.setAttribute("from",_29.left+"px,"+_2d+"px");
+_2f.setAttribute("to",_29.right+"px,"+_2d+"px");
+var y=_2d+Math.floor(_2c/2);
+if(this.showLines){
+g.appendChild(this.renderLines(_25,_26,_28,y));
+}
+if(this.showTicks){
+g.appendChild(this.renderTicks(_25,_26,_28,_2d));
+}
+if(this.showLabels){
+g.appendChild(this.renderLabels(_25,_26,_28,y,_2c,"center"));
+}
+if(this.showLabel&&this.label){
+var x=_25.size.width/2;
+var y=_2d+Math.round(_2c*1.5);
+var _33=document.createElement("div");
+var s=_33.style;
+_33.innerHTML=this.label;
+s.fontSize=(_2c+2)+"px";
+s.fontFamily="sans-serif";
+s.fontWeight="bold";
+s.position="absolute";
+s.top=y+"px";
+s.left=x+"px";
+s.textAlign="center";
+document.body.appendChild(_33);
+_33.style.left=x-(_33.offsetWidth/2)+"px";
+g.appendChild(_33);
+}
+}else{
+_2f.setAttribute("from",_2d+"px,"+_29.top+"px");
+_2f.setAttribute("to",_2d+"px,"+_29.bottom+"px");
+var _34=this.origin==_27.range.upper;
+var x=_2d+4;
+var _35="left";
+if(!_34){
+x=_29.right-_2d+_2c+4;
+_35="right";
+if(_2d==_29.left){
+x+=(_2c*2)-(_2c/2);
+}
+}
+if(this.showLines){
+g.appendChild(this.renderLines(_25,_26,_28,x));
+}
+if(this.showTicks){
+g.appendChild(this.renderTicks(_25,_26,_28,_2d));
+}
+if(this.showLabels){
+g.appendChild(this.renderLabels(_25,_26,_28,x,_2c,_35));
+}
+if(this.showLabel&&this.label){
+x+=(_2c*2)-2;
+var y=_25.size.height/2;
+var _33=document.createElement("div");
+var s=_33.style;
+_33.innerHTML=this.label;
+s.fontSize=(_2c+2)+"px";
+s.fontFamily="sans-serif";
+s.fontWeight="bold";
+s.position="absolute";
+s.height=_25.size.height+"px";
+s.writingMode="tb-rl";
+s.textAlign="center";
+s[_35]=x+"px";
+document.body.appendChild(_33);
+s.top=y-(_33.offsetHeight/2)+"px";
+g.appendChild(_33);
+}
+}
+g.appendChild(_2f);
+return g;
+}});
+}

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Axis.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Axis.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Axis.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/PlotArea.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/PlotArea.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/PlotArea.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/PlotArea.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,56 @@
+dojo.provide("dojo.charting.vml.PlotArea");
+dojo.require("dojo.lang.common");
+if(dojo.render.vml.capable){
+dojo.extend(dojo.charting.PlotArea,{resize:function(){
+var a=this.getArea();
+this.nodes.area.style.width=this.size.width+"px";
+this.nodes.area.style.height=this.size.height+"px";
+this.nodes.background.style.width=this.size.width+"px";
+this.nodes.background.style.height=this.size.height+"px";
+this.nodes.plots.width=this.size.width+"px";
+this.nodes.plots.height=this.size.height+"px";
+this.nodes.plots.style.clip="rect("+a.top+" "+a.right+" "+a.bottom+" "+a.left+")";
+if(this.nodes.axes){
+this.nodes.area.removeChild(this.nodes.axes);
+}
+var _2=this.nodes.axes=document.createElement("div");
+_2.id=this.getId()+"-axes";
+this.nodes.area.appendChild(_2);
+var ax=this.getAxes();
+for(var p in ax){
+var _5=ax[p];
+_2.appendChild(_5.axis.initialize(this,_5.plot,_5.drawAgainst,_5.plane));
+}
+},initializePlot:function(_6){
+_6.destroy();
+_6.dataNode=document.createElement("div");
+_6.dataNode.id=_6.getId();
+return _6.dataNode;
+},initialize:function(){
+this.destroy();
+var _7=this.nodes.main=document.createElement("div");
+var _8=this.nodes.area=document.createElement("div");
+_8.id=this.getId();
+_8.style.position="absolute";
+_7.appendChild(_8);
+var bg=this.nodes.background=document.createElement("div");
+bg.id=this.getId()+"-background";
+bg.style.position="absolute";
+bg.style.top="0px";
+bg.style.left="0px";
+bg.style.backgroundColor="#fff";
+_8.appendChild(bg);
+var a=this.getArea();
+var _b=this.nodes.plots=document.createElement("div");
+_b.id=this.getId()+"-plots";
+_b.style.position="absolute";
+_b.style.top="0px";
+_b.style.left="0px";
+_8.appendChild(_b);
+for(var i=0;i<this.plots.length;i++){
+_b.appendChild(this.initializePlot(this.plots[i]));
+}
+this.resize();
+return _7;
+}});
+}

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/PlotArea.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/PlotArea.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/PlotArea.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Plotters.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Plotters.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Plotters.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Plotters.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,876 @@
+dojo.provide("dojo.charting.vml.Plotters");
+dojo.require("dojo.lang.common");
+if(dojo.render.vml.capable){
+dojo.mixin(dojo.charting.Plotters,{_group:function(_1){
+var _2=document.createElement("div");
+_2.style.position="absolute";
+_2.style.top="0px";
+_2.style.left="0px";
+_2.style.width=_1.size.width+"px";
+_2.style.height=_1.size.height+"px";
+return _2;
+},Bar:function(_3,_4,_5,_6){
+var _7=_3.getArea();
+var _8=dojo.charting.Plotters._group(_3);
+var n=_4.series.length;
+var _a=[];
+for(var i=0;i<n;i++){
+var _c=_4.series[i].data.evaluate(_5);
+_a.push(_c);
+}
+var _d=8;
+var _e=_a[0].length;
+if(_e==0){
+return _8;
+}
+var _f=((_7.right-_7.left)-(_d*(_e-1)))/_e;
+var _10=Math.round(_f/n);
+var _11=_4.axisY.getCoord(_4.axisX.origin,_3,_4);
+for(var i=0;i<_e;i++){
+var _12=_7.left+(_f*i)+(_d*i);
+for(var j=0;j<n;j++){
+var _14=_a[j][i].y;
+var yA=_11;
+var x=_12+(_10*j);
+var y=_4.axisY.getCoord(_14,_3,_4);
+var h=Math.abs(yA-y);
+if(_14<_4.axisX.origin){
+yA=y;
+y=_11;
+}
+var bar=document.createElement("v:rect");
+bar.style.position="absolute";
+bar.style.top=y+1+"px";
+bar.style.left=x+"px";
+bar.style.width=_10+"px";
+bar.style.height=h+"px";
+bar.setAttribute("fillColor",_a[j][i].series.color);
+bar.setAttribute("stroked","false");
+bar.style.antialias="false";
+var _1a=document.createElement("v:fill");
+_1a.setAttribute("opacity","0.6");
+bar.appendChild(_1a);
+if(_6){
+_6(bar,_a[j][i].src);
+}
+_8.appendChild(bar);
+}
+}
+return _8;
+},HorizontalBar:function(_1b,_1c,_1d,_1e){
+var _1f=_1b.getArea();
+var _20=dojo.charting.Plotters._group(_1b);
+var n=_1c.series.length;
+var _22=[];
+for(var i=0;i<n;i++){
+var tmp=_1c.series[i].data.evaluate(_1d);
+_22.push(tmp);
+}
+var _25=6;
+var _26=_22[0].length;
+if(_26==0){
+return _20;
+}
+var h=((_1f.bottom-_1f.top)-(_25*(_26-1)))/_26;
+var _28=h/n;
+var _29=_1c.axisX.getCoord(0,_1b,_1c);
+for(var i=0;i<_26;i++){
+var _2a=_1f.top+(h*i)+(_25*i);
+for(var j=0;j<n;j++){
+var _2c=_22[j][i].y;
+var y=_2a+(_28*j);
+var xA=_29;
+var x=_1c.axisX.getCoord(_2c,_1b,_1c);
+var w=Math.abs(x-xA);
+if(_2c>0){
+x=_29;
+}
+var bar=document.createElement("v:rect");
+bar.style.position="absolute";
+bar.style.top=y+1+"px";
+bar.style.left=xA+"px";
+bar.style.width=w+"px";
+bar.style.height=_28+"px";
+bar.setAttribute("fillColor",_22[j][i].series.color);
+bar.setAttribute("stroked","false");
+bar.style.antialias="false";
+var _32=document.createElement("v:fill");
+_32.setAttribute("opacity","0.6");
+bar.appendChild(_32);
+if(_1e){
+_1e(bar,_22[j][i].src);
+}
+_20.appendChild(bar);
+}
+}
+var _25=4;
+var n=_1c.series.length;
+var h=((_1f.bottom-_1f.top)-(_25*(n-1)))/n;
+var _29=_1c.axisX.getCoord(0,_1b,_1c);
+for(var i=0;i<n;i++){
+var _33=_1c.series[i];
+var _22=_33.data.evaluate(_1d);
+var y=_1f.top+(h*i)+(_25*i);
+var _2c=_22[_22.length-1].y;
+var xA=_29;
+var x=_1c.axisX.getCoord(_2c,_1b,_1c);
+var w=Math.abs(xA-x);
+if(_2c>0){
+xA=x;
+x=_29;
+}
+}
+return _20;
+},Gantt:function(_34,_35,_36,_37){
+var _38=_34.getArea();
+var _39=dojo.charting.Plotters._group(_34);
+var n=_35.series.length;
+var _3b=[];
+for(var i=0;i<n;i++){
+var tmp=_35.series[i].data.evaluate(_36);
+_3b.push(tmp);
+}
+var _3e=2;
+var _3f=_3b[0].length;
+if(_3f==0){
+return _39;
+}
+var h=((_38.bottom-_38.top)-(_3e*(_3f-1)))/_3f;
+var _41=h/n;
+for(var i=0;i<_3f;i++){
+var _42=_38.top+(h*i)+(_3e*i);
+for(var j=0;j<n;j++){
+var _44=_3b[j][i].high;
+var low=_3b[j][i].low;
+if(low>_44){
+var t=_44;
+_44=low;
+low=t;
+}
+var x=_35.axisX.getCoord(low,_34,_35);
+var w=_35.axisX.getCoord(_44,_34,_35)-x;
+var y=_42+(_41*j);
+var bar=document.createElement("v:rect");
+bar.style.position="absolute";
+bar.style.top=y+1+"px";
+bar.style.left=x+"px";
+bar.style.width=w+"px";
+bar.style.height=_41+"px";
+bar.setAttribute("fillColor",_3b[j][i].series.color);
+bar.setAttribute("stroked","false");
+bar.style.antialias="false";
+var _4b=document.createElement("v:fill");
+_4b.setAttribute("opacity","0.6");
+bar.appendChild(_4b);
+if(_37){
+_37(bar,_3b[j][i].src);
+}
+_39.appendChild(bar);
+}
+}
+return _39;
+},StackedArea:function(_4c,_4d,_4e,_4f){
+var _50=_4c.getArea();
+var _51=dojo.charting.Plotters._group(_4c);
+var n=_4d.series.length;
+var _53=[];
+var _54=[];
+for(var i=0;i<n;i++){
+var tmp=_4d.series[i].data.evaluate(_4e);
+for(var j=0;j<tmp.length;j++){
+if(i==0){
+_54.push(tmp[j].y);
+}else{
+_54[j]+=tmp[j].y;
+}
+tmp[j].y=_54[j];
+}
+_53.push(tmp);
+}
+for(var i=n-1;i>=0;i--){
+var _58=document.createElement("v:shape");
+_58.setAttribute("strokeweight","1px");
+_58.setAttribute("strokecolor",_53[i][0].series.color);
+_58.setAttribute("fillcolor",_53[i][0].series.color);
+_58.setAttribute("coordsize",(_50.right-_50.left)+","+(_50.bottom-_50.top));
+_58.style.position="absolute";
+_58.style.top="0px";
+_58.style.left="0px";
+_58.style.width=_50.right-_50.left+"px";
+_58.style.height=_50.bottom-_50.top+"px";
+var _59=document.createElement("v:stroke");
+_59.setAttribute("opacity","0.8");
+_58.appendChild(_59);
+var _5a=document.createElement("v:fill");
+_5a.setAttribute("opacity","0.4");
+_58.appendChild(_5a);
+var cmd=[];
+var r=3;
+for(var j=0;j<_53[i].length;j++){
+var _5d=_53[i];
+var x=Math.round(_4d.axisX.getCoord(_5d[j].x,_4c,_4d));
+var y=Math.round(_4d.axisY.getCoord(_5d[j].y,_4c,_4d));
+if(j==0){
+cmd.push("m");
+cmd.push(x+","+y);
+}else{
+cmd.push("l");
+cmd.push(x+","+y);
+}
+var c=document.createElement("v:oval");
+c.setAttribute("strokeweight","1px");
+c.setAttribute("strokecolor",_5d[j].series.color);
+c.setAttribute("fillcolor",_5d[j].series.color);
+var str=document.createElement("v:stroke");
+str.setAttribute("opacity","0.8");
+c.appendChild(str);
+str=document.createElement("v:fill");
+str.setAttribute("opacity","0.6");
+c.appendChild(str);
+var s=c.style;
+s.position="absolute";
+s.top=(y-r)+"px";
+s.left=(x-r)+"px";
+s.width=(r*2)+"px";
+s.height=(r*2)+"px";
+_51.appendChild(c);
+if(_4f){
+_4f(c,_53[j].src);
+}
+}
+if(i==0){
+cmd.push("l");
+cmd.push(x+","+Math.round(_4d.axisY.getCoord(_4d.axisX.origin,_4c,_4d)));
+cmd.push("l");
+cmd.push(Math.round(_4d.axisX.getCoord(_53[0][0].x,_4c,_4d))+","+Math.round(_4d.axisY.getCoord(_4d.axisX.origin,_4c,_4d)));
+}else{
+var _5d=_53[i-1];
+cmd.push("l");
+cmd.push(x+","+Math.round(_4d.axisY.getCoord(_5d[_5d.length-1].y,_4c,_4d)));
+for(var j=_5d.length-2;j>=0;j--){
+var x=Math.round(_4d.axisX.getCoord(_5d[j].x,_4c,_4d));
+var y=Math.round(_4d.axisY.getCoord(_5d[j].y,_4c,_4d));
+cmd.push("l");
+cmd.push(x+","+y);
+}
+}
+_58.setAttribute("path",cmd.join(" ")+" x e");
+_51.appendChild(_58);
+}
+return _51;
+},StackedCurvedArea:function(_63,_64,_65,_66){
+var _67=3;
+var _68=_63.getArea();
+var _69=dojo.charting.Plotters._group(_63);
+var n=_64.series.length;
+var _6b=[];
+var _6c=[];
+for(var i=0;i<n;i++){
+var tmp=_64.series[i].data.evaluate(_65);
+for(var j=0;j<tmp.length;j++){
+if(i==0){
+_6c.push(tmp[j].y);
+}else{
+_6c[j]+=tmp[j].y;
+}
+tmp[j].y=_6c[j];
+}
+_6b.push(tmp);
+}
+for(var i=n-1;i>=0;i--){
+var _70=document.createElement("v:shape");
+_70.setAttribute("strokeweight","1px");
+_70.setAttribute("strokecolor",_6b[i][0].series.color);
+_70.setAttribute("fillcolor",_6b[i][0].series.color);
+_70.setAttribute("coordsize",(_68.right-_68.left)+","+(_68.bottom-_68.top));
+_70.style.position="absolute";
+_70.style.top="0px";
+_70.style.left="0px";
+_70.style.width=_68.right-_68.left+"px";
+_70.style.height=_68.bottom-_68.top+"px";
+var _71=document.createElement("v:stroke");
+_71.setAttribute("opacity","0.8");
+_70.appendChild(_71);
+var _72=document.createElement("v:fill");
+_72.setAttribute("opacity","0.4");
+_70.appendChild(_72);
+var cmd=[];
+var r=3;
+for(var j=0;j<_6b[i].length;j++){
+var _75=_6b[i];
+var x=Math.round(_64.axisX.getCoord(_75[j].x,_63,_64));
+var y=Math.round(_64.axisY.getCoord(_75[j].y,_63,_64));
+if(j==0){
+cmd.push("m");
+cmd.push(x+","+y);
+}else{
+var _78=Math.round(_64.axisX.getCoord(_75[j-1].x,_63,_64));
+var _79=Math.round(_64.axisY.getCoord(_75[j-1].y,_63,_64));
+var dx=x-_78;
+var dy=y-_79;
+cmd.push("c");
+var cx=Math.round((x-(_67-1)*(dx/_67)));
+cmd.push(cx+","+_79);
+cx=Math.round((x-(dx/_67)));
+cmd.push(cx+","+y);
+cmd.push(x+","+y);
+}
+var c=document.createElement("v:oval");
+c.setAttribute("strokeweight","1px");
+c.setAttribute("strokecolor",_75[j].series.color);
+c.setAttribute("fillcolor",_75[j].series.color);
+var str=document.createElement("v:stroke");
+str.setAttribute("opacity","0.8");
+c.appendChild(str);
+str=document.createElement("v:fill");
+str.setAttribute("opacity","0.6");
+c.appendChild(str);
+var s=c.style;
+s.position="absolute";
+s.top=(y-r)+"px";
+s.left=(x-r)+"px";
+s.width=(r*2)+"px";
+s.height=(r*2)+"px";
+_69.appendChild(c);
+if(_66){
+_66(c,_6b[j].src);
+}
+}
+if(i==0){
+cmd.push("l");
+cmd.push(x+","+Math.round(_64.axisY.getCoord(_64.axisX.origin,_63,_64)));
+cmd.push("l");
+cmd.push(Math.round(_64.axisX.getCoord(_6b[0][0].x,_63,_64))+","+Math.round(_64.axisY.getCoord(_64.axisX.origin,_63,_64)));
+}else{
+var _75=_6b[i-1];
+cmd.push("l");
+cmd.push(x+","+Math.round(_64.axisY.getCoord(_75[_75.length-1].y,_63,_64)));
+for(var j=_75.length-2;j>=0;j--){
+var x=Math.round(_64.axisX.getCoord(_75[j].x,_63,_64));
+var y=Math.round(_64.axisY.getCoord(_75[j].y,_63,_64));
+var _78=Math.round(_64.axisX.getCoord(_75[j+1].x,_63,_64));
+var _79=Math.round(_64.axisY.getCoord(_75[j+1].y,_63,_64));
+var dx=x-_78;
+var dy=y-_79;
+cmd.push("c");
+var cx=Math.round((x-(_67-1)*(dx/_67)));
+cmd.push(cx+","+_79);
+cx=Math.round((x-(dx/_67)));
+cmd.push(cx+","+y);
+cmd.push(x+","+y);
+}
+}
+_70.setAttribute("path",cmd.join(" ")+" x e");
+_69.appendChild(_70);
+}
+return _69;
+},DataBar:function(_80,_81,_82,_83){
+var _84=_81.getArea();
+var _85=dojo.charting.Plotters._group(_81);
+var n=_80.length;
+var w=(_84.right-_84.left)/(_82.axisX.range.upper-_82.axisX.range.lower);
+var _88=_82.axisY.getCoord(_82.axisX.origin,_81,_82);
+for(var i=0;i<n;i++){
+var _8a=_80[i].y;
+var yA=_88;
+var x=_82.axisX.getCoord(_80[i].x,_81,_82)-(w/2)+1;
+var y=_82.axisY.getCoord(_8a,_81,_82);
+var h=Math.abs(yA-y);
+if(_8a<_82.axisX.origin){
+yA=y;
+y=_88;
+}
+var bar=document.createElement("v:rect");
+bar.style.position="absolute";
+bar.style.top=y+1+"px";
+bar.style.left=x+"px";
+bar.style.width=w+"px";
+bar.style.height=h+"px";
+bar.setAttribute("fillColor",_80[i].series.color);
+bar.setAttribute("stroked","false");
+bar.style.antialias="false";
+var _90=document.createElement("v:fill");
+_90.setAttribute("opacity","0.6");
+bar.appendChild(_90);
+if(_83){
+_83(bar,_80[i].src);
+}
+_85.appendChild(bar);
+}
+return _85;
+},Line:function(_91,_92,_93,_94){
+var _95=_92.getArea();
+var _96=dojo.charting.Plotters._group(_92);
+if(_91.length==0){
+return _96;
+}
+var _97=document.createElement("v:shape");
+_97.setAttribute("strokeweight","2px");
+_97.setAttribute("strokecolor",_91[0].series.color);
+_97.setAttribute("fillcolor","none");
+_97.setAttribute("filled","false");
+_97.setAttribute("coordsize",(_95.right-_95.left)+","+(_95.bottom-_95.top));
+_97.style.position="absolute";
+_97.style.top="0px";
+_97.style.left="0px";
+_97.style.width=_95.right-_95.left+"px";
+_97.style.height=_95.bottom-_95.top+"px";
+var _98=document.createElement("v:stroke");
+_98.setAttribute("opacity","0.8");
+_97.appendChild(_98);
+var cmd=[];
+var r=3;
+for(var i=0;i<_91.length;i++){
+var x=Math.round(_93.axisX.getCoord(_91[i].x,_92,_93));
+var y=Math.round(_93.axisY.getCoord(_91[i].y,_92,_93));
+if(i==0){
+cmd.push("m");
+cmd.push(x+","+y);
+}else{
+cmd.push("l");
+cmd.push(x+","+y);
+}
+var c=document.createElement("v:oval");
+c.setAttribute("strokeweight","1px");
+c.setAttribute("strokecolor",_91[i].series.color);
+c.setAttribute("fillcolor",_91[i].series.color);
+var str=document.createElement("v:stroke");
+str.setAttribute("opacity","0.8");
+c.appendChild(str);
+str=document.createElement("v:fill");
+str.setAttribute("opacity","0.6");
+c.appendChild(str);
+var s=c.style;
+s.position="absolute";
+s.top=(y-r)+"px";
+s.left=(x-r)+"px";
+s.width=(r*2)+"px";
+s.height=(r*2)+"px";
+_96.appendChild(c);
+if(_94){
+_94(c,_91[i].src);
+}
+}
+_97.setAttribute("path",cmd.join(" ")+" e");
+_96.appendChild(_97);
+return _96;
+},CurvedLine:function(_a1,_a2,_a3,_a4){
+var _a5=3;
+var _a6=_a2.getArea();
+var _a7=dojo.charting.Plotters._group(_a2);
+if(_a1.length==0){
+return _a7;
+}
+var _a8=document.createElement("v:shape");
+_a8.setAttribute("strokeweight","2px");
+_a8.setAttribute("strokecolor",_a1[0].series.color);
+_a8.setAttribute("fillcolor","none");
+_a8.setAttribute("filled","false");
+_a8.setAttribute("coordsize",(_a6.right-_a6.left)+","+(_a6.bottom-_a6.top));
+_a8.style.position="absolute";
+_a8.style.top="0px";
+_a8.style.left="0px";
+_a8.style.width=_a6.right-_a6.left+"px";
+_a8.style.height=_a6.bottom-_a6.top+"px";
+var _a9=document.createElement("v:stroke");
+_a9.setAttribute("opacity","0.8");
+_a8.appendChild(_a9);
+var cmd=[];
+var r=3;
+for(var i=0;i<_a1.length;i++){
+var x=Math.round(_a3.axisX.getCoord(_a1[i].x,_a2,_a3));
+var y=Math.round(_a3.axisY.getCoord(_a1[i].y,_a2,_a3));
+if(i==0){
+cmd.push("m");
+cmd.push(x+","+y);
+}else{
+var _af=Math.round(_a3.axisX.getCoord(_a1[i-1].x,_a2,_a3));
+var _b0=Math.round(_a3.axisY.getCoord(_a1[i-1].y,_a2,_a3));
+var dx=x-_af;
+var dy=y-_b0;
+cmd.push("c");
+var cx=Math.round((x-(_a5-1)*(dx/_a5)));
+cmd.push(cx+","+_b0);
+cx=Math.round((x-(dx/_a5)));
+cmd.push(cx+","+y);
+cmd.push(x+","+y);
+}
+var c=document.createElement("v:oval");
+c.setAttribute("strokeweight","1px");
+c.setAttribute("strokecolor",_a1[i].series.color);
+c.setAttribute("fillcolor",_a1[i].series.color);
+var str=document.createElement("v:stroke");
+str.setAttribute("opacity","0.8");
+c.appendChild(str);
+str=document.createElement("v:fill");
+str.setAttribute("opacity","0.6");
+c.appendChild(str);
+var s=c.style;
+s.position="absolute";
+s.top=(y-r)+"px";
+s.left=(x-r)+"px";
+s.width=(r*2)+"px";
+s.height=(r*2)+"px";
+_a7.appendChild(c);
+if(_a4){
+_a4(c,_a1[i].src);
+}
+}
+_a8.setAttribute("path",cmd.join(" ")+" e");
+_a7.appendChild(_a8);
+return _a7;
+},Area:function(_b7,_b8,_b9,_ba){
+var _bb=_b8.getArea();
+var _bc=dojo.charting.Plotters._group(_b8);
+if(_b7.length==0){
+return _bc;
+}
+var _bd=document.createElement("v:shape");
+_bd.setAttribute("strokeweight","1px");
+_bd.setAttribute("strokecolor",_b7[0].series.color);
+_bd.setAttribute("fillcolor",_b7[0].series.color);
+_bd.setAttribute("coordsize",(_bb.right-_bb.left)+","+(_bb.bottom-_bb.top));
+_bd.style.position="absolute";
+_bd.style.top="0px";
+_bd.style.left="0px";
+_bd.style.width=_bb.right-_bb.left+"px";
+_bd.style.height=_bb.bottom-_bb.top+"px";
+var _be=document.createElement("v:stroke");
+_be.setAttribute("opacity","0.8");
+_bd.appendChild(_be);
+var _bf=document.createElement("v:fill");
+_bf.setAttribute("opacity","0.4");
+_bd.appendChild(_bf);
+var cmd=[];
+var r=3;
+for(var i=0;i<_b7.length;i++){
+var x=Math.round(_b9.axisX.getCoord(_b7[i].x,_b8,_b9));
+var y=Math.round(_b9.axisY.getCoord(_b7[i].y,_b8,_b9));
+if(i==0){
+cmd.push("m");
+cmd.push(x+","+y);
+}else{
+cmd.push("l");
+cmd.push(x+","+y);
+}
+var c=document.createElement("v:oval");
+c.setAttribute("strokeweight","1px");
+c.setAttribute("strokecolor",_b7[i].series.color);
+c.setAttribute("fillcolor",_b7[i].series.color);
+var str=document.createElement("v:stroke");
+str.setAttribute("opacity","0.8");
+c.appendChild(str);
+str=document.createElement("v:fill");
+str.setAttribute("opacity","0.6");
+c.appendChild(str);
+var s=c.style;
+s.position="absolute";
+s.top=(y-r)+"px";
+s.left=(x-r)+"px";
+s.width=(r*2)+"px";
+s.height=(r*2)+"px";
+_bc.appendChild(c);
+if(_ba){
+_ba(c,_b7[i].src);
+}
+}
+cmd.push("l");
+cmd.push(x+","+Math.round(_b9.axisY.getCoord(_b9.axisX.origin,_b8,_b9)));
+cmd.push("l");
+cmd.push(Math.round(_b9.axisX.getCoord(_b7[0].x,_b8,_b9))+","+Math.round(_b9.axisY.getCoord(_b9.axisX.origin,_b8,_b9)));
+_bd.setAttribute("path",cmd.join(" ")+" x e");
+_bc.appendChild(_bd);
+return _bc;
+},CurvedArea:function(_c8,_c9,_ca,_cb){
+var _cc=3;
+var _cd=_c9.getArea();
+var _ce=dojo.charting.Plotters._group(_c9);
+if(_c8.length==0){
+return _ce;
+}
+var _cf=document.createElement("v:shape");
+_cf.setAttribute("strokeweight","1px");
+_cf.setAttribute("strokecolor",_c8[0].series.color);
+_cf.setAttribute("fillcolor",_c8[0].series.color);
+_cf.setAttribute("coordsize",(_cd.right-_cd.left)+","+(_cd.bottom-_cd.top));
+_cf.style.position="absolute";
+_cf.style.top="0px";
+_cf.style.left="0px";
+_cf.style.width=_cd.right-_cd.left+"px";
+_cf.style.height=_cd.bottom-_cd.top+"px";
+var _d0=document.createElement("v:stroke");
+_d0.setAttribute("opacity","0.8");
+_cf.appendChild(_d0);
+var _d1=document.createElement("v:fill");
+_d1.setAttribute("opacity","0.4");
+_cf.appendChild(_d1);
+var cmd=[];
+var r=3;
+for(var i=0;i<_c8.length;i++){
+var x=Math.round(_ca.axisX.getCoord(_c8[i].x,_c9,_ca));
+var y=Math.round(_ca.axisY.getCoord(_c8[i].y,_c9,_ca));
+if(i==0){
+cmd.push("m");
+cmd.push(x+","+y);
+}else{
+var _d7=Math.round(_ca.axisX.getCoord(_c8[i-1].x,_c9,_ca));
+var _d8=Math.round(_ca.axisY.getCoord(_c8[i-1].y,_c9,_ca));
+var dx=x-_d7;
+var dy=y-_d8;
+cmd.push("c");
+var cx=Math.round((x-(_cc-1)*(dx/_cc)));
+cmd.push(cx+","+_d8);
+cx=Math.round((x-(dx/_cc)));
+cmd.push(cx+","+y);
+cmd.push(x+","+y);
+}
+var c=document.createElement("v:oval");
+c.setAttribute("strokeweight","1px");
+c.setAttribute("strokecolor",_c8[i].series.color);
+c.setAttribute("fillcolor",_c8[i].series.color);
+var str=document.createElement("v:stroke");
+str.setAttribute("opacity","0.8");
+c.appendChild(str);
+str=document.createElement("v:fill");
+str.setAttribute("opacity","0.6");
+c.appendChild(str);
+var s=c.style;
+s.position="absolute";
+s.top=(y-r)+"px";
+s.left=(x-r)+"px";
+s.width=(r*2)+"px";
+s.height=(r*2)+"px";
+_ce.appendChild(c);
+if(_cb){
+_cb(c,_c8[i].src);
+}
+}
+cmd.push("l");
+cmd.push(x+","+Math.round(_ca.axisY.getCoord(_ca.axisX.origin,_c9,_ca)));
+cmd.push("l");
+cmd.push(Math.round(_ca.axisX.getCoord(_c8[0].x,_c9,_ca))+","+Math.round(_ca.axisY.getCoord(_ca.axisX.origin,_c9,_ca)));
+_cf.setAttribute("path",cmd.join(" ")+" x e");
+_ce.appendChild(_cf);
+return _ce;
+},HighLow:function(_df,_e0,_e1,_e2){
+var _e3=_e0.getArea();
+var _e4=dojo.charting.Plotters._group(_e0);
+var n=_df.length;
+var _e6=((_e3.right-_e3.left)/(_e1.axisX.range.upper-_e1.axisX.range.lower))/4;
+var w=_e6*2;
+for(var i=0;i<n;i++){
+var _e9=_df[i].high;
+var low=_df[i].low;
+if(low>_e9){
+var t=low;
+low=_e9;
+_e9=t;
+}
+var x=_e1.axisX.getCoord(_df[i].x,_e0,_e1)-(w/2);
+var y=_e1.axisY.getCoord(_e9,_e0,_e1);
+var h=_e1.axisY.getCoord(low,_e0,_e1)-y;
+var bar=document.createElement("v:rect");
+bar.style.position="absolute";
+bar.style.top=y+1+"px";
+bar.style.left=x+"px";
+bar.style.width=w+"px";
+bar.style.height=h+"px";
+bar.setAttribute("fillColor",_df[i].series.color);
+bar.setAttribute("stroked","false");
+bar.style.antialias="false";
+var _f0=document.createElement("v:fill");
+_f0.setAttribute("opacity","0.6");
+bar.appendChild(_f0);
+if(_e2){
+_e2(bar,_df[i].src);
+}
+_e4.appendChild(bar);
+}
+return _e4;
+},HighLowClose:function(_f1,_f2,_f3,_f4){
+var _f5=_f2.getArea();
+var _f6=dojo.charting.Plotters._group(_f2);
+var n=_f1.length;
+var _f8=((_f5.right-_f5.left)/(_f3.axisX.range.upper-_f3.axisX.range.lower))/4;
+var w=_f8*2;
+for(var i=0;i<n;i++){
+var _fb=_f1[i].high;
+var low=_f1[i].low;
+if(low>_fb){
+var t=low;
+low=_fb;
+_fb=t;
+}
+var c=_f1[i].close;
+var x=_f3.axisX.getCoord(_f1[i].x,_f2,_f3)-(w/2);
+var y=_f3.axisY.getCoord(_fb,_f2,_f3);
+var h=_f3.axisY.getCoord(low,_f2,_f3)-y;
+var _102=_f3.axisY.getCoord(c,_f2,_f3);
+var g=document.createElement("div");
+var bar=document.createElement("v:rect");
+bar.style.position="absolute";
+bar.style.top=y+1+"px";
+bar.style.left=x+"px";
+bar.style.width=w+"px";
+bar.style.height=h+"px";
+bar.setAttribute("fillColor",_f1[i].series.color);
+bar.setAttribute("stroked","false");
+bar.style.antialias="false";
+var fill=document.createElement("v:fill");
+fill.setAttribute("opacity","0.6");
+bar.appendChild(fill);
+g.appendChild(bar);
+var line=document.createElement("v:line");
+line.setAttribute("strokecolor",_f1[i].series.color);
+line.setAttribute("strokeweight","1px");
+line.setAttribute("from",x+"px,"+_102+"px");
+line.setAttribute("to",(x+w+(_f8*2)-2)+"px,"+_102+"px");
+var s=line.style;
+s.position="absolute";
+s.top="0px";
+s.left="0px";
+s.antialias="false";
+var str=document.createElement("v:stroke");
+str.setAttribute("opacity","0.6");
+line.appendChild(str);
+g.appendChild(line);
+if(_f4){
+_f4(g,_f1[i].src);
+}
+_f6.appendChild(g);
+}
+return _f6;
+},HighLowOpenClose:function(data,_10a,plot,_10c){
+var area=_10a.getArea();
+var _10e=dojo.charting.Plotters._group(_10a);
+var n=data.length;
+var part=((area.right-area.left)/(plot.axisX.range.upper-plot.axisX.range.lower))/4;
+var w=part*2;
+for(var i=0;i<n;i++){
+var high=data[i].high;
+var low=data[i].low;
+if(low>high){
+var t=low;
+low=high;
+high=t;
+}
+var o=data[i].open;
+var c=data[i].close;
+var x=plot.axisX.getCoord(data[i].x,_10a,plot)-(w/2);
+var y=plot.axisY.getCoord(high,_10a,plot);
+var h=plot.axisY.getCoord(low,_10a,plot)-y;
+var open=plot.axisY.getCoord(o,_10a,plot);
+var _11c=plot.axisY.getCoord(c,_10a,plot);
+var g=document.createElement("div");
+var bar=document.createElement("v:rect");
+bar.style.position="absolute";
+bar.style.top=y+1+"px";
+bar.style.left=x+"px";
+bar.style.width=w+"px";
+bar.style.height=h+"px";
+bar.setAttribute("fillColor",data[i].series.color);
+bar.setAttribute("stroked","false");
+bar.style.antialias="false";
+var fill=document.createElement("v:fill");
+fill.setAttribute("opacity","0.6");
+bar.appendChild(fill);
+g.appendChild(bar);
+var line=document.createElement("v:line");
+line.setAttribute("strokecolor",data[i].series.color);
+line.setAttribute("strokeweight","1px");
+line.setAttribute("from",(x-(part*2))+"px,"+open+"px");
+line.setAttribute("to",(x+w-2)+"px,"+open+"px");
+var s=line.style;
+s.position="absolute";
+s.top="0px";
+s.left="0px";
+s.antialias="false";
+var str=document.createElement("v:stroke");
+str.setAttribute("opacity","0.6");
+line.appendChild(str);
+g.appendChild(line);
+var line=document.createElement("v:line");
+line.setAttribute("strokecolor",data[i].series.color);
+line.setAttribute("strokeweight","1px");
+line.setAttribute("from",x+"px,"+_11c+"px");
+line.setAttribute("to",(x+w+(part*2)-2)+"px,"+_11c+"px");
+var s=line.style;
+s.position="absolute";
+s.top="0px";
+s.left="0px";
+s.antialias="false";
+var str=document.createElement("v:stroke");
+str.setAttribute("opacity","0.6");
+line.appendChild(str);
+g.appendChild(line);
+if(_10c){
+_10c(g,data[i].src);
+}
+_10e.appendChild(g);
+}
+return _10e;
+},Scatter:function(data,_124,plot,_126){
+var r=6;
+var mod=r/2;
+var area=_124.getArea();
+var _12a=dojo.charting.Plotters._group(_124);
+for(var i=0;i<data.length;i++){
+var x=Math.round(plot.axisX.getCoord(data[i].x,_124,plot));
+var y=Math.round(plot.axisY.getCoord(data[i].y,_124,plot));
+var _12e=document.createElement("v:rect");
+_12e.setAttribute("strokecolor",data[i].series.color);
+_12e.setAttribute("fillcolor",data[i].series.color);
+var fill=document.createElement("v:fill");
+fill.setAttribute("opacity","0.6");
+_12e.appendChild(fill);
+var s=_12e.style;
+s.position="absolute";
+s.rotation="45";
+s.top=(y-mod)+"px";
+s.left=(x-mod)+"px";
+s.width=r+"px";
+s.height=r+"px";
+_12a.appendChild(_12e);
+if(_126){
+_126(_12e,data[i].src);
+}
+}
+return _12a;
+},Bubble:function(data,_132,plot,_134){
+var _135=1;
+var area=_132.getArea();
+var _137=dojo.charting.Plotters._group(_132);
+for(var i=0;i<data.length;i++){
+var x=Math.round(plot.axisX.getCoord(data[i].x,_132,plot));
+var y=Math.round(plot.axisY.getCoord(data[i].y,_132,plot));
+if(i==0){
+var raw=data[i].size;
+var dy=plot.axisY.getCoord(data[i].y+raw,_132,plot)-y;
+_135=dy/raw;
+}
+if(_135<1){
+_135=1;
+}
+var r=(data[i].size/2)*_135;
+var _13e=document.createElement("v:oval");
+_13e.setAttribute("strokecolor",data[i].series.color);
+_13e.setAttribute("fillcolor",data[i].series.color);
+var fill=document.createElement("v:fill");
+fill.setAttribute("opacity","0.6");
+_13e.appendChild(fill);
+var s=_13e.style;
+s.position="absolute";
+s.rotation="45";
+s.top=(y-r)+"px";
+s.left=(x-r)+"px";
+s.width=(r*2)+"px";
+s.height=(r*2)+"px";
+_137.appendChild(_13e);
+if(_134){
+_134(_13e,data[i].src);
+}
+}
+return _137;
+}});
+dojo.charting.Plotters["Default"]=dojo.charting.Plotters.Line;
+}

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Plotters.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Plotters.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/charting/vml/Plotters.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/ArrayList.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/ArrayList.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/ArrayList.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/ArrayList.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,101 @@
+dojo.provide("dojo.collections.ArrayList");
+dojo.require("dojo.collections.Collections");
+dojo.collections.ArrayList=function(_1){
+var _2=[];
+if(_1){
+_2=_2.concat(_1);
+}
+this.count=_2.length;
+this.add=function(_3){
+_2.push(_3);
+this.count=_2.length;
+};
+this.addRange=function(a){
+if(a.getIterator){
+var e=a.getIterator();
+while(!e.atEnd()){
+this.add(e.get());
+}
+this.count=_2.length;
+}else{
+for(var i=0;i<a.length;i++){
+_2.push(a[i]);
+}
+this.count=_2.length;
+}
+};
+this.clear=function(){
+_2.splice(0,_2.length);
+this.count=0;
+};
+this.clone=function(){
+return new dojo.collections.ArrayList(_2);
+};
+this.contains=function(_7){
+for(var i=0;i<_2.length;i++){
+if(_2[i]==_7){
+return true;
+}
+}
+return false;
+};
+this.forEach=function(fn,_a){
+var s=_a||dj_global;
+if(Array.forEach){
+Array.forEach(_2,fn,s);
+}else{
+for(var i=0;i<_2.length;i++){
+fn.call(s,_2[i],i,_2);
+}
+}
+};
+this.getIterator=function(){
+return new dojo.collections.Iterator(_2);
+};
+this.indexOf=function(_d){
+for(var i=0;i<_2.length;i++){
+if(_2[i]==_d){
+return i;
+}
+}
+return -1;
+};
+this.insert=function(i,obj){
+_2.splice(i,0,obj);
+this.count=_2.length;
+};
+this.item=function(i){
+return _2[i];
+};
+this.remove=function(obj){
+var i=this.indexOf(obj);
+if(i>=0){
+_2.splice(i,1);
+}
+this.count=_2.length;
+};
+this.removeAt=function(i){
+_2.splice(i,1);
+this.count=_2.length;
+};
+this.reverse=function(){
+_2.reverse();
+};
+this.sort=function(fn){
+if(fn){
+_2.sort(fn);
+}else{
+_2.sort();
+}
+};
+this.setByIndex=function(i,obj){
+_2[i]=obj;
+this.count=_2.length;
+};
+this.toArray=function(){
+return [].concat(_2);
+};
+this.toString=function(_18){
+return _2.join((_18||","));
+};
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/ArrayList.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/ArrayList.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/ArrayList.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/BinaryTree.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/BinaryTree.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/BinaryTree.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/BinaryTree.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,244 @@
+dojo.provide("dojo.collections.BinaryTree");
+dojo.require("dojo.collections.Collections");
+dojo.require("dojo.experimental");
+dojo.experimental("dojo.collections.BinaryTree");
+dojo.collections.BinaryTree=function(_1){
+function node(_2,_3,_4){
+this.value=_2||null;
+this.right=_3||null;
+this.left=_4||null;
+this.clone=function(){
+var c=new node();
+if(this.value.value){
+c.value=this.value.clone();
+}else{
+c.value=this.value;
+}
+if(this.left){
+c.left=this.left.clone();
+}
+if(this.right){
+c.right=this.right.clone();
+}
+};
+this.compare=function(n){
+if(this.value>n.value){
+return 1;
+}
+if(this.value<n.value){
+return -1;
+}
+return 0;
+};
+this.compareData=function(d){
+if(this.value>d){
+return 1;
+}
+if(this.value<d){
+return -1;
+}
+return 0;
+};
+}
+function inorderTraversalBuildup(_8,a){
+if(_8){
+inorderTraversalBuildup(_8.left,a);
+a.add(_8);
+inorderTraversalBuildup(_8.right,a);
+}
+}
+function preorderTraversal(_a,_b){
+var s="";
+if(_a){
+s=_a.value.toString()+_b;
+s+=preorderTraversal(_a.left,_b);
+s+=preorderTraversal(_a.right,_b);
+}
+return s;
+}
+function inorderTraversal(_d,_e){
+var s="";
+if(_d){
+s=inorderTraversal(_d.left,_e);
+s+=_d.value.toString()+_e;
+s+=inorderTraversal(_d.right,_e);
+}
+return s;
+}
+function postorderTraversal(_10,sep){
+var s="";
+if(_10){
+s=postorderTraversal(_10.left,sep);
+s+=postorderTraversal(_10.right,sep);
+s+=_10.value.toString()+sep;
+}
+return s;
+}
+function searchHelper(_13,_14){
+if(!_13){
+return null;
+}
+var i=_13.compareData(_14);
+if(i==0){
+return _13;
+}
+if(i>0){
+return searchHelper(_13.left,_14);
+}else{
+return searchHelper(_13.right,_14);
+}
+}
+this.add=function(_16){
+var n=new node(_16);
+var i;
+var _19=_1a;
+var _1b=null;
+while(_19){
+i=_19.compare(n);
+if(i==0){
+return;
+}
+_1b=_19;
+if(i>0){
+_19=_19.left;
+}else{
+_19=_19.right;
+}
+}
+this.count++;
+if(!_1b){
+_1a=n;
+}else{
+i=_1b.compare(n);
+if(i>0){
+_1b.left=n;
+}else{
+_1b.right=n;
+}
+}
+};
+this.clear=function(){
+_1a=null;
+this.count=0;
+};
+this.clone=function(){
+var c=new dojo.collections.BinaryTree();
+c.root=_1a.clone();
+c.count=this.count;
+return c;
+};
+this.contains=function(_1d){
+return this.search(_1d)!=null;
+};
+this.deleteData=function(_1e){
+var _1f=_1a;
+var _20=null;
+var i=_1f.compareData(_1e);
+while(i!=0&&_1f!=null){
+if(i>0){
+_20=_1f;
+_1f=_1f.left;
+}else{
+if(i<0){
+_20=_1f;
+_1f=_1f.right;
+}
+}
+i=_1f.compareData(_1e);
+}
+if(!_1f){
+return;
+}
+this.count--;
+if(!_1f.right){
+if(!_20){
+_1a=_1f.left;
+}else{
+i=_20.compare(_1f);
+if(i>0){
+_20.left=_1f.left;
+}else{
+if(i<0){
+_20.right=_1f.left;
+}
+}
+}
+}else{
+if(!_1f.right.left){
+if(!_20){
+_1a=_1f.right;
+}else{
+i=_20.compare(_1f);
+if(i>0){
+_20.left=_1f.right;
+}else{
+if(i<0){
+_20.right=_1f.right;
+}
+}
+}
+}else{
+var _22=_1f.right.left;
+var _23=_1f.right;
+while(_22.left!=null){
+_23=_22;
+_22=_22.left;
+}
+_23.left=_22.right;
+_22.left=_1f.left;
+_22.right=_1f.right;
+if(!_20){
+_1a=_22;
+}else{
+i=_20.compare(_1f);
+if(i>0){
+_20.left=_22;
+}else{
+if(i<0){
+_20.right=_22;
+}
+}
+}
+}
+}
+};
+this.getIterator=function(){
+var a=[];
+inorderTraversalBuildup(_1a,a);
+return new dojo.collections.Iterator(a);
+};
+this.search=function(_25){
+return searchHelper(_1a,_25);
+};
+this.toString=function(_26,sep){
+if(!_26){
+var _26=dojo.collections.BinaryTree.TraversalMethods.Inorder;
+}
+if(!sep){
+var sep=" ";
+}
+var s="";
+switch(_26){
+case dojo.collections.BinaryTree.TraversalMethods.Preorder:
+s=preorderTraversal(_1a,sep);
+break;
+case dojo.collections.BinaryTree.TraversalMethods.Inorder:
+s=inorderTraversal(_1a,sep);
+break;
+case dojo.collections.BinaryTree.TraversalMethods.Postorder:
+s=postorderTraversal(_1a,sep);
+break;
+}
+if(s.length==0){
+return "";
+}else{
+return s.substring(0,s.length-sep.length);
+}
+};
+this.count=0;
+var _1a=this.root=null;
+if(_1){
+this.add(_1);
+}
+};
+dojo.collections.BinaryTree.TraversalMethods={Preorder:1,Inorder:2,Postorder:3};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/BinaryTree.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/BinaryTree.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/BinaryTree.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Collections.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Collections.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Collections.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Collections.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,79 @@
+dojo.provide("dojo.collections.Collections");
+dojo.collections.DictionaryEntry=function(k,v){
+this.key=k;
+this.value=v;
+this.valueOf=function(){
+return this.value;
+};
+this.toString=function(){
+return String(this.value);
+};
+};
+dojo.collections.Iterator=function(_3){
+var a=_3;
+var _5=0;
+this.element=a[_5]||null;
+this.atEnd=function(){
+return (_5>=a.length);
+};
+this.get=function(){
+if(this.atEnd()){
+return null;
+}
+this.element=a[_5++];
+return this.element;
+};
+this.map=function(fn,_7){
+var s=_7||dj_global;
+if(Array.map){
+return Array.map(a,fn,s);
+}else{
+var _9=[];
+for(var i=0;i<a.length;i++){
+_9.push(fn.call(s,a[i]));
+}
+return _9;
+}
+};
+this.reset=function(){
+_5=0;
+this.element=a[_5];
+};
+};
+dojo.collections.DictionaryIterator=function(_b){
+var a=[];
+var _d={};
+for(var p in _b){
+if(!_d[p]){
+a.push(_b[p]);
+}
+}
+var _f=0;
+this.element=a[_f]||null;
+this.atEnd=function(){
+return (_f>=a.length);
+};
+this.get=function(){
+if(this.atEnd()){
+return null;
+}
+this.element=a[_f++];
+return this.element;
+};
+this.map=function(fn,_11){
+var s=_11||dj_global;
+if(Array.map){
+return Array.map(a,fn,s);
+}else{
+var arr=[];
+for(var i=0;i<a.length;i++){
+arr.push(fn.call(s,a[i]));
+}
+return arr;
+}
+};
+this.reset=function(){
+_f=0;
+this.element=a[_f];
+};
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Collections.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Collections.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Collections.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Dictionary.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Dictionary.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Dictionary.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Dictionary.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,88 @@
+dojo.provide("dojo.collections.Dictionary");
+dojo.require("dojo.collections.Collections");
+dojo.collections.Dictionary=function(_1){
+var _2={};
+this.count=0;
+var _3={};
+this.add=function(k,v){
+var b=(k in _2);
+_2[k]=new dojo.collections.DictionaryEntry(k,v);
+if(!b){
+this.count++;
+}
+};
+this.clear=function(){
+_2={};
+this.count=0;
+};
+this.clone=function(){
+return new dojo.collections.Dictionary(this);
+};
+this.contains=this.containsKey=function(k){
+if(_3[k]){
+return false;
+}
+return (_2[k]!=null);
+};
+this.containsValue=function(v){
+var e=this.getIterator();
+while(e.get()){
+if(e.element.value==v){
+return true;
+}
+}
+return false;
+};
+this.entry=function(k){
+return _2[k];
+};
+this.forEach=function(fn,_c){
+var a=[];
+for(var p in _2){
+if(!_3[p]){
+a.push(_2[p]);
+}
+}
+var s=_c||dj_global;
+if(Array.forEach){
+Array.forEach(a,fn,s);
+}else{
+for(var i=0;i<a.length;i++){
+fn.call(s,a[i],i,a);
+}
+}
+};
+this.getKeyList=function(){
+return (this.getIterator()).map(function(_11){
+return _11.key;
+});
+};
+this.getValueList=function(){
+return (this.getIterator()).map(function(_12){
+return _12.value;
+});
+};
+this.item=function(k){
+if(k in _2){
+return _2[k].valueOf();
+}
+return undefined;
+};
+this.getIterator=function(){
+return new dojo.collections.DictionaryIterator(_2);
+};
+this.remove=function(k){
+if(k in _2&&!_3[k]){
+delete _2[k];
+this.count--;
+return true;
+}
+return false;
+};
+if(_1){
+var e=_1.getIterator();
+while(e.get()){
+this.add(e.element.key,e.element.value);
+}
+}
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Dictionary.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Dictionary.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Dictionary.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Graph.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Graph.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Graph.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Graph.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,138 @@
+dojo.provide("dojo.collections.Graph");
+dojo.require("dojo.collections.Collections");
+dojo.experimental("dojo.collections.Graph");
+dojo.collections.Graph=function(_1){
+function node(_2,_3,_4){
+this.key=_2;
+this.data=_3;
+this.neighbors=_4||new adjacencyList();
+this.addDirected=function(){
+if(arguments[0].constructor==edgeToNeighbor){
+this.neighbors.add(arguments[0]);
+}else{
+var n=arguments[0];
+var _6=arguments[1]||0;
+this.neighbors.add(new edgeToNeighbor(n,_6));
+}
+};
+}
+function nodeList(){
+var d=new dojo.collections.Dictionary();
+function nodelistiterator(){
+var o=[];
+var e=d.getIterator();
+while(e.get()){
+o[o.length]=e.element;
+}
+var _a=0;
+this.element=o[_a]||null;
+this.atEnd=function(){
+return (_a>=o.length);
+};
+this.get=function(){
+if(this.atEnd()){
+return null;
+}
+this.element=o[_a++];
+return this.element;
+};
+this.map=function(fn,_c){
+var s=_c||dj_global;
+if(Array.map){
+return Array.map(o,fn,s);
+}else{
+var _e=[];
+for(var i=0;i<o.length;i++){
+_e.push(fn.call(s,o[i]));
+}
+return _e;
+}
+};
+this.reset=function(){
+_a=0;
+this.element=o[_a];
+};
+}
+this.add=function(_10){
+d.add(_10.key,_10);
+};
+this.clear=function(){
+d.clear();
+};
+this.containsKey=function(key){
+return d.containsKey(key);
+};
+this.getIterator=function(){
+return new nodelistiterator(this);
+};
+this.item=function(key){
+return d.item(key);
+};
+this.remove=function(_13){
+d.remove(_13.key);
+};
+}
+function edgeToNeighbor(_14,_15){
+this.neighbor=_14;
+this.cost=_15;
+}
+function adjacencyList(){
+var d=[];
+this.add=function(o){
+d.push(o);
+};
+this.item=function(i){
+return d[i];
+};
+this.getIterator=function(){
+return new dojo.collections.Iterator([].concat(d));
+};
+}
+this.nodes=_1||new nodeList();
+this.count=this.nodes.count;
+this.clear=function(){
+this.nodes.clear();
+this.count=0;
+};
+this.addNode=function(){
+var n=arguments[0];
+if(arguments.length>1){
+n=new node(arguments[0],arguments[1]);
+}
+if(!this.nodes.containsKey(n.key)){
+this.nodes.add(n);
+this.count++;
+}
+};
+this.addDirectedEdge=function(_1a,_1b,_1c){
+var _1d,_1e;
+if(_1a.constructor!=node){
+_1d=this.nodes.item(_1a);
+_1e=this.nodes.item(_1b);
+}else{
+_1d=_1a;
+_1e=_1b;
+}
+var c=_1c||0;
+_1d.addDirected(_1e,c);
+};
+this.addUndirectedEdge=function(_20,_21,_22){
+var _23,_24;
+if(_20.constructor!=node){
+_23=this.nodes.item(_20);
+_24=this.nodes.item(_21);
+}else{
+_23=_20;
+_24=_21;
+}
+var c=_22||0;
+_23.addDirected(_24,c);
+_24.addDirected(_23,c);
+};
+this.contains=function(n){
+return this.nodes.containsKey(n.key);
+};
+this.containsKey=function(k){
+return this.nodes.containsKey(k);
+};
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Graph.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Graph.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Graph.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Queue.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Queue.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Queue.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Queue.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,54 @@
+dojo.provide("dojo.collections.Queue");
+dojo.require("dojo.collections.Collections");
+dojo.collections.Queue=function(_1){
+var q=[];
+if(_1){
+q=q.concat(_1);
+}
+this.count=q.length;
+this.clear=function(){
+q=[];
+this.count=q.length;
+};
+this.clone=function(){
+return new dojo.collections.Queue(q);
+};
+this.contains=function(o){
+for(var i=0;i<q.length;i++){
+if(q[i]==o){
+return true;
+}
+}
+return false;
+};
+this.copyTo=function(_5,i){
+_5.splice(i,0,q);
+};
+this.dequeue=function(){
+var r=q.shift();
+this.count=q.length;
+return r;
+};
+this.enqueue=function(o){
+this.count=q.push(o);
+};
+this.forEach=function(fn,_a){
+var s=_a||dj_global;
+if(Array.forEach){
+Array.forEach(q,fn,s);
+}else{
+for(var i=0;i<q.length;i++){
+fn.call(s,q[i],i,q);
+}
+}
+};
+this.getIterator=function(){
+return new dojo.collections.Iterator(q);
+};
+this.peek=function(){
+return q[0];
+};
+this.toArray=function(){
+return [].concat(q);
+};
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Queue.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Queue.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/collections/Queue.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message