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);
2303 Timeline.DefaultEventSource.prototype.loadXML=function(G,A){var C=this._getBaseURL(A); argument
2331 G++){var A=H.events[G];
2332 var C=A.isDuration||(A.durationEvent!=null&&!A.durationEvent);
2333A)?A.id:undefined,start:E(A.start),end:E(A.end),latestStart:E(A.latestStart),earliestEnd:E(A.earli…
2334 L._obj=A;
2355 var A=F.firstChild;
2356A!=null){if(A.nodeType==1&&A.firstChild!=null&&A.firstChild.nodeType==1&&A.firstChild.firstChild!=…
2357 }A=A.nextSibling;
2370 Timeline.DefaultEventSource.prototype.add=function(A){this._events.add(A); argument
2371 this._fire("onAddOne",[A]);
2373 Timeline.DefaultEventSource.prototype.addMany=function(A){for(var B=0; argument
2374 B<A.length;
2375 B++){this._events.add(A[B]);
2381 Timeline.DefaultEventSource.prototype.getEvent=function(A){return this._events.getEvent(A); argument
2383 …e.DefaultEventSource.prototype.getEventIterator=function(A,B){return this._events.getIterator(A,B); argument
2385 …ventSource.prototype.getEventReverseIterator=function(A,B){return this._events.getReverseIterator( argument
2395 Timeline.DefaultEventSource.prototype._fire=function(B,A){for(var C=0; argument
2398 if(B in D){try{D[B].apply(D,A);
2401 Timeline.DefaultEventSource.prototype._getBaseURL=function(A){if(A.indexOf("://")<0){var C=this._ge… argument
2402 if(A.substr(0,1)=="/"){A=C.substr(0,C.indexOf("/",C.indexOf("://")+3))+A;
2403 }else{A=C+A;
2404 }}var B=A.lastIndexOf("/");
2406 }else{return A.substr(0,B+1);
2408 Timeline.DefaultEventSource.prototype._resolveRelativeURL=function(A,B){if(A==null||A==""){return A; argument
2409 }else{if(A.indexOf("://")>0){return A;
2410 }else{if(A.substr(0,1)=="/"){return B.substr(0,B.indexOf("/",B.indexOf("://")+3))+A;
2411 }else{return B+A;
2413 Timeline.DefaultEventSource.Event=function(A){function D(E){return(A[E]!=null&&A[E]!="")?A[E]:null; argument
2414 }var C=A.id?A.id.trim():"";
2416 this._instant=A.instant||(A.end==null);
2417 this._start=A.start;
2418 this._end=(A.end!=null)?A.end:A.start;
2419 this._latestStart=(A.latestStart!=null)?A.latestStart:(A.instant?this._end:this._start);
2420 this._earliestEnd=(A.earliestEnd!=null)?A.earliestEnd:this._end;
2435 this._text=(A.text!=null)?SimileAjax.HTML.deEntify(A.text):"";
2437 }this._description=SimileAjax.HTML.deEntify(A.description);
2472 },getProperty:function(A){return null; argument
2475 },setWikiInfo:function(B,A){this._wikiURL=B; argument
2476 this._wikiSection=A;
2477 },fillDescription:function(A){A.innerHTML=this._description; argument
2486 var A=document.createElement("a");
2487 A.href=B;
2488 A.target="new";
2489 A.innerHTML=Timeline.strings[Timeline.clientLocale].wikiLinkLabel;
2491 D.appendChild(A);
2493 },fillTime:function(A,B){if(this._instant){if(this.isImprecise()){A.appendChild(A.ownerDocument.cre… argument
2494 A.appendChild(A.ownerDocument.createElement("br"));
2495 A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._end)));
2496 }else{A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._start)));
2497 }}else{if(this.isImprecise()){A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._sta…
2498 A.appendChild(A.ownerDocument.createElement("br"));
2499 A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._earliestEnd)+" ~ "+B.labelPrecise…
2500 }else{A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._start)));
2501 A.appendChild(A.ownerDocument.createElement("br"));
2502 A.appendChild(A.ownerDocument.createTextNode(B.labelPrecise(this._end)));
2503 }}},fillInfoBubble:function(A,E,M){var K=A.ownerDocument; argument
2510 A.appendChild(D);
2519 A.appendChild(L);
2523 A.appendChild(N);
2527 A.appendChild(G);
2531 A.appendChild(F);
2539 }var A=Timeline.ClassicTheme.implementations[B];
2540 if(A==null){A=Timeline.ClassicTheme._Impl;
2541 }return new A();
2549 …tLabelBackground:false,bubble:{width:250,maxHeight:0,titleStyler:function(A){A.className="timeline… argument
2550 },bodyStyler:function(A){A.className="timeline-event-bubble-body"; argument
2551 },imageStyler:function(A){A.className="timeline-event-bubble-image"; argument
2552 },wikiStyler:function(A){A.className="timeline-event-bubble-wiki"; argument
2553 },timeStyler:function(A){A.className="timeline-event-bubble-time"; argument
2572 var A=new Timeline._Impl(D,C,E,F,B);
2573 Timeline.timelines[B]=A;
2574 return A;
2581 if("eventPainterParams" in F){for(var A in F.eventPainterParams){I[A]=F.eventPainterParams[A];
2599 if("eventPainterParams" in F){for(var A in F.eventPainterParams){I[A]=F.eventPainterParams[A];
2615 Timeline.setDefaultTheme=function(A){Timeline._defaultTheme=A; argument
2617 Timeline.loadXML=function(A,C){var D=function(G,F,E){alert("Failed to load data xml from "+A+"\n"+G… argument
2621 }C(E,A);
2623 SimileAjax.XmlHttp.get(A,D,B);
2631 Timeline.getTimelineFromID=function(A){return Timeline.timelines[A]; argument
2633 Timeline.writeVersion=function(A){document.getElementById(A).innerHTML=this.display_version; argument
2635 Timeline._Impl=function(C,B,D,E,A){SimileAjax.WindowManager.initialize(); argument
2644 this.timelineID=A;
2651 Timeline._Impl.prototype.dispose=function(){for(var A=0;
2652 A<this._bands.length;
2653 A++){this._bands[A].dispose();
2661 Timeline._Impl.prototype.getBand=function(A){return this._bands[A]; argument
2669 Timeline._Impl.prototype.paint=function(){for(var A=0;
2670 A<this._bands.length;
2671 A++){this._bands[A].paint();
2675 Timeline._Impl.prototype.addDiv=function(A){this._containerDiv.appendChild(A); argument
2677 Timeline._Impl.prototype.removeDiv=function(A){this._containerDiv.removeChild(A); argument
2691 Timeline._Impl.prototype.loadXML=function(B,D){var A=this;
2693 A.hideLoadingMessage();
2698 }finally{A.hideLoadingMessage();
2715 Timeline._Impl.prototype._autoWidthScrollListener=function(A){A.getTimeline()._autoWidthCheck(false… argument
2717 Timeline._Impl.prototype._autoWidthCheck=function(C){var A=this;
2718 var B=A._starting;
2720 function E(){var G=A.getWidthStyle();
2721 if(B){A._containerDiv.style[G]=D+"px";
2722 }else{A._autoResizing=true;
2725 SimileAjax.jQuery(A._containerDiv).animate(H,A.autoWidthAnimationTime,"linear",function(){A._autoRe…
2728 var G=A.getPixelWidth();
2729 if(A._autoResizing){return ;
2731 I<A._bands.length;
2732 I++){A._bands[I].checkAutoWidth();
2733 H+=A._bandInfos[I].width;
2736 A._distributeWidths();
2737 }}if(!A.autoWidth){return ;
2746 }var A=SimileAjax.Graphics.createTranslucentImage(Timeline.urlPrefix+(this.isHorizontal()?"images/c…
2747 A.className="timeline-copyright";
2748 A.title="Timeline copyright SIMILE - www.code.google.com/p/simile-widgets/";
2749 SimileAjax.DOM.registerEvent(A,"click",function(){window.location="http://code.google.com/p/simile-…
2751 H.appendChild(A);
2785 if(H>0){var A=parseInt(E.substr(0,H));
2786 D=Math.round(A*B/100);
2793 Timeline._Impl.prototype.shiftOK=function(C,B){var F=B>0,A=B<0;
2794 if((F&&this.timeline_start==null)||(A&&this.timeline_stop==null)||(B==0)){return(true);
2800 }if((F&&this.timeline_at_start)||(A&&this.timeline_at_stop)){return(false);
2813 Timeline._Impl.prototype.zoom=function(D,A,G,F){var C=new RegExp("^timeline-band-([0-9]+)$"); argument
2817 }if(E!=null){this._bands[E].zoom(D,A,G,F);
2824 Timeline.NativeDateUnit.createLabeller=function(B,A){return new Timeline.GregorianDateLabeller(B,A); argument
2828 Timeline.NativeDateUnit.cloneValue=function(A){return new Date(A.getTime()); argument
2830 Timeline.NativeDateUnit.getParser=function(A){if(typeof A=="string"){A=A.toLowerCase(); argument
2831 }return(A=="iso8601"||A=="iso 8601")?Timeline.DateTime.parseIso8601DateTime:Timeline.DateTime.parse…
2833 Timeline.NativeDateUnit.parseFromObject=function(A){return Timeline.DateTime.parseGregorianDateTime… argument
2835 Timeline.NativeDateUnit.toNumber=function(A){return A.getTime(); argument
2837 Timeline.NativeDateUnit.fromNumber=function(A){return new Date(A); argument
2839 Timeline.NativeDateUnit.compare=function(D,C){var B,A;
2842 }if(typeof C=="object"){A=C.getTime();
2843 }else{A=Number(C);
2844 }return B-A;
2846 Timeline.NativeDateUnit.earlier=function(B,A){return Timeline.NativeDateUnit.compare(B,A)<0?B:A; argument
2848 Timeline.NativeDateUnit.later=function(B,A){return Timeline.NativeDateUnit.compare(B,A)>0?B:A; argument
2850 Timeline.NativeDateUnit.change=function(A,B){return new Date(A.getTime()+B); argument