Lines Matching refs:B

4 Timeline._Band=function(B,G,C){if(B.autoWidth&&typeof G.width=="string"){G.width=G.width.indexOf("%…  argument
5 }this._timeline=B;
10 this._labeller=("labeller" in G)?G.labeller:(("createLabeller" in B.getUnit())?B.getUnit().createLa…
49 G.ether.initialize(this,B);
51 G.etherPainter.initialize(this,B);
60 G.eventPainter.initialize(this,B);
64 D++){this._decorators[D].initialize(this,B);
87 Timeline._Band.prototype.removeOnScrollListener=function(B){for(var A=0; argument
89 A++){if(this._onScrollListeners[A]==B){this._onScrollListeners.splice(A,1);
92 Timeline._Band.prototype.setSyncWithBand=function(B,A){if(this._syncWithBand){this._syncWithBand.re… argument
93 }this._syncWithBand=B;
116 Timeline._Band.prototype.updateEventTrackInfo=function(A,B){this._eventTrackIncrement=B; argument
122 var B=Math.ceil((this._eventTracksNeeded+A)*this._eventTrackIncrement);
123 B+=C?this._theme.event.overviewTrack.offset:this._theme.event.track.offset;
125 if(B!=D.width){D.width=B;
140 var B=A+Math.floor(D/2);
143 C.style.top=B+"px";
147 C.style.left=B+"px";
191 var B=this._timeline.getDocument().createElement("div");
192 B.className="timeline-band-layer-inner";
193 if(SimileAjax.Platform.browser.isIE){B.style.cursor="move";
194 }else{B.style.cursor="-moz-grab";
195 }D.appendChild(B);
196 return B;
200 Timeline._Band.prototype.scrollToCenter=function(A,C){var B=this._ether.dateToPixelOffset(A);
201 if(B<-this._viewLength/2){this.setCenterVisibleDate(this.pixelOffsetToDate(B+this._viewLength));
202 }else{if(B>3*this._viewLength/2){this.setCenterVisibleDate(this.pixelOffsetToDate(B-this._viewLengt…
206 if(A){var B=this;
207 this.scrollToCenter(A.getStart(),function(){B._eventPainter.showBubble(A);
213 var B=this._ether.zoom(C);
214 this._etherPainter.zoom(B);
218 Timeline._Band.prototype._onMouseDown=function(B,A,C){this.closeBubble(); argument
224 var B=A.clientY-this._dragY;
227 this._moveEther(this._timeline.isHorizontal()?C:B);
230 Timeline._Band.prototype._onMouseUp=function(B,A,C){this._dragging=false; argument
233 Timeline._Band.prototype._onMouseOut=function(C,B,D){var A=SimileAjax.DOM.getEventRelativeCoordinat… argument
237 Timeline._Band.prototype._onMouseScroll=function(G,H,B){var A=new Date(); argument
256 Timeline._Band.prototype._onDblClick=function(C,B,E){var A=SimileAjax.DOM.getEventRelativeCoordinat… argument
260 Timeline._Band.prototype._onKeyDown=function(B,A,C){if(!this._dragging){switch(A.keyCode){case 27:b… argument
273 Timeline._Band.prototype._onKeyUp=function(B,A,C){if(!this._dragging){this._scrollSpeed=this._origi… argument
289 var B=SimileAjax.Graphics.createAnimation(function(E,F){A._moveEther(F);
291 B.run();
318 var B=this._ether.dateToPixelOffset(A);
319 this._moveEther(Math.round(this._viewLength/2-B));
327 var B=this._syncWithBand.getMaxVisibleDate();
328 if(this._highlight){this._etherPainter.setHighlight(A,B);
361 Timeline.CompactEventPainter.prototype.initialize=function(B,A){this._band=B; argument
371 Timeline.CompactEventPainter.prototype.removeOnSelectListener=function(B){for(var A=0; argument
373 A++){if(this._onSelectListeners[A]==B){this._onSelectListeners.splice(A,1);
400 var B=this._band.getMinDate();
406 var F=N.getEventIterator(B,D);
433 Timeline.CompactEventPainter.prototype._prepareForPainting=function(){var B=this._band;
442 if(this._highlightLayer!=null){B.removeLayerDiv(this._highlightLayer);
443 }this._highlightLayer=B.createLayerDiv(105,"timeline-band-highlights");
445 if(this._lineLayer!=null){B.removeLayerDiv(this._lineLayer);
446 }this._lineLayer=B.createLayerDiv(110,"timeline-band-lines");
448 if(this._eventLayer!=null){B.removeLayerDiv(this._eventLayer);
449 }this._eventLayer=B.createLayerDiv(115,"timeline-band-events");
452 ….CompactEventPainter.prototype.paintEvent=function(B,C,D,A){if(B.isInstant()){this.paintInstantEve… argument
453 }else{this.paintDurationEvent(B,C,D,A);
455 …Painter.prototype.paintInstantEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseInsta… argument
456 }else{this.paintPreciseInstantEvent(B,C,D,A);
458 …ainter.prototype.paintDurationEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseDurat… argument
459 }else{this.paintPreciseDurationEvent(B,C,D,A);
461 Timeline.CompactEventPainter.prototype.paintPreciseInstantEvent=function(H,F,B,A){var C={tooltip:H.… argument
470 var G=this.paintTapeIconLabel(H.getStart(),C,null,E,J,F,B,A);
478 Timeline.CompactEventPainter.prototype.paintCompositePreciseInstantEvents=function(J,H,D,B){var K=J… argument
486 var I=this.paintTapeIconLabel(K.getStart(),E,null,G,M,H,D,B);
499 var B=this._band;
500 var L=function(i){return Math.round(B.dateToPixelOffset(i));
609 Timeline.CompactEventPainter.prototype.paintImpreciseInstantEvent=function(I,G,B,A){var C={tooltip:… argument
616 var H=this.paintTapeIconLabel(I.getStart(),C,E,F,K,G,B,A);
627 Timeline.CompactEventPainter.prototype.paintPreciseDurationEvent=function(I,G,B,A){var C={tooltip:I… argument
634 var H=this.paintTapeIconLabel(I.getLatestStart(),C,E,F,K,G,B,A);
645 Timeline.CompactEventPainter.prototype.paintImpreciseDurationEvent=function(I,G,B,A){var C={tooltip… argument
652 var H=this.paintTapeIconLabel(I.getLatestStart(),C,E,F,K,G,B,A);
669 var B=0;
672 B=Math.ceil(X.tapeHeight/X.trackHeight);
676 Q<B;
683 if(B>0){W[B-1].end=Math.max(W[B-1].end,U);
691 if(B>0){W[B-1].end=Math.max(W[B-1].end,J);
694 Y++){if(B+Y<W.length){var T=W[B+Y];
711 for(var B=0;
712 B<C.length&&(H+B)<this._tracks.length;
713 B++){var G=this._tracks[H+B];
714 var A=C[B];
723 Timeline.CompactEventPainter.prototype._paintEventIcon=function(C,D,H,G,E,F){var B=SimileAjax.Graph…
728 A.appendChild(B);
734 var B=H.createElement("div");
735 B.className="timeline-event-label";
736 B.style.left=C+"px";
737 B.style.width=(A+1)+"px";
738 B.style.top=F+"px";
739 B.innerHTML=I.text;
740 if("tooltip" in E&&typeof E.tooltip=="string"){B.title=E.tooltip;
741 }if("color" in I&&typeof I.color=="string"){B.style.color=I.color;
742 }if("className" in I&&typeof I.className=="string"){B.className+=" "+I.className;
743 }this._eventLayer.appendChild(B);
744 return{left:C,top:F,width:A,height:G,elmt:B};
746 Timeline.CompactEventPainter.prototype._paintEventTape=function(G,H,K,J,D,A,E,C,I,F){var B=A-D;
751 L.style.width=B+"px";
760 return{left:D,top:J,width:B,height:K,elmt:L};
764 var B=G.highlightColors[Math.min(A,G.highlightColors.length-1)];
774 Timeline.CompactEventPainter.prototype._onClickMultiplePreciseInstantEvent=function(E,A,B){var F=Si… argument
775 this._showBubble(F.left+Math.ceil(E.offsetWidth/2),F.top+Math.ceil(E.offsetHeight/2),B);
778 C<B.length;
779 C++){D.push(B[C].getID());
785 Timeline.CompactEventPainter.prototype._onClickInstantEvent=function(C,A,B){var D=SimileAjax.DOM.ge… argument
786 this._showBubble(D.left+Math.ceil(C.offsetWidth/2),D.top+Math.ceil(C.offsetHeight/2),[B]);
787 this._fireOnSelect([B.getID()]);
792 …CompactEventPainter.prototype._onClickDurationEvent=function(F,B,C){if("pageX" in B){var A=B.pageX; argument
793 var E=B.pageY;
795 var A=B.offsetX+D.left;
796 var E=B.offsetY+D.top;
799 B.cancelBubble=true;
800 SimileAjax.DOM.cancelEvent(B);
803 Timeline.CompactEventPainter.prototype.showBubble=function(A){var B=this._eventIdToElmt[A.getID()];
804 if(B){var C=SimileAjax.DOM.getPageCoordinates(B);
805 this._showBubble(C.left+B.offsetWidth/2,C.top+B.offsetHeight/2,[A]);
807 Timeline.CompactEventPainter.prototype._showBubble=function(A,F,B){var E=document.createElement("di… argument
808 B=("fillInfoBubble" in B)?[B]:B;
810 D<B.length;
813 B[D].fillInfoBubble(C,this._params.theme,this._band.getLabeller());
817 Timeline.CompactEventPainter.prototype._fireOnSelect=function(B){for(var A=0; argument
819 A++){this._onSelectListeners[A](B);
834 Timeline.SpanHighlightDecorator.prototype.initialize=function(B,A){this._band=B; argument
853 var B=H.createElement("div");
854 B.className="timeline-highlight-decorator";
855 if(this._cssClass){B.className+=" "+this._cssClass;
856 }if(this._color!=null){B.style.backgroundColor=this._color;
857 }if(this._opacity<100){SimileAjax.Graphics.setOpacity(B,this._opacity);
858 }this._layerDiv.appendChild(B);
871 if(this._timeline.isHorizontal()){B.style.left=F+"px";
872 B.style.width=(I-F)+"px";
877 }else{B.style.top=F+"px";
878 B.style.height=(I-F)+"px";
893 Timeline.PointHighlightDecorator.prototype.initialize=function(B,A){this._band=B; argument
904 var B=A-Math.round(this._width/2);
912 if(this._timeline.isHorizontal()){F.style.left=B+"px";
914 }else{F.style.top=B+"px";
929 Timeline.DetailedEventPainter.prototype.initialize=function(B,A){this._band=B; argument
941 Timeline.DetailedEventPainter.prototype.removeOnSelectListener=function(B){for(var A=0; argument
943 A++){if(this._onSelectListeners[A]==B){this._onSelectListeners.splice(A,1);
962 var B=this._band.getMaxDate();
967 var E=C.getEventReverseIterator(D,B);
976 Timeline.DetailedEventPainter.prototype._prepareForPainting=function(){var B=this._band;
986 if(this._highlightLayer!=null){B.removeLayerDiv(this._highlightLayer);
987 }this._highlightLayer=B.createLayerDiv(105,"timeline-band-highlights");
989 if(this._lineLayer!=null){B.removeLayerDiv(this._lineLayer);
990 }this._lineLayer=B.createLayerDiv(110,"timeline-band-lines");
992 if(this._eventLayer!=null){B.removeLayerDiv(this._eventLayer);
993 }this._eventLayer=B.createLayerDiv(110,"timeline-band-events");
996 …DetailedEventPainter.prototype.paintEvent=function(B,C,D,A){if(B.isInstant()){this.paintInstantEve… argument
997 }else{this.paintDurationEvent(B,C,D,A);
999 …Painter.prototype.paintInstantEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseInsta… argument
1000 }else{this.paintPreciseInstantEvent(B,C,D,A);
1002 …ainter.prototype.paintDurationEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseDurat… argument
1003 }else{this.paintPreciseDurationEvent(B,C,D,A);
1013 var B=this._paintEventIcon(L,F,C,P,S);
1028 var I=function(V,U,W){return M._onClickInstantEvent(B.elmt,U,L);
1030 SimileAjax.DOM.registerEvent(B.elmt,"mousedown",I);
1032 this._createHighlightDiv(Q,B,S);
1033 this._eventIdToElmt[L.getID()]=B.elmt;
1040 var B=Math.round(this._band.dateToPixelOffset(U));
1044 var H=this._findFreeTrackForSolid(B,K);
1045 var E=this._paintEventTape(O,H,K,B,W.event.instant.impreciseColor,W.event.instant.impreciseOpacity,…
1052 if(J<B){R=H;
1080 var B=this._paintEventTape(K,D,F,A,P,100,O,T);
1091 var G=function(W,V,X){return L._onClickDurationEvent(B.elmt,V,K);
1093 SimileAjax.DOM.registerEvent(B.elmt,"mousedown",G);
1095 this._createHighlightDiv(Q,B,T);
1096 this._eventIdToElmt[K.getID()]=B.elmt;
1113 var B=this._paintEventTape(M,D,E,F,U,100,T,Y);
1124 var I=function(b,a,c){return N._onClickDurationEvent(B.elmt,a,M);
1126 SimileAjax.DOM.registerEvent(B.elmt,"mousedown",I);
1128 this._createHighlightDiv(V,B,Y);
1129 this._eventIdToElmt[M.getID()]=B.elmt;
1133 C++){if(C<this._lowerTracks.length){var B=this._lowerTracks[C];
1134 if(Math.min(B.solid,B.text)>D&&(!(A)||B.line>A)){return C;
1137 }if(C<this._upperTracks.length){var B=this._upperTracks[C];
1138 if(Math.min(B.solid,B.text)>D&&(!(A)||B.line>A)){return -1-C;
1142 Timeline.DetailedEventPainter.prototype._findFreeTrackForText=function(C,A,I){var B;
1146 if(C<0){B=true;
1150 }else{if(C>0){B=false;
1156 if(J-1<=G){B=false;
1160 }else{B=true;
1164 }}}if(B){if(E==this._upperTracks.length){this._upperTracks.push({solid:Number.POSITIVE_INFINITY,tex…
1176 A++){var B=this._lowerTracks[A];
1177 if(Math.min(B.solid,B.text)>=C){break;
1182 A++){var B=this._upperTracks[A];
1183 if(Math.min(B.solid,B.text)>=C){break;
1191 var B=this._timeline.getDocument().createElement("div");
1192 B.style.position="absolute";
1193 B.style.left=E+"px";
1194 B.style.width=F.event.label.offsetFromLine+"px";
1195 B.style.height=I+"px";
1196 if(D>A){B.style.top=(H-I)+"px";
1197 B.style.borderTop=C;
1198 }else{B.style.top=H+"px";
1199 B.style.borderBottom=C;
1200 }B.style.borderLeft=C;
1201 this._lineLayer.appendChild(B);
1203 Timeline.DetailedEventPainter.prototype._paintEventIcon=function(J,B,C,F,E){var H=J.getIcon(); argument
1205 var G=F.trackOffset+B*F.trackIncrement+F.trackHeight/2;
1228 var B=H.createElement("div");
1229 B.style.position="absolute";
1230 B.style.left=C+"px";
1231 B.style.width=A+"px";
1232 B.style.top=F+"px";
1233 B.innerHTML=J;
1234 B.style.cursor="pointer";
1235 if(I._title!=null){B.title=I._title;
1238 }if(D!=null){B.style.color=D;
1239 }this._eventLayer.appendChild(B);
1240 return{left:C,top:F,width:A,height:G,elmt:B};
1242 Timeline.DetailedEventPainter.prototype._paintEventTape=function(L,B,D,A,G,C,I,H){var F=A-D; argument
1244 var K=I.trackOffset+B*I.trackIncrement+I.trackHeight/2;
1262 var B=G.highlightColors[Math.min(A,G.highlightColors.length-1)];
1270 F.style.background=B;
1273 Timeline.DetailedEventPainter.prototype._onClickInstantEvent=function(C,A,B){var D=SimileAjax.DOM.g… argument
1274 this._showBubble(D.left+Math.ceil(C.offsetWidth/2),D.top+Math.ceil(C.offsetHeight/2),B);
1275 this._fireOnSelect(B.getID());
1280 …etailedEventPainter.prototype._onClickDurationEvent=function(F,B,C){if("pageX" in B){var A=B.pageX; argument
1281 var E=B.pageY;
1283 var A=B.offsetX+D.left;
1284 var E=B.offsetY+D.top;
1287 B.cancelBubble=true;
1288 SimileAjax.DOM.cancelEvent(B);
1291 Timeline.DetailedEventPainter.prototype.showBubble=function(A){var B=this._eventIdToElmt[A.getID()];
1292 if(B){var C=SimileAjax.DOM.getPageCoordinates(B);
1293 this._showBubble(C.left+B.offsetWidth/2,C.top+B.offsetHeight/2,A);
1295 Timeline.DetailedEventPainter.prototype._showBubble=function(B,E,C){var D=document.createElement("d… argument
1299 SimileAjax.Graphics.createBubbleForContentAndPoint(D,B,E,A.width,null,A.maxHeight);
1301 Timeline.DetailedEventPainter.prototype._fireOnSelect=function(A){for(var B=0;
1302 B<this._onSelectListeners.length;
1303 B++){this._onSelectListeners[B](A);
1313 Timeline.GregorianEtherPainter.prototype.initialize=function(C,B){this._band=C; argument
1314 this._timeline=B;
1320 …rams.align!=undefined)?this._params.align:this._theme.ether.interval.marker[B.isHorizontal()?"hAli…
1325 Timeline.GregorianEtherPainter.prototype.setHighlight=function(A,B){this._highlight.position(A,B); argument
1341 var B=function(G){for(var H=0; method in Timeline.GregorianEtherPainter.paint
1346 B(C);
1360 var B=SimileAjax.DateTime.parseGregorianDateTime(C.end).getTime();
1362 D<this._zones.length&&B>E;
1367 }if(B<A.endTime){this._zones.splice(D,0,{startTime:E,endTime:B,unit:C.unit,multiple:(C.multiple)?C.…
1369 A.startTime=B;
1370 E=B;
1375 Timeline.HotZoneGregorianEtherPainter.prototype.initialize=function(C,B){this._band=C; argument
1376 this._timeline=B;
1382 …rams.align!=undefined)?this._params.align:this._theme.ether.interval.marker[B.isHorizontal()?"hAli…
1387 …ne.HotZoneGregorianEtherPainter.prototype.setHighlight=function(A,B){this._highlight.position(A,B); argument
1401 var B=this;
1425 Timeline.HotZoneGregorianEtherPainter.prototype.zoom=function(A){if(A!=0){for(var B=0;
1426 B<this._zones.length;
1427 ++B){if(this._zones[B]){this._zones[B].unit+=A;
1434 Timeline.YearCountEtherPainter.prototype.initialize=function(C,B){this._band=C; argument
1435 this._timeline=B;
1441 var D=("align" in this._params)?this._params.align:this._theme.ether.interval.marker[B.isHorizontal…
1446 Timeline.YearCountEtherPainter.prototype.setHighlight=function(A,B){this._highlight.position(A,B); argument
1456 var B=new Date(this._startDate.getTime());
1459 B.setUTCFullYear(this._band.getMinDate().getUTCFullYear()-E%this._multiple);
1468 while(B.getTime()<F.getTime()){this._intervalMarkerLayout.createIntervalMarker(B,D,SimileAjax.DateT…
1469 A(B);
1478 Timeline.QuarterlyEtherPainter.prototype.initialize=function(C,B){this._band=C; argument
1479 this._timeline=B;
1485 var D=("align" in this._params)?this._params.align:this._theme.ether.interval.marker[B.isHorizontal…
1490 Timeline.QuarterlyEtherPainter.prototype.setHighlight=function(A,B){this._highlight.position(A,B); argument
1500 var B=new Date(0);
1502 B.setUTCFullYear(Math.max(this._startDate.getUTCFullYear(),this._band.getMinDate().getUTCFullYear()…
1503 B.setUTCMonth(this._startDate.getUTCMonth());
1511 while(B.getTime()<E.getTime()){this._intervalMarkerLayout.createIntervalMarker(B,D,SimileAjax.DateT…
1512 A(B);
1532 var B=C.ether.interval.weekend;
1552 if(B.opacity<100){SimileAjax.Graphics.setOpacity(X,B.opacity);
1568 Timeline.EtherHighlight=function(B,E,D,C){var A=B.isHorizontal(); argument
1570 this._createHighlightDiv=function(){if(this._highlightDiv==null){this._highlightDiv=B.getDocument()…
1596 Timeline.LinearEther.prototype.initialize=function(B,A){this._band=B; argument
1609 Timeline.LinearEther.prototype.shiftPixels=function(B){var A=this._interval*B/this._pixelsPerInterv… argument
1612 Timeline.LinearEther.prototype.dateToPixelOffset=function(B){var A=this._unit.compare(B,this._start… argument
1615 Timeline.LinearEther.prototype.pixelOffsetToDate=function(B){var A=B*this._interval/this._pixelsPer… argument
1619 var B=this._band._zoomIndex;
1620 var C=B;
1621 if(D&&(B>0)){C=B-1;
1622 }if(!D&&(B<(this._band._zoomSteps.length-1))){C=B+1;
1626 A=this._band._zoomSteps[C].unit-this._band._zoomSteps[B].unit;
1643 var B=this._unit.parseFromObject(G.end);
1645 C<this._zones.length&&this._unit.compare(B,F)>0;
1650 }if(this._unit.compare(B,A.endTime)<0){this._zones.splice(C,0,{startTime:F,endTime:B,magnify:G.magn…
1652 A.startTime=B;
1653 F=B;
1673 var B=this._band._zoomIndex;
1674 var C=B;
1675 if(D&&(B>0)){C=B-1;
1676 }if(!D&&(B<(this._band._zoomSteps.length-1))){C=B+1;
1680 A=this._band._zoomSteps[C].unit-this._band._zoomSteps[B].unit;
1685 var B=C;
1687 if(this._unit.compare(I,B)<0){var G=0;
1690 }while(this._unit.compare(I,B)<0){var F=this._zones[G];
1691 var A=this._unit.earlier(B,F.endTime);
1698 }while(this._unit.compare(I,B)>0){var F=this._zones[G];
1699 var A=this._unit.later(B,F.startTime);
1705 Timeline.HotZoneEther.prototype._pixelOffsetToDate=function(E,B){var G=this._getScale(); argument
1706 var D=B;
1749 }var B=Timeline.getTimelineFromID(D[2]);
1750 var E=B.getBand(D[3]);
1754 Timeline.EventUtils.encodeEventElID=function(B,D,C,A){return C+"-tl-"+B.timelineID+"-"+D.getIndex()… argument
1759 Timeline.GregorianDateLabeller=function(B,A){this._locale=B; argument
1765 …ne.GregorianDateLabeller.getMonthName=function(B,A){return Timeline.GregorianDateLabeller.monthNam… argument
1767 Timeline.GregorianDateLabeller.prototype.labelInterval=function(A,C){var B=Timeline.GregorianDateLa…
1768 if(B==null){B=Timeline.GregorianDateLabeller.prototype.defaultLabelInterval;
1769 }return B.call(this,A,C);
1773 Timeline.GregorianDateLabeller.prototype.defaultLabelInterval=function(B,C){var D; argument
1775 B=SimileAjax.DateTime.removeTimeZoneOffset(B,this._timeZone);
1776 switch(C){case SimileAjax.DateTime.MILLISECOND:D=B.getUTCMilliseconds();
1778 case SimileAjax.DateTime.SECOND:D=B.getUTCSeconds();
1780 case SimileAjax.DateTime.MINUTE:var A=B.getUTCMinutes();
1781 if(A==0){D=B.getUTCHours()+":00";
1785 case SimileAjax.DateTime.HOUR:D=B.getUTCHours()+"hr";
1787 …DateTime.DAY:D=Timeline.GregorianDateLabeller.getMonthName(B.getUTCMonth(),this._locale)+" "+B.get…
1789 …ateTime.WEEK:D=Timeline.GregorianDateLabeller.getMonthName(B.getUTCMonth(),this._locale)+" "+B.get…
1791 case SimileAjax.DateTime.MONTH:var A=B.getUTCMonth();
1794 …CADE:case SimileAjax.DateTime.CENTURY:case SimileAjax.DateTime.MILLENNIUM:var E=B.getUTCFullYear();
1795 if(E>0){D=B.getUTCFullYear();
1799 default:D=B.toUTCString();
1813 Timeline.OriginalEventPainter.prototype.initialize=function(B,A){this._band=B; argument
1825 Timeline.OriginalEventPainter.prototype.removeOnSelectListener=function(B){for(var A=0; argument
1827 A++){if(this._onSelectListeners[A]==B){this._onSelectListeners.splice(A,1);
1832 Timeline.OriginalEventPainter.prototype.removeEventPaintListener=function(B){for(var A=0; argument
1834 A++){if(this._eventPaintListeners[A]==B){this._eventPaintListeners.splice(A,1);
1854 var B=this._band.getMaxDate();
1859 var E=C.getEventReverseIterator(D,B);
1869 Timeline.OriginalEventPainter.prototype._prepareForPainting=function(){var B=this._band;
1878 if(this._highlightLayer!=null){B.removeLayerDiv(this._highlightLayer);
1879 }this._highlightLayer=B.createLayerDiv(105,"timeline-band-highlights");
1881 if(this._lineLayer!=null){B.removeLayerDiv(this._lineLayer);
1882 }this._lineLayer=B.createLayerDiv(110,"timeline-band-lines");
1884 if(this._eventLayer!=null){B.removeLayerDiv(this._eventLayer);
1885 }this._eventLayer=B.createLayerDiv(115,"timeline-band-events");
1888 …OriginalEventPainter.prototype.paintEvent=function(B,C,D,A){if(B.isInstant()){this.paintInstantEve… argument
1889 }else{this.paintDurationEvent(B,C,D,A);
1891 …Painter.prototype.paintInstantEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseInsta… argument
1892 }else{this.paintPreciseInstantEvent(B,C,D,A);
1894 …ainter.prototype.paintDurationEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseDurat… argument
1895 }else{this.paintPreciseDurationEvent(B,C,D,A);
1910 var B=this._paintEventIcon(N,P,C,S,V,0);
1912 var E=[B.elmt,U.elmt];
1914 var K=function(Y,X,Z){return O._onClickInstantEvent(B.elmt,X,N);
1916 SimileAjax.DOM.registerEvent(B.elmt,"mousedown",K);
1918 var G=this._createHighlightDiv(T,B,V,N);
1921 this._eventIdToElmt[N.getID()]=B.elmt;
1929 var B=Math.round(this._band.dateToPixelOffset(X));
1936 var S=Math.max(L,B);
1944 var E=this._paintEventTape(P,R,K,B,V,Z.event.instant.impreciseOpacity,U,Z,0);
1973 var B=this._paintEventTape(M,O,H,A,S,100,R,W,0);
1975 var D=[B.elmt,V.elmt];
1977 var J=function(Z,Y,a){return N._onClickDurationEvent(B.elmt,Y,M);
1979 SimileAjax.DOM.registerEvent(B.elmt,"mousedown",J);
1981 var F=this._createHighlightDiv(T,B,W,M);
1984 this._eventIdToElmt[M.getID()]=B.elmt;
2007 var B=this._paintEventTape(O,R,F,G,X,100,W,b,1);
2009 var D=[U.elmt,B.elmt,a.elmt];
2011 var L=function(e,d,f){return P._onClickDurationEvent(B.elmt,d,O);
2013 SimileAjax.DOM.registerEvent(B.elmt,"mousedown",L);
2015 var H=this._createHighlightDiv(Y,B,b,O);
2018 this._eventIdToElmt[O.getID()]=B.elmt;
2021 …er.prototype._encodeEventElID=function(B,A){return Timeline.EventUtils.encodeEventElID(this._timel… argument
2027 C++){var B=this._tracks[C];
2028 if(B>D){break;
2031 Timeline.OriginalEventPainter.prototype._paintEventIcon=function(K,B,C,G,F,D){var I=K.getIcon(); argument
2034 if(D>0){J=G.trackOffset+B*G.trackIncrement+D+G.impreciseIconMargin;
2035 }else{var H=G.trackOffset+B*G.trackIncrement+G.trackHeight/2;
2049 var B=I.createElement("div");
2050 B.className=E;
2051 B.id=this._encodeEventElID("label",K);
2052 B.style.left=D+"px";
2053 B.style.width=A+"px";
2054 B.style.top=H+"px";
2055 B.innerHTML=L;
2056 if(K._title!=null){B.title=K._title;
2059 }if(F!=null){B.style.color=F;
2060 }if(G.event.highlightLabelBackground&&C>=0){B.style.background=this._getHighlightColor(C,G);
2061 }this._eventLayer.appendChild(B);
2062 return{left:D,top:H,width:A,height:J,elmt:B};
2064 Timeline.OriginalEventPainter.prototype._paintEventTape=function(N,B,D,A,G,C,J,I,M){var F=A-D; argument
2066 var K=J.trackOffset+B*J.trackIncrement;
2087 Timeline.OriginalEventPainter.prototype._getElClassName=function(D,C,A){var E=C.getClassName(),B=[];
2088 if(E){if(A){B.push(A+"-"+E+" ");
2089 }B.push(E+" ");
2090 }B.push(D);
2091 return(B.join(""));
2093 Timeline.OriginalEventPainter.prototype._getHighlightColor=function(A,B){var C=B.event.highlightCol… argument
2096 Timeline.OriginalEventPainter.prototype._createHighlightDiv=function(A,D,F,B){var G=null; argument
2100 G.className=this._getElClassName("timeline-event-highlight",B,"highlight");
2101 G.id=this._encodeEventElID("highlight0",B);
2112 Timeline.OriginalEventPainter.prototype._onClickInstantEvent=function(C,A,B){var D=SimileAjax.DOM.g… argument
2113 this._showBubble(D.left+Math.ceil(C.offsetWidth/2),D.top+Math.ceil(C.offsetHeight/2),B);
2114 this._fireOnSelect(B.getID());
2119 …riginalEventPainter.prototype._onClickDurationEvent=function(F,B,C){if("pageX" in B){var A=B.pageX; argument
2120 var E=B.pageY;
2122 var A=B.offsetX+D.left;
2123 var E=B.offsetY+D.top;
2126 B.cancelBubble=true;
2127 SimileAjax.DOM.cancelEvent(B);
2130 Timeline.OriginalEventPainter.prototype.showBubble=function(A){var B=this._eventIdToElmt[A.getID()];
2131 if(B){var C=SimileAjax.DOM.getPageCoordinates(B);
2132 this._showBubble(C.left+B.offsetWidth/2,C.top+B.offsetHeight/2,A);
2134 Timeline.OriginalEventPainter.prototype._showBubble=function(B,E,C){var D=document.createElement("d… argument
2138 SimileAjax.Graphics.createBubbleForContentAndPoint(D,B,E,A.width,null,A.maxHeight);
2140 Timeline.OriginalEventPainter.prototype._fireOnSelect=function(A){for(var B=0;
2141 B<this._onSelectListeners.length;
2142 B++){this._onSelectListeners[B](A);
2144 Timeline.OriginalEventPainter.prototype._fireEventPaintListeners=function(D,A,C){for(var B=0;
2145 B<this._eventPaintListeners.length;
2146 B++){this._eventPaintListeners[B](this._band,D,A,C);
2156 Timeline.OverviewEventPainter.prototype.initialize=function(B,A){this._band=B; argument
2165 Timeline.OverviewEventPainter.prototype.removeOnSelectListener=function(B){for(var A=0; argument
2167 A++){if(this._onSelectListeners[A]==B){this._onSelectListeners.splice(A,1);
2184 var B=this._band.getMaxDate();
2189 var E=C.getEventReverseIterator(D,B);
2206 …OverviewEventPainter.prototype.paintEvent=function(B,C,D,A){if(B.isInstant()){this.paintInstantEve… argument
2207 }else{this.paintDurationEvent(B,C,D,A);
2210 var B=Math.round(this._band.dateToPixelOffset(F));
2214 }var G=this._paintEventTick(I,B,C,100,H,E);
2217 Timeline.OverviewEventPainter.prototype.paintDurationEvent=function(L,K,H,B){var A=L.getLatestStart… argument
2230 this._createHighlightDiv(B,D,H);
2232 …verviewEventPainter.prototype._paintEventTape=function(K,B,D,L,E,C,H,G,F){var I=H.trackOffset+B*H.… argument
2247 Timeline.OverviewEventPainter.prototype._paintEventTick=function(J,C,D,B,G,F){var I=F.event.overvie… argument
2256 }if(B<100){SimileAjax.Graphics.setOpacity(K,B);
2262 var B=G.highlightColors[Math.min(A,G.highlightColors.length-1)];
2270 F.style.background=B;
2282 Timeline.DefaultEventSource.prototype.removeListener=function(B){for(var A=0; argument
2284 A++){if(this._listeners[A]==B){this._listeners.splice(A,1);
2296 }var B=(D.getAttribute("isDuration")===null&&D.getAttribute("durationEvent")===null)||D.getAttribut…
2297 …ribute("latestStart")),earliestEnd:E(D.getAttribute("earliestEnd")),instant:B,text:D.getAttribute(…
2307 Timeline.DefaultEventSource.prototype.loadJSON=function(H,B){var D=this._getBaseURL(B); argument
2326 Timeline.DefaultEventSource.prototype.loadSPARQL=function(I,B){var E=this._getBaseURL(B); argument
2357 Timeline.DefaultEventSource.prototype.addMany=function(A){for(var B=0;
2358 B<A.length;
2359 B++){this._events.add(A[B]);
2367 …e.DefaultEventSource.prototype.getEventIterator=function(A,B){return this._events.getIterator(A,B); argument
2369 …ntSource.prototype.getEventReverseIterator=function(A,B){return this._events.getReverseIterator(A, argument
2379 Timeline.DefaultEventSource.prototype._fire=function(B,A){for(var C=0; argument
2382 if(B in D){try{D[B].apply(D,A);
2388 }}var B=A.lastIndexOf("/");
2389 if(B<0){return"";
2390 }else{return A.substr(0,B+1);
2392 Timeline.DefaultEventSource.prototype._resolveRelativeURL=function(A,B){if(A==null||A==""){return A; argument
2394 }else{if(A.substr(0,1)=="/"){return B.substr(0,B.indexOf("/",B.indexOf("://")+3))+A;
2395 }else{return B+A;
2405 var B=[];
2407 B.push("start is > latestStart");
2409 B.push("start is > earliestEnd");
2411 B.push("start is > end");
2413 B.push("latestStart is > earliestEnd");
2415 B.push("latestStart is > end");
2417 B.push("earliestEnd is > end");
2420 if(B.length>0){this._text+=" PROBLEM: "+B.join(", ");
2459 },setWikiInfo:function(B,A){this._wikiURL=B; argument
2469 var B=this._wikiURL+this._wikiSection.replace(/\s/g,"_")+"/"+C;
2471 A.href=B;
2477 },fillTime:function(A,B){if(this._instant){if(this.isImprecise()){A.appendChild(A.ownerDocument.cre… argument
2479 A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._end)));
2480 }else{A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._start)));
2481 …sImprecise()){A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._start)+" ~ "+B.lab…
2483 A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._earliestEnd)+" ~ "+B.labelPrecise…
2484 }else{A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._start)));
2486 A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._end)));
2490 var B=this.getImage();
2491 if(B!=null){var D=K.createElement("img");
2492 D.src=B;
2522 Timeline.ClassicTheme.create=function(B){if(B==null){B=Timeline.getDefaultLocale(); argument
2523 }var A=Timeline.ClassicTheme.implementations[B];
2554 }var B=Timeline.timelines.length;
2555 Timeline.timelines[B]=null;
2556 var A=new Timeline._Impl(D,C,E,F,B);
2557 Timeline.timelines[B]=A;
2568 }var B=("overview" in F&&F.overview)?"overview":("layout" in F?F.layout:"original");
2571 }else{switch(B){case"overview":E=new Timeline.OverviewEventPainter(I);
2586 }var B=("overview" in F&&F.overview)?"overview":("layout" in F?F.layout:"original");
2589 }else{switch(B){case"overview":E=new Timeline.OverviewEventPainter(I);
2603 var B=function(F){var E=F.responseXML; function
2607 SimileAjax.XmlHttp.get(A,D,B);
2619 Timeline._Impl=function(C,B,D,E,A){SimileAjax.WindowManager.initialize(); argument
2621 this._bandInfos=B;
2626 this.autoWidth=B&&B[0]&&B[0].theme&&B[0].theme.autoWidth;
2627 this.autoWidthAnimationTime=B&&B[0]&&B[0].theme&&B[0].theme.autoWidthAnimationTime;
2629 this.timeline_start=B&&B[0]&&B[0].theme&&B[0].theme.timeline_start;
2630 this.timeline_stop=B&&B[0]&&B[0].theme&&B[0].theme.timeline_stop;
2675 Timeline._Impl.prototype.loadXML=function(B,D){var A=this; argument
2676 var E=function(H,G,F){alert("Failed to load data xml from "+B+"\n"+H);
2681 }D(F,B);
2685 window.setTimeout(function(){SimileAjax.XmlHttp.get(B,E,C);
2702 var B=A._starting;
2705 if(B){A._containerDiv.style[G]=D+"px";
2737 for(var B=0;
2738 B<this._bandInfos.length;
2739 B++){var G=new Timeline._Band(this,this._bandInfos[B],B);
2742 for(var B=0;
2743 B<this._bandInfos.length;
2744 B++){var F=this._bandInfos[B];
2745 if("syncWith" in F){this._bands[B].setSyncWithBand(this._bands[F.syncWith],("highlight" in F)?F.hig…
2746 }}if(this.autoWidth){for(var B=0;
2747 B<this._bands.length;
2748 B++){this._bands[B].addOnScrollListener(this._autoWidthScrollListener);
2760 var B=this.getPixelWidth();
2770 D=Math.round(A*B/100);
2777 Timeline._Impl.prototype.shiftOK=function(C,B){var F=B>0,A=B<0; argument
2778 if((F&&this.timeline_start==null)||(A&&this.timeline_stop==null)||(B==0)){return(true);
2789 if(F){D=(E==C?G.getMinVisibleDateAfterDelta(B):G.getMinVisibleDate())>=this.timeline_start;
2790 }else{D=(E==C?G.getMaxVisibleDateAfterDelta(B):G.getMaxVisibleDate())<=this.timeline_stop;
2799 var B=C.exec(F.id);
2800 if(B){E=parseInt(B[1]);
2808 Timeline.NativeDateUnit.createLabeller=function(B,A){return new Timeline.GregorianDateLabeller(B,A); argument
2823 Timeline.NativeDateUnit.compare=function(D,C){var B,A;
2824 if(typeof D=="object"){B=D.getTime();
2825 }else{B=Number(D);
2828 }return B-A;
2830 Timeline.NativeDateUnit.earlier=function(B,A){return Timeline.NativeDateUnit.compare(B,A)<0?B:A; argument
2832 Timeline.NativeDateUnit.later=function(B,A){return Timeline.NativeDateUnit.compare(B,A)>0?B:A; argument
2834 Timeline.NativeDateUnit.change=function(A,B){return new Date(A.getTime()+B); argument