Lines Matching refs:A

19 var A=this;
21 this._syncWithBandHandler=function(H){A._onHighlightBandScroll();
23 this._selectorListener=function(H){A._onHighlightBandScroll();
53 if(this._eventSource){this._eventListener={onAddMany:function(){A._onAddMany();
54 },onClear:function(){A._onClear();
85 Timeline._Band.prototype.addOnScrollListener=function(A){this._onScrollListeners.push(A); argument
87 Timeline._Band.prototype.removeOnScrollListener=function(B){for(var A=0;
88 A<this._onScrollListeners.length;
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
95 this._highlight=A;
116 Timeline._Band.prototype.updateEventTrackInfo=function(A,B){this._eventTrackIncrement=B; argument
117 if(A>this._eventTracksNeeded){this._eventTracksNeeded=A;
121 var A=C?this._theme.event.overviewTrack.autoWidthMargin:this._theme.event.track.autoWidthMargin;
122 var B=Math.ceil((this._eventTracksNeeded+A)*this._eventTrackIncrement);
139 Timeline._Band.prototype.setBandShiftAndWidth=function(A,D){var C=this._keyboardInput.parentNode; argument
140 var B=A+Math.floor(D/2);
141 if(this._timeline.isHorizontal()){this._div.style.top=A+"px";
145 }else{this._div.style.left=A+"px";
153 Timeline._Band.prototype.setViewLength=function(A){this._viewLength=A; argument
169 …ne._Band.prototype.getMinVisibleDateAfterDelta=function(A){return this._ether.pixelOffsetToDate(A); argument
173 …prototype.getMaxVisibleDateAfterDelta=function(A){return this._ether.pixelOffsetToDate(this._viewL… argument
177 …ototype.setMinVisibleDate=function(A){if(!this._changing){this._moveEther(Math.round(-this._ether.… argument
179 …setMaxVisibleDate=function(A){if(!this._changing){this._moveEther(Math.round(this._viewLength-this… argument
181 …enterVisibleDate=function(A){if(!this._changing){this._moveEther(Math.round(this._viewLength/2-thi… argument
183 Timeline._Band.prototype.dateToPixelOffset=function(A){return this._ether.dateToPixelOffset(A)-this… argument
185 Timeline._Band.prototype.pixelOffsetToDate=function(A){return this._ether.pixelOffsetToDate(A+this.… argument
187 Timeline._Band.prototype.createLayerDiv=function(C,A){var D=this._timeline.getDocument().createElem… argument
188 D.className="timeline-band-layer"+(typeof A=="string"?(" "+A):"");
198 Timeline._Band.prototype.removeLayerDiv=function(A){this._innerDiv.removeChild(A.parentNode); argument
200 Timeline._Band.prototype.scrollToCenter=function(A,C){var B=this._ether.dateToPixelOffset(A); argument
203 }}this._autoScroll(Math.round(this._viewLength/2-this._ether.dateToPixelOffset(A)),C);
205 Timeline._Band.prototype.showBubbleForEvent=function(C){var A=this.getEventSource().getEvent(C);
206 if(A){var B=this;
207 this.scrollToCenter(A.getStart(),function(){B._eventPainter.showBubble(A);
210 Timeline._Band.prototype.zoom=function(C,A,F,E){if(!this._zoomSteps){return ; argument
211 }A+=this._viewOffset;
212 var D=this._ether.pixelOffsetToDate(A);
216 this._moveEther(A);
218 Timeline._Band.prototype._onMouseDown=function(B,A,C){this.closeBubble(); argument
220 this._dragX=A.clientX;
221 this._dragY=A.clientY;
223 Timeline._Band.prototype._onMouseMove=function(D,A,E){if(this._dragging){var C=A.clientX-this._drag… argument
224 var B=A.clientY-this._dragY;
225 this._dragX=A.clientX;
226 this._dragY=A.clientY;
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…
234 A.x+=this._viewOffset;
235 if(A.x<0||A.x>C.offsetWidth||A.y<0||A.y>C.offsetHeight){this._dragging=false;
237 Timeline._Band.prototype._onMouseScroll=function(G,H,B){var A=new Date();
238 A=A.getTime();
239 if(!this._lastScrollTime||((A-this._lastScrollTime)>50)){this._lastScrollTime=A;
256 Timeline._Band.prototype._onDblClick=function(C,B,E){var A=SimileAjax.DOM.getEventRelativeCoordinat…
257 var D=A.x-(this._viewLength/2-this._viewOffset);
260 Timeline._Band.prototype._onKeyDown=function(B,A,C){if(!this._dragging){switch(A.keyCode){case 27:b… argument
269 SimileAjax.DOM.cancelEvent(A);
273 Timeline._Band.prototype._onKeyUp=function(B,A,C){if(!this._dragging){this._scrollSpeed=this._origi… argument
274 switch(A.keyCode){case 35:this.setCenterVisibleDate(this._eventSource.getLatestDate());
284 SimileAjax.DOM.cancelEvent(A);
288 Timeline._Band.prototype._autoScroll=function(D,C){var A=this;
289 var B=SimileAjax.Graphics.createAnimation(function(E,F){A._moveEther(F);
293 Timeline._Band.prototype._moveEther=function(A){this.closeBubble(); argument
294 if(!this._timeline.shiftOK(this._index,A)){return ;
295 }this._viewOffset+=A;
296 this._ether.shiftPixels(-A);
310 Timeline._Band.prototype._fireOnScroll=function(){for(var A=0;
311 A<this._onScrollListeners.length;
312 A++){this._onScrollListeners[A](this);
314 Timeline._Band.prototype._setSyncWithBandDate=function(){if(this._syncWithBand){var A=this._ether.p…
315 this._syncWithBand.setCenterVisibleDate(A);
317 Timeline._Band.prototype._onHighlightBandScroll=function(){if(this._syncWithBand){var A=this._syncW…
318 var B=this._ether.dateToPixelOffset(A);
326 Timeline._Band.prototype._positionHighlight=function(){if(this._syncWithBand){var A=this._syncWithB…
328 if(this._highlight){this._etherPainter.setHighlight(A,B);
341 Timeline._Band.prototype._paintDecorators=function(){for(var A=0;
342 A<this._decorators.length;
343 A++){this._decorators[A].paint();
345 Timeline._Band.prototype._softPaintDecorators=function(){for(var A=0;
346 A<this._decorators.length;
347 A++){this._decorators[A].softPaint();
354 Timeline.CompactEventPainter=function(A){this._params=A; argument
361 Timeline.CompactEventPainter.prototype.initialize=function(B,A){this._band=B; argument
362 this._timeline=A;
369 …line.CompactEventPainter.prototype.addOnSelectListener=function(A){this._onSelectListeners.push(A); argument
371 Timeline.CompactEventPainter.prototype.removeOnSelectListener=function(B){for(var A=0;
372 A<this._onSelectListeners.length;
373 A++){if(this._onSelectListeners[A]==B){this._onSelectListeners.splice(A,1);
378 Timeline.CompactEventPainter.prototype.setFilterMatcher=function(A){this._filterMatcher=A; argument
382 Timeline.CompactEventPainter.prototype.setHighlightMatcher=function(A){this._highlightMatcher=A; argument
410 var A=null;
413 }else{if(A!=null&&A.getStart().getTime()==E.getStart().getTime()){M[M.length-1].push(E);
415 A=E;
436 var A=document.createElement("span");
437 A.className="timeline-event-label";
438 this._backLayer.appendChild(A);
439 this._frc=SimileAjax.Graphics.getFontRenderingContext(A);
452 …ctEventPainter.prototype.paintEvent=function(B,C,D,A){if(B.isInstant()){this.paintInstantEvent(B,C… argument
453 }else{this.paintDurationEvent(B,C,D,A);
455 …r.prototype.paintInstantEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseInstantEven… argument
456 }else{this.paintPreciseInstantEvent(B,C,D,A);
458 ….prototype.paintDurationEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseDurationEve… 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);
479 var A=[];
482 C++){A.push(J[C].getProperty("tooltip")||J[C].getText());
483 }var E={tooltip:A.join("; ")};
601 var A=this._paintEventLabel({tooltip:e},{text:e},F+J,Z+m,H.width,H.height,c);
602 var h=function(r,i,s){return I._onClickMultiplePreciseInstantEvent(A.elmt,i,o);
604 SimileAjax.DOM.registerEvent(A.elmt,"mousedown",h);
607 n++){this._eventIdToElmt[o[n].getID()]=A.elmt;
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);
673 var A=F(S.end)-d;
677 Q++){W.push({start:L,end:A});
714 var A=C[B];
715 if(F+A.start<G){E=false;
724 var A=this._timeline.getDocument().createElement("div");
725 A.className="timeline-event-icon"+("className" in D?(" "+D.className):"");
726 A.style.left=G+"px";
727 A.style.top=H+"px";
728 A.appendChild(B);
729 if("tooltip" in C&&typeof C.tooltip=="string"){A.title=C.tooltip;
730 }this._eventLayer.appendChild(A);
731 return{left:G,top:H,width:E.iconWidth,height:E.iconHeight,elmt:A};
733 Timeline.CompactEventPainter.prototype._paintEventLabel=function(E,I,C,F,A,G,D){var H=this._timelin… argument
737 B.style.width=(A+1)+"px";
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; argument
762 Timeline.CompactEventPainter.prototype._createHighlightDiv=function(A,C,E){if(A>=0){var D=this._tim… argument
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
781 A.cancelBubble=true;
782 SimileAjax.DOM.cancelEvent(A);
785 Timeline.CompactEventPainter.prototype._onClickInstantEvent=function(C,A,B){var D=SimileAjax.DOM.ge… argument
788 A.cancelBubble=true;
789 SimileAjax.DOM.cancelEvent(A);
792 Timeline.CompactEventPainter.prototype._onClickDurationEvent=function(F,B,C){if("pageX" in B){var A
795 var A=B.offsetX+D.left;
797 }this._showBubble(A,E,[C]);
803 Timeline.CompactEventPainter.prototype.showBubble=function(A){var B=this._eventIdToElmt[A.getID()]; argument
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
815 SimileAjax.Graphics.createBubbleForContentAndPoint(E,A,F,this._params.theme.event.bubble.width);
817 Timeline.CompactEventPainter.prototype._fireOnSelect=function(B){for(var A=0;
818 A<this._onSelectListeners.length;
819 A++){this._onSelectListeners[A](B);
824 Timeline.SpanHighlightDecorator=function(A){this._unit=A.unit!=null?A.unit:SimileAjax.NativeDateUni… argument
825 this._startDate=(typeof A.startDate=="string")?this._unit.parseFromObject(A.startDate):A.startDate;
826 this._endDate=(typeof A.endDate=="string")?this._unit.parseFromObject(A.endDate):A.endDate;
827 this._startLabel=A.startLabel!=null?A.startLabel:"";
828 this._endLabel=A.endLabel!=null?A.endLabel:"";
829 this._color=A.color;
830 this._cssClass=A.cssClass!=null?A.cssClass:null;
831 this._opacity=A.opacity!=null?A.opacity:100;
832 this._zIndex=(A.inFront!=null&&A.inFront)?113:10;
834 Timeline.SpanHighlightDecorator.prototype.initialize=function(B,A){this._band=B; argument
835 this._timeline=A;
843 var A=this._band.getMaxDate();
844 if(this._unit.compare(this._startDate,A)<0&&this._unit.compare(this._endDate,E)>0){E=this._unit.lat…
845 A=this._unit.earlier(A,this._endDate);
847 var I=this._band.dateToPixelOffset(A);
886 Timeline.PointHighlightDecorator=function(A){this._unit=A.unit!=null?A.unit:SimileAjax.NativeDateUn… argument
887 this._date=(typeof A.date=="string")?this._unit.parseFromObject(A.date):A.date;
888 this._width=A.width!=null?A.width:10;
889 this._color=A.color;
890 this._cssClass=A.cssClass!=null?A.cssClass:"";
891 this._opacity=A.opacity!=null?A.opacity:100;
893 Timeline.PointHighlightDecorator.prototype.initialize=function(B,A){this._band=B; argument
894 this._timeline=A;
903 if(this._unit.compare(this._date,E)<0&&this._unit.compare(this._date,C)>0){var A=this._band.dateToP…
904 var B=A-Math.round(this._width/2);
922 Timeline.DetailedEventPainter=function(A){this._params=A; argument
929 Timeline.DetailedEventPainter.prototype.initialize=function(B,A){this._band=B; argument
930 this._timeline=A;
939 …ine.DetailedEventPainter.prototype.addOnSelectListener=function(A){this._onSelectListeners.push(A); argument
941 Timeline.DetailedEventPainter.prototype.removeOnSelectListener=function(B){for(var A=0;
942 A<this._onSelectListeners.length;
943 A++){if(this._onSelectListeners[A]==B){this._onSelectListeners.splice(A,1);
948 Timeline.DetailedEventPainter.prototype.setFilterMatcher=function(A){this._filterMatcher=A; argument
952 Timeline.DetailedEventPainter.prototype.setHighlightMatcher=function(A){this._highlightMatcher=A; argument
965 var A=(this._highlightMatcher!=null)?this._highlightMatcher:function(K){return -1;
969 if(J(H)){this.paintEvent(H,F,this._params.theme,A(H));
979 var A=document.createElement("span");
980 A.className="timeline-event-label";
981 this._backLayer.appendChild(A);
982 this._frc=SimileAjax.Graphics.getFontRenderingContext(A);
996 …edEventPainter.prototype.paintEvent=function(B,C,D,A){if(B.isInstant()){this.paintInstantEvent(B,C… argument
997 }else{this.paintDurationEvent(B,C,D,A);
999 …r.prototype.paintInstantEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseInstantEven… argument
1000 }else{this.paintPreciseInstantEvent(B,C,D,A);
1002 ….prototype.paintDurationEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseDurationEve… argument
1003 }else{this.paintPreciseDurationEvent(B,C,D,A);
1009 var A=Math.round(H+P.iconWidth/2);
1012 var F=this._findFreeTrackForSolid(A,H);
1014 var K=A+S.event.label.offsetFromLine;
1041 var A=Math.round(K+S.iconWidth/2);
1049 var N=A+W.event.label.offsetFromLine;
1075 var A=Math.round(this._band.dateToPixelOffset(R));
1077 var D=this._findFreeTrackForSolid(A);
1080 var B=this._paintEventTape(K,D,F,A,P,100,O,T);
1106 var A=Math.round(this._band.dateToPixelOffset(W));
1109 var D=this._findFreeTrackForSolid(A);
1112 var R=this._paintEventTape(M,D,H,A,Y.event.duration.impreciseColor,Y.event.duration.impreciseOpacit…
1131 Timeline.DetailedEventPainter.prototype._findFreeTrackForSolid=function(D,A){for(var C=0; argument
1134 if(Math.min(B.solid,B.text)>D&&(!(A)||B.line>A)){return 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; argument
1148 E=this._findFreeUpperTrackForText(F,A);
1152 E=this._findFreeLowerTrackForText(F,A);
1154 }else{var G=this._findFreeUpperTrackForText(0,A);
1155 var J=this._findFreeLowerTrackForText(1,A);
1174 Timeline.DetailedEventPainter.prototype._findFreeLowerTrackForText=function(A,C){for(; argument
1175 A<this._lowerTracks.length;
1176 A++){var B=this._lowerTracks[A];
1178 }}return A;
1180 Timeline.DetailedEventPainter.prototype._findFreeUpperTrackForText=function(A,C){for(; argument
1181 A<this._upperTracks.length;
1182 A++){var B=this._upperTracks[A];
1184 }}return A;
1186 …dEventPainter.prototype._getTrackData=function(A){return(A<0)?this._upperTracks[-A-1]:this._lowerT… argument
1188 Timeline.DetailedEventPainter.prototype._paintEventLine=function(J,E,D,A,G,F){var H=Math.round(G.tr… argument
1189 var I=Math.round(Math.abs(A-D)*G.trackIncrement);
1196 if(D>A){B.style.top=(H-I)+"px";
1208 var A=this._timeline.getDocument().createElement("div");
1209 A.style.position="absolute";
1210 A.style.left=C+"px";
1211 A.style.top=I+"px";
1212 A.appendChild(D);
1213 A.style.cursor="pointer";
1214 if(J._title!=null){A.title=J._title;
1215 }this._eventLayer.appendChild(A);
1216 return{left:C,top:I,width:F.iconWidth,height:F.iconHeight,elmt:A};
1218 Timeline.DetailedEventPainter.prototype._paintEventLabel=function(I,J,C,F,A,G,E){var H=this._timeli… argument
1222 K.style.width=A+"px";
1231 B.style.width=A+"px";
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
1260 Timeline.DetailedEventPainter.prototype._createHighlightDiv=function(A,C,E){if(A>=0){var D=this._ti… argument
1262 var B=G.highlightColors[Math.min(A,G.highlightColors.length-1)];
1273 Timeline.DetailedEventPainter.prototype._onClickInstantEvent=function(C,A,B){var D=SimileAjax.DOM.g… argument
1276 A.cancelBubble=true;
1277 SimileAjax.DOM.cancelEvent(A);
1280 …etailedEventPainter.prototype._onClickDurationEvent=function(F,B,C){if("pageX" in B){var A=B.pageX;
1283 var A=B.offsetX+D.left;
1285 }this._showBubble(A,E,C);
1291 Timeline.DetailedEventPainter.prototype.showBubble=function(A){var B=this._eventIdToElmt[A.getID()]; argument
1293 this._showBubble(C.left+B.offsetWidth/2,C.top+B.offsetHeight/2,A);
1296 var A=this._params.theme.event.bubble;
1299 SimileAjax.Graphics.createBubbleForContentAndPoint(D,B,E,A.width,null,A.maxHeight);
1301 Timeline.DetailedEventPainter.prototype._fireOnSelect=function(A){for(var B=0; argument
1303 B++){this._onSelectListeners[B](A);
1308 Timeline.GregorianEtherPainter=function(A){this._params=A; argument
1309 this._theme=A.theme;
1310 this._unit=A.unit;
1311 this._multiple=("multiple" in A)?A.multiple:1;
1321 var A=("showLine" in this._params)?this._params.showLine:this._theme.ether.interval.line.show;
1322 …rvalMarkerLayout=new Timeline.EtherIntervalMarkerLayout(this._timeline,this._band,this._theme,D,A);
1325 Timeline.GregorianEtherPainter.prototype.setHighlight=function(A,B){this._highlight.position(A,B); argument
1337 var A=this._band.getTimeZone();
1339 SimileAjax.DateTime.roundDownToInterval(C,this._unit,A,this._multiple,this._theme.firstDayOfWeek);
1351 Timeline.GregorianEtherPainter.prototype.zoom=function(A){if(A!=0){this._unit+=A; argument
1363 D++){var A=this._zones[D];
1364 if(E<A.endTime){if(E>A.startTime){this._zones.splice(D,0,{startTime:A.startTime,endTime:E,unit:A.un…
1366 A.startTime=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;
1371 }else{A.multiple=C.multiple;
1372 A.unit=C.unit;
1373 E=A.endTime;
1383 var A=("showLine" in this._params)?this._params.showLine:this._theme.ether.interval.line.show;
1384 …rvalMarkerLayout=new Timeline.EtherIntervalMarkerLayout(this._timeline,this._band,this._theme,D,A);
1387 …ne.HotZoneGregorianEtherPainter.prototype.setHighlight=function(A,B){this._highlight.position(A,B); argument
1398 var A=this._band.getMaxDate();
1410 while(E>=0){if(A.getTime()>this._zones[E].startTime){break;
1416 var F=new Date(Math.min(A.getTime(),G.endTime));
1425 Timeline.HotZoneGregorianEtherPainter.prototype.zoom=function(A){if(A!=0){for(var B=0; argument
1427 ++B){if(this._zones[B]){this._zones[B].unit+=A;
1429 Timeline.YearCountEtherPainter=function(A){this._params=A; argument
1430 this._theme=A.theme;
1431 this._startDate=SimileAjax.DateTime.parseGregorianDateTime(A.startDate);
1432 this._multiple=("multiple" in A)?A.multiple:1;
1442 var A=("showLine" in this._params)?this._params.showLine:this._theme.ether.interval.line.show;
1443 …rvalMarkerLayout=new Timeline.EtherIntervalMarkerLayout(this._timeline,this._band,this._theme,D,A);
1446 Timeline.YearCountEtherPainter.prototype.setHighlight=function(A,B){this._highlight.position(A,B); argument
1461 var A=function(G){for(var H=0; method in Timeline.YearCountEtherPainter.paint
1469 A(B);
1474 Timeline.QuarterlyEtherPainter=function(A){this._params=A; argument
1475 this._theme=A.theme;
1476 this._startDate=SimileAjax.DateTime.parseGregorianDateTime(A.startDate);
1486 var A=("showLine" in this._params)?this._params.showLine:this._theme.ether.interval.line.show;
1487 …rvalMarkerLayout=new Timeline.EtherIntervalMarkerLayout(this._timeline,this._band,this._theme,D,A);
1490 Timeline.QuarterlyEtherPainter.prototype.setHighlight=function(A,B){this._highlight.position(A,B); argument
1505 var A=function(F){F.setUTCMonth(F.getUTCMonth()+3); method in Timeline.QuarterlyEtherPainter.paint
1512 A(B);
1517 Timeline.EtherIntervalMarkerLayout=function(I,L,C,E,M){var A=I.isHorizontal();
1518 if(A){if(E=="Top"){this.positionDiv=function(O,N){O.style.left=N+"px";
1533 var H=(A?"h":"v")+E;
1541 }if(A){V.style.left=U+"px";
1553 }if(A){X.style.left=Q+"px";
1568 Timeline.EtherHighlight=function(B,E,D,C){var A=B.isHorizontal();
1581 if(A){this._highlightDiv.style.left=I+"px";
1592 Timeline.LinearEther=function(A){this._params=A; argument
1593 this._interval=A.interval;
1594 this._pixelsPerInterval=A.pixelsPerInterval;
1596 Timeline.LinearEther.prototype.initialize=function(B,A){this._band=B; argument
1597 this._timeline=A;
1598 this._unit=A.getUnit();
1607 Timeline.LinearEther.prototype.setDate=function(A){this._start=this._unit.cloneValue(A); argument
1609 Timeline.LinearEther.prototype.shiftPixels=function(B){var A=this._interval*B/this._pixelsPerInterv…
1610 this._start=this._unit.change(this._start,A);
1612 Timeline.LinearEther.prototype.dateToPixelOffset=function(B){var A=this._unit.compare(B,this._start…
1613 return this._pixelsPerInterval*A/this._interval;
1615 Timeline.LinearEther.prototype.pixelOffsetToDate=function(B){var A=B*this._interval/this._pixelsPer…
1616 return this._unit.change(this._start,A);
1618 Timeline.LinearEther.prototype.zoom=function(D){var A=0;
1626 A=this._band._zoomSteps[C].unit-this._band._zoomSteps[B].unit;
1627 return A;
1629 Timeline.HotZoneEther=function(A){this._params=A; argument
1630 this._interval=A.interval;
1631 this._pixelsPerInterval=A.pixelsPerInterval;
1632 this._theme=A.theme;
1646 C++){var A=this._zones[C];
1647 …._unit.compare(F,A.endTime)<0){if(this._unit.compare(F,A.startTime)>0){this._zones.splice(C,0,{sta…
1649 A.startTime=F;
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;
1654 }else{A.magnify*=G.magnify;
1655 F=A.endTime;
1664 Timeline.HotZoneEther.prototype.setDate=function(A){this._start=this._unit.cloneValue(A); argument
1666 Timeline.HotZoneEther.prototype.shiftPixels=function(A){this._start=this.pixelOffsetToDate(A); argument
1668 ….HotZoneEther.prototype.dateToPixelOffset=function(A){return this._dateDiffToPixelOffset(this._sta… argument
1670 Timeline.HotZoneEther.prototype.pixelOffsetToDate=function(A){return this._pixelOffsetToDate(A,this… argument
1672 Timeline.HotZoneEther.prototype.zoom=function(D){var A=0;
1680 A=this._band._zoomSteps[C].unit-this._band._zoomSteps[B].unit;
1681 return A;
1691 var A=this._unit.earlier(B,F.endTime);
1692 E+=(this._unit.compare(A,I)/(D/F.magnify));
1693 I=A;
1699 var A=this._unit.later(B,F.startTime);
1700 E+=(this._unit.compare(A,I)/(D/F.magnify));
1701 I=A;
1710 }while(E>0){var A=this._zones[F];
1711 var H=G/A.magnify;
1712 if(A.endTime==Number.POSITIVE_INFINITY){D=this._unit.change(D,E*H);
1714 }else{var C=this._unit.compare(A.endTime,D)/H;
1717 }else{D=A.endTime;
1724 while(E>0){var A=this._zones[F];
1725 var H=G/A.magnify;
1726 if(A.startTime==Number.NEGATIVE_INFINITY){D=this._unit.change(D,-E*H);
1728 }else{var C=this._unit.compare(D,A.startTime)/H;
1731 }else{D=A.startTime;
1751 var A=E.getEventSource.getEvent(D[4]);
1752 return{band:E,evt:A};
1754 …meline.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
1760 this._timeZone=A;
1765 …ine.GregorianDateLabeller.getMonthName=function(B,A){return Timeline.GregorianDateLabeller.monthNa… argument
1767 Timeline.GregorianDateLabeller.prototype.labelInterval=function(A,C){var B=Timeline.GregorianDateLa… argument
1769 }return B.call(this,A,C);
1771 …orianDateLabeller.prototype.labelPrecise=function(A){return SimileAjax.DateTime.removeTimeZoneOffs… argument
1780 case SimileAjax.DateTime.MINUTE:var A=B.getUTCMinutes();
1781 if(A==0){D=B.getUTCHours()+":00";
1783 }else{D=A;
1791 case SimileAjax.DateTime.MONTH:var A=B.getUTCMonth();
1792 if(A!=0){D=Timeline.GregorianDateLabeller.getMonthName(A,this._locale);
1805 Timeline.OriginalEventPainter=function(A){this._params=A; argument
1813 Timeline.OriginalEventPainter.prototype.initialize=function(B,A){this._band=B; argument
1814 this._timeline=A;
1823 …ine.OriginalEventPainter.prototype.addOnSelectListener=function(A){this._onSelectListeners.push(A); argument
1825 Timeline.OriginalEventPainter.prototype.removeOnSelectListener=function(B){for(var A=0;
1826 A<this._onSelectListeners.length;
1827 A++){if(this._onSelectListeners[A]==B){this._onSelectListeners.splice(A,1);
1830 …OriginalEventPainter.prototype.addEventPaintListener=function(A){this._eventPaintListeners.push(A); argument
1832 Timeline.OriginalEventPainter.prototype.removeEventPaintListener=function(B){for(var A=0;
1833 A<this._eventPaintListeners.length;
1834 A++){if(this._eventPaintListeners[A]==B){this._eventPaintListeners.splice(A,1);
1839 Timeline.OriginalEventPainter.prototype.setFilterMatcher=function(A){this._filterMatcher=A; argument
1843 Timeline.OriginalEventPainter.prototype.setHighlightMatcher=function(A){this._highlightMatcher=A; argument
1857 var A=(this._highlightMatcher!=null)?this._highlightMatcher:function(K){return -1;
1861 if(J(H)){this.paintEvent(H,F,this._params.theme,A(H));
1872 var A=document.createElement("span");
1873 A.className="timeline-event-label";
1874 this._backLayer.appendChild(A);
1875 this._frc=SimileAjax.Graphics.getFontRenderingContext(A);
1888 …alEventPainter.prototype.paintEvent=function(B,C,D,A){if(B.isInstant()){this.paintInstantEvent(B,C… argument
1889 }else{this.paintDurationEvent(B,C,D,A);
1891 …r.prototype.paintInstantEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseInstantEven… argument
1892 }else{this.paintPreciseInstantEvent(B,C,D,A);
1894 ….prototype.paintDurationEvent=function(B,C,D,A){if(B.isImprecise()){this.paintImpreciseDurationEve… argument
1895 }else{this.paintPreciseDurationEvent(B,C,D,A);
1901 var A=Math.round(I+S.iconWidth/2);
1905 var M=A+V.event.label.offsetFromLine;
1930 var A=Math.round(K+U.iconWidth/2);
1934 var O=A+Z.event.label.offsetFromLine;
1963 var A=Math.round(this._band.dateToPixelOffset(U));
1968 var P=Math.max(I,A);
1973 var B=this._paintEventTape(M,O,H,A,S,100,R,W,0);
1995 var A=Math.round(this._band.dateToPixelOffset(Z));
2001 var S=Math.max(J,A);
2006 var U=this._paintEventTape(O,R,K,A,b.event.duration.impreciseColor,b.event.duration.impreciseOpacit…
2021 ….prototype._encodeEventElID=function(B,A){return Timeline.EventUtils.encodeEventElID(this._timelin… argument
2023 Timeline.OriginalEventPainter.prototype._findFreeTrack=function(E,D){var A=E.getTrackNum();
2024 if(A!=null){return A;
2038 var A=this._timeline.getDocument().createElement("div");
2039 A.className=this._getElClassName("timeline-event-icon",K,"icon");
2040 A.id=this._encodeEventElID("icon",K);
2041 A.style.left=C+"px";
2042 A.style.top=J+"px";
2043 A.appendChild(E);
2044 if(K._title!=null){A.title=K._title;
2045 }this._eventLayer.appendChild(A);
2046 return{left:C,top:J,width:G.iconWidth,height:G.iconHeight,elmt:A};
2048 Timeline.OriginalEventPainter.prototype._paintEventLabel=function(K,L,D,H,A,J,G,E,C){var I=this._ti… argument
2053 B.style.width=A+"px";
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
2085 …Painter.prototype._getLabelDivClassName=function(A){return this._getElClassName("timeline-event-la… argument
2087 Timeline.OriginalEventPainter.prototype._getElClassName=function(D,C,A){var E=C.getClassName(),B=[]; argument
2088 if(E){if(A){B.push(A+"-"+E+" ");
2093 Timeline.OriginalEventPainter.prototype._getHighlightColor=function(A,B){var C=B.event.highlightCol… argument
2094 return C[Math.min(A,C.length-1)];
2096 Timeline.OriginalEventPainter.prototype._createHighlightDiv=function(A,D,F,B){var G=null; argument
2097 if(A>=0){var E=this._timeline.getDocument();
2098 var C=this._getHighlightColor(A,F);
2112 Timeline.OriginalEventPainter.prototype._onClickInstantEvent=function(C,A,B){var D=SimileAjax.DOM.g… argument
2115 A.cancelBubble=true;
2116 SimileAjax.DOM.cancelEvent(A);
2119 …riginalEventPainter.prototype._onClickDurationEvent=function(F,B,C){if("pageX" in B){var A=B.pageX;
2122 var A=B.offsetX+D.left;
2124 }this._showBubble(A,E,C);
2130 Timeline.OriginalEventPainter.prototype.showBubble=function(A){var B=this._eventIdToElmt[A.getID()]; argument
2132 this._showBubble(C.left+B.offsetWidth/2,C.top+B.offsetHeight/2,A);
2135 var A=this._params.theme.event.bubble;
2138 SimileAjax.Graphics.createBubbleForContentAndPoint(D,B,E,A.width,null,A.maxHeight);
2140 Timeline.OriginalEventPainter.prototype._fireOnSelect=function(A){for(var B=0; argument
2142 B++){this._onSelectListeners[B](A);
2144 Timeline.OriginalEventPainter.prototype._fireEventPaintListeners=function(D,A,C){for(var B=0; argument
2146 B++){this._eventPaintListeners[B](this._band,D,A,C);
2151 Timeline.OverviewEventPainter=function(A){this._params=A; argument
2156 Timeline.OverviewEventPainter.prototype.initialize=function(B,A){this._band=B; argument
2157 this._timeline=A;
2163 …ine.OverviewEventPainter.prototype.addOnSelectListener=function(A){this._onSelectListeners.push(A); argument
2165 Timeline.OverviewEventPainter.prototype.removeOnSelectListener=function(B){for(var A=0;
2166 A<this._onSelectListeners.length;
2167 A++){if(this._onSelectListeners[A]==B){this._onSelectListeners.splice(A,1);
2172 Timeline.OverviewEventPainter.prototype.setFilterMatcher=function(A){this._filterMatcher=A; argument
2176 Timeline.OverviewEventPainter.prototype.setHighlightMatcher=function(A){this._highlightMatcher=A; argument
2187 var A=(this._highlightMatcher!=null)?this._highlightMatcher:function(J){return -1;
2191 if(I(G)){this.paintEvent(G,F,this._params.theme,A(G));
2197 Timeline.OverviewEventPainter.prototype._prepareForPainting=function(){var A=this._band;
2199 if(this._highlightLayer!=null){A.removeLayerDiv(this._highlightLayer);
2200 }this._highlightLayer=A.createLayerDiv(105,"timeline-band-highlights");
2202 if(this._eventLayer!=null){A.removeLayerDiv(this._eventLayer);
2203 }this._eventLayer=A.createLayerDiv(110,"timeline-band-events");
2206 …ewEventPainter.prototype.paintEvent=function(B,C,D,A){if(B.isInstant()){this.paintInstantEvent(B,C… argument
2207 }else{this.paintDurationEvent(B,C,D,A);
2209 Timeline.OverviewEventPainter.prototype.paintInstantEvent=function(I,H,E,A){var F=I.getStart(); argument
2215 this._createHighlightDiv(A,G,E);
2217 Timeline.OverviewEventPainter.prototype.paintDurationEvent=function(L,K,H,B){var A=L.getLatestStart…
2219 var J=Math.round(this._band.dateToPixelOffset(A));
2233 var A=L-D;
2239 M.style.width=A+"px";
2245 return{left:D,top:I,width:A,height:J,elmt:M};
2249 var A=1;
2258 return{left:C,top:H,width:A,height:I,elmt:K};
2260 Timeline.OverviewEventPainter.prototype._createHighlightDiv=function(A,C,E){if(A>=0){var D=this._ti… argument
2262 var B=G.highlightColors[Math.min(A,G.highlightColors.length-1)];
2273 Timeline.OverviewEventPainter.prototype.showBubble=function(A){}; argument
2277 Timeline.DefaultEventSource=function(A){this._events=(A instanceof Object)?A:new SimileAjax.EventIn… argument
2280 Timeline.DefaultEventSource.prototype.addListener=function(A){this._listeners.push(A); argument
2282 Timeline.DefaultEventSource.prototype.removeListener=function(B){for(var A=0;
2283 A<this._listeners.length;
2284 A++){if(this._listeners[A]==B){this._listeners.splice(A,1);
2287 Timeline.DefaultEventSource.prototype.loadXML=function(G,A){var C=this._getBaseURL(A); argument
2315 G++){var A=H.events[G];
2316 var C=A.isDuration||(A.durationEvent!=null&&!A.durationEvent);
2317A)?A.id:undefined,start:E(A.start),end:E(A.end),latestStart:E(A.latestStart),earliestEnd:E(A.earli…
2318 L._obj=A;
2339 var A=F.firstChild;
2340A!=null){if(A.nodeType==1&&A.firstChild!=null&&A.firstChild.nodeType==1&&A.firstChild.firstChild!=…
2341 }A=A.nextSibling;
2354 Timeline.DefaultEventSource.prototype.add=function(A){this._events.add(A); argument
2355 this._fire("onAddOne",[A]);
2357 Timeline.DefaultEventSource.prototype.addMany=function(A){for(var B=0; argument
2358 B<A.length;
2359 B++){this._events.add(A[B]);
2365 Timeline.DefaultEventSource.prototype.getEvent=function(A){return this._events.getEvent(A); argument
2367 …e.DefaultEventSource.prototype.getEventIterator=function(A,B){return this._events.getIterator(A,B); argument
2369 …ventSource.prototype.getEventReverseIterator=function(A,B){return this._events.getReverseIterator( 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);
2385 Timeline.DefaultEventSource.prototype._getBaseURL=function(A){if(A.indexOf("://")<0){var C=this._ge… argument
2386 if(A.substr(0,1)=="/"){A=C.substr(0,C.indexOf("/",C.indexOf("://")+3))+A;
2387 }else{A=C+A;
2388 }}var B=A.lastIndexOf("/");
2390 }else{return A.substr(0,B+1);
2392 Timeline.DefaultEventSource.prototype._resolveRelativeURL=function(A,B){if(A==null||A==""){return A; argument
2393 }else{if(A.indexOf("://")>0){return A;
2394 }else{if(A.substr(0,1)=="/"){return B.substr(0,B.indexOf("/",B.indexOf("://")+3))+A;
2395 }else{return B+A;
2397 Timeline.DefaultEventSource.Event=function(A){function D(E){return(A[E]!=null&&A[E]!="")?A[E]:null; argument
2398 }var C=A.id?A.id.trim():"";
2400 this._instant=A.instant||(A.end==null);
2401 this._start=A.start;
2402 this._end=(A.end!=null)?A.end:A.start;
2403 this._latestStart=(A.latestStart!=null)?A.latestStart:(A.instant?this._end:this._start);
2404 this._earliestEnd=(A.earliestEnd!=null)?A.earliestEnd:this._end;
2419 this._text=(A.text!=null)?SimileAjax.HTML.deEntify(A.text):"";
2421 }this._description=SimileAjax.HTML.deEntify(A.description);
2456 },getProperty:function(A){return null; argument
2459 },setWikiInfo:function(B,A){this._wikiURL=B; argument
2460 this._wikiSection=A;
2461 },fillDescription:function(A){A.innerHTML=this._description; argument
2470 var A=document.createElement("a");
2471 A.href=B;
2472 A.target="new";
2473 A.innerHTML=Timeline.strings[Timeline.clientLocale].wikiLinkLabel;
2475 D.appendChild(A);
2477 },fillTime:function(A,B){if(this._instant){if(this.isImprecise()){A.appendChild(A.ownerDocument.cre… argument
2478 A.appendChild(A.ownerDocument.createElement("br"));
2479 A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._end)));
2480 }else{A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._start)));
2481 }}else{if(this.isImprecise()){A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._sta…
2482 A.appendChild(A.ownerDocument.createElement("br"));
2483 A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._earliestEnd)+" ~ "+B.labelPrecise…
2484 }else{A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._start)));
2485 A.appendChild(A.ownerDocument.createElement("br"));
2486 A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._end)));
2487 }}},fillInfoBubble:function(A,E,M){var K=A.ownerDocument; argument
2494 A.appendChild(D);
2503 A.appendChild(L);
2507 A.appendChild(N);
2511 A.appendChild(G);
2515 A.appendChild(F);
2523 }var A=Timeline.ClassicTheme.implementations[B];
2524 if(A==null){A=Timeline.ClassicTheme._Impl;
2525 }return new A();
2533 …tLabelBackground:false,bubble:{width:250,maxHeight:0,titleStyler:function(A){A.className="timeline… argument
2534 },bodyStyler:function(A){A.className="timeline-event-bubble-body"; argument
2535 },imageStyler:function(A){A.className="timeline-event-bubble-image"; argument
2536 },wikiStyler:function(A){A.className="timeline-event-bubble-wiki"; argument
2537 },timeStyler:function(A){A.className="timeline-event-bubble-time"; argument
2556 var A=new Timeline._Impl(D,C,E,F,B);
2557 Timeline.timelines[B]=A;
2558 return A;
2565 if("eventPainterParams" in F){for(var A in F.eventPainterParams){I[A]=F.eventPainterParams[A];
2583 if("eventPainterParams" in F){for(var A in F.eventPainterParams){I[A]=F.eventPainterParams[A];
2599 Timeline.setDefaultTheme=function(A){Timeline._defaultTheme=A; argument
2601 Timeline.loadXML=function(A,C){var D=function(G,F,E){alert("Failed to load data xml from "+A+"\n"+G… argument
2605 }C(E,A);
2607 SimileAjax.XmlHttp.get(A,D,B);
2615 Timeline.getTimelineFromID=function(A){return Timeline.timelines[A]; argument
2617 Timeline.writeVersion=function(A){document.getElementById(A).innerHTML=this.display_version; argument
2619 Timeline._Impl=function(C,B,D,E,A){SimileAjax.WindowManager.initialize(); argument
2628 this.timelineID=A;
2635 Timeline._Impl.prototype.dispose=function(){for(var A=0;
2636 A<this._bands.length;
2637 A++){this._bands[A].dispose();
2645 Timeline._Impl.prototype.getBand=function(A){return this._bands[A]; argument
2653 Timeline._Impl.prototype.paint=function(){for(var A=0;
2654 A<this._bands.length;
2655 A++){this._bands[A].paint();
2659 Timeline._Impl.prototype.addDiv=function(A){this._containerDiv.appendChild(A); argument
2661 Timeline._Impl.prototype.removeDiv=function(A){this._containerDiv.removeChild(A); argument
2675 Timeline._Impl.prototype.loadXML=function(B,D){var A=this;
2677 A.hideLoadingMessage();
2682 }finally{A.hideLoadingMessage();
2699 Timeline._Impl.prototype._autoWidthScrollListener=function(A){A.getTimeline()._autoWidthCheck(false… argument
2701 Timeline._Impl.prototype._autoWidthCheck=function(C){var A=this;
2702 var B=A._starting;
2704 function E(){var G=A.getWidthStyle();
2705 if(B){A._containerDiv.style[G]=D+"px";
2706 }else{A._autoResizing=true;
2709 SimileAjax.jQuery(A._containerDiv).animate(H,A.autoWidthAnimationTime,"linear",function(){A._autoRe…
2712 var G=A.getPixelWidth();
2713 if(A._autoResizing){return ;
2715 I<A._bands.length;
2716 I++){A._bands[I].checkAutoWidth();
2717 H+=A._bandInfos[I].width;
2720 A._distributeWidths();
2721 }}if(!A.autoWidth){return ;
2730 }var A=SimileAjax.Graphics.createTranslucentImage(Timeline.urlPrefix+(this.isHorizontal()?"images/c…
2731 A.className="timeline-copyright";
2732 A.title="Timeline copyright SIMILE - www.code.google.com/p/simile-widgets/";
2733 SimileAjax.DOM.registerEvent(A,"click",function(){window.location="http://code.google.com/p/simile-…
2735 H.appendChild(A);
2769 if(H>0){var A=parseInt(E.substr(0,H));
2770 D=Math.round(A*B/100);
2777 Timeline._Impl.prototype.shiftOK=function(C,B){var F=B>0,A=B<0;
2778 if((F&&this.timeline_start==null)||(A&&this.timeline_stop==null)||(B==0)){return(true);
2784 }if((F&&this.timeline_at_start)||(A&&this.timeline_at_stop)){return(false);
2797 Timeline._Impl.prototype.zoom=function(D,A,G,F){var C=new RegExp("^timeline-band-([0-9]+)$"); argument
2801 }if(E!=null){this._bands[E].zoom(D,A,G,F);
2808 Timeline.NativeDateUnit.createLabeller=function(B,A){return new Timeline.GregorianDateLabeller(B,A); argument
2812 Timeline.NativeDateUnit.cloneValue=function(A){return new Date(A.getTime()); argument
2814 Timeline.NativeDateUnit.getParser=function(A){if(typeof A=="string"){A=A.toLowerCase(); argument
2815 }return(A=="iso8601"||A=="iso 8601")?Timeline.DateTime.parseIso8601DateTime:Timeline.DateTime.parse…
2817 Timeline.NativeDateUnit.parseFromObject=function(A){return Timeline.DateTime.parseGregorianDateTime… argument
2819 Timeline.NativeDateUnit.toNumber=function(A){return A.getTime(); argument
2821 Timeline.NativeDateUnit.fromNumber=function(A){return new Date(A); argument
2823 Timeline.NativeDateUnit.compare=function(D,C){var B,A;
2826 }if(typeof C=="object"){A=C.getTime();
2827 }else{A=Number(C);
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