climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skhud...@apache.org
Subject svn commit: r1495306 [1/3] - in /incubator/climate/trunk/rcmet/src/main/ui/app: ./ css/ js/controllers/ js/directives/ lib/timeline/
Date Fri, 21 Jun 2013 07:50:25 GMT
Author: skhudiky
Date: Fri Jun 21 07:50:24 2013
New Revision: 1495306

URL: http://svn.apache.org/r1495306
Log:
CLIMATE-89: Timeline widget
Added CHAP Links timeline library and additions to index.html and app.css to display timeline

Added controller (TimelineCtrl.js) to add bars to timeline every time there is a change to
the datasets and user selected regions/bounds 
Added directive (Timeline.js) to initiate timeline  

Added:
    incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/TimelineCtrl.js
    incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/Timeline.js
    incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/
    incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/CHANGELOG
    incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/LICENSE
    incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/NOTICE
    incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/README
    incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/timeline-locales.js
    incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/timeline-min.js
    incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/timeline.css
    incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/timeline.js
Modified:
    incubator/climate/trunk/rcmet/src/main/ui/app/css/app.css
    incubator/climate/trunk/rcmet/src/main/ui/app/index.html

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/css/app.css
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/css/app.css?rev=1495306&r1=1495305&r2=1495306&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/css/app.css (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/css/app.css Fri Jun 21 07:50:24 2013
@@ -42,3 +42,20 @@ ul 
 {
 	list-style-type: none;
 }
+
+/** 
+  * Timeline 
+  */ 
+div#OCWtimeline {
+	padding-bottom: 20px;
+}
+div.timeline-event {
+	border: none;
+	background: none;
+}
+div.timeline-event-content {
+	margin: 0;
+}
+div.ocw-bar {
+	height: 5px;
+}

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/index.html
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/index.html?rev=1495306&r1=1495305&r2=1495306&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/index.html (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/index.html Fri Jun 21 07:50:24 2013
@@ -27,6 +27,7 @@
   <link rel="stylesheet" href="css/lib/bootstrap-responsive.min.css"/>
   <link rel="stylesheet" href="css/lib/font-awesome.min.css"/>
   <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
+  <link rel="stylesheet" href="lib/timeline/timeline.css"/>
   <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/jquery-ui.min.css"
type="text/css"/> 
   <!--[if lte IE 8]>
     <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css"
/>
@@ -97,7 +98,12 @@
   <div ng-controller="WorldMapCtrl">
     <leaflet-map id="map"></leaflet-map>
   </div>
-
+  
+  <!-- Timeline -->
+  <div ng-controller="TimelineCtrl">
+    <div class="timeline"></div>
+  </div>
+  
   <div ng-controller="ParameterSelectCtrl">
     <div class="row">
       <div class="span1 offset2 text-center">Start Date:</div>
@@ -241,7 +247,10 @@
   <script src="lib/jquery/jquery-ui/datepicker-wrapper/date.js"></script>
   <script src="lib/bootstrap/bootstrap.js"></script>
   <script src="lib/leaflet/leaflet-0.5.js"></script>
-
+  <script src="http://www.google.com/jsapi"></script>
+  <script src="lib/timeline/timeline.js"></script>
+  <script type="text/javascript">google.load("visualization", "1");</script>
+  
   <!--General-->
   <script src="js/app.js"></script>
 
@@ -257,6 +266,7 @@
   <script src="js/controllers/ObservationSelectCtrl.js"></script>
   <script src="js/controllers/RcmedSelectionCtrl.js"></script>
   <script src="js/controllers/SettingsCtrl.js"></script>
+  <script src="js/controllers/TimelineCtrl.js"></script>
 
   <!--Directives-->
   <script src="js/directives/LeafletMap.js"></script>
@@ -264,5 +274,6 @@
   <script src="js/directives/BootstrapModalOpen.js"></script>
   <script src="js/directives/PredictiveFileBrowserInput.js"></script>
   <script src="js/directives/OnBlur.js"></script>
+  <script src="js/directives/Timeline.js"></script>
 </body>
 </html>

Added: incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/TimelineCtrl.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/TimelineCtrl.js?rev=1495306&view=auto
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/TimelineCtrl.js (added)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/TimelineCtrl.js Fri Jun 21
07:50:24 2013
@@ -0,0 +1,102 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements.See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License.You may obtain a copy of the License at
+// 
+// http://www.apache.org/licenses/LICENSE-2.0
+// 
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Controller for the OCW Timeline Widget
+App.Controllers.controller('TimelineCtrl', ['$rootScope', '$scope', 'selectedDatasetInformation',
'regionSelectParams',
+function($rootScope, $scope, selectedDatasetInformation, regionSelectParams) {
+	$scope.datasets = selectedDatasetInformation.getDatasets();
+	$scope.regionParams = regionSelectParams.getParameters();
+
+	$scope.updateTimeline = function() {
+ 		// Clear timeline data if it exists
+ 		if ("timeline" in $rootScope) {
+ 			$rootScope.timeline.deleteAllItems();
+ 		}
+
+		// Don't process if no datasets have been added
+		if ($scope.datasets.length == 0)
+			return;
+ 		
+ 		if ("timeline" in $rootScope) {
+ 			
+ 			// Create DataTable to add data to timeline
+ 			var data = new google.visualization.DataTable();
+ 			data.addColumn('datetime', 'start');
+			data.addColumn('datetime', 'end');
+			data.addColumn('string', 'content');
+
+			// Loop through datasets and add data to timeline 
+			var i = -1;
+ 			angular.forEach($scope.datasets, function(dataset) {
+
+ 				// Keep track of dataset count for displaying colors
+				i++;
+				
+ 				/* TODO should "disable overlay" also disable timeline? */
+
+ 				// Get time bounds from dataset 
+ 				var start = dataset.timeVals.start;
+ 				var end	= dataset.timeVals.end;
+
+ 				// Add different color to each bar
+ 				var style = 'background-color:' + $rootScope.fillColors[i] +
+ 							'; border-color:' + $rootScope.surroundColors[i] + ';';
+ 				var ocwBar = '<div class="ocw-bar timeline-event-range" style="' + style + '"></div>';
+        
+ 				// Add row to DataTable: object with start and end date
+ 				// note: subtract one from month since indexes from 0 to 11
+ 				data.addRow([new Date(start.substr(0,4), start.substr(5,2)-1, start.substr(8,2)), 
+ 							new Date(end.substr(0,4), end.substr(5,2)-1, end.substr(8,2)),
+ 							ocwBar ]);
+ 			});
+
+			// Add user selected bounds to timeline
+			if ($scope.regionParams.areValid) {
+
+				var userStart 	= $scope.regionParams.start;
+				var userEnd 	= $scope.regionParams.end;
+
+				// Add color to user selected bounds
+				var style = 'background-color: #000000; border: 2px solid;';
+ 				var ocwBar = '<div class="ocw-bar timeline-event-range" style="' + style + '"></div>';
+ 				
+				// Add row to DataTable: object with start and end date
+ 				// note: subtract one from month since indexes from 0 to 11
+ 				data.addRow([new Date(userStart.substr(0,4), userStart.substr(5,2)-1, userStart.substr(8,2)),

+ 							new Date(userEnd.substr(0,4), userEnd.substr(5,2)-1, userEnd.substr(8,2)),
+ 							ocwBar ]);
+			}
+ 			
+			var options = {
+	                'minHeight': "200px",
+	                'width':  "99.8%",
+	                'zoomable': false
+            };
+			
+ 			// Draw timeline with data (DataTable) and options (a name-value map) 
+			$rootScope.timeline.draw(data, options);
+ 		}
+	};
+
+	$scope.$on('redrawOverlays', function(event, parameters) {
+		$scope.updateTimeline();
+	});
+
+	$scope.$watch('datasets', function() {
+		$scope.updateTimeline();
+	}, true);
+}]);

Added: incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/Timeline.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/Timeline.js?rev=1495306&view=auto
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/Timeline.js (added)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/Timeline.js Fri Jun 21 07:50:24
2013
@@ -0,0 +1,35 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements.See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License.You may obtain a copy of the License at
+// 
+// http://www.apache.org/licenses/LICENSE-2.0
+// 
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// Directive for dealing with the Leaflet map
+App.Directives.directive('timeline', function($rootScope) {
+	return {
+		restrict: 'C',
+		replace: true,
+		transclude: true,
+		template: '<div id="OCWtimeline"></div>',
+		link: function(scope, element, attrs) {
+			
+	    	google.setOnLoadCallback(initTimeline);
+	        
+	    	function initTimeline() {
+	            // Instantiate timeline object.
+	            $rootScope.timeline = new links.Timeline(document.getElementById('OCWtimeline'));
+	        }
+		}
+	}
+});

Added: incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/CHANGELOG
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/CHANGELOG?rev=1495306&view=auto
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/CHANGELOG (added)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/CHANGELOG Fri Jun 21 07:50:24
2013
@@ -0,0 +1,119 @@
+CHAP Links Library - Timeline
+
+
+2012-04-18, version 2.4.2
+
+- Implemented localization. (Thanks bjarkebech and José Renato).
+- Changed: renamed option intervalMin to zoomMin and intervalMax to zoomMax
+  (Thanks Oleg Varaksin).
+- Fixed: could not change an items field editable using method changeItem.
+- Fixed: fields editable and className could not be retrieved from method
+  getItem (Thanks Oleg Varaksin).
+
+
+2013-03-04, version 2.4.1
+
+- Fixed: issue with calculating absolute positions of mouse and elements in
+  scrolled elements or body.
+
+
+2013-02-26, version 2.4.0
+
+- Added a new scale "WEEKDAY", which shows the weekday in the minor label.
+- Implemented clustering of items.
+- Implemented support for custom item types (besides the built in types box,
+  range, and dot). See example 25. Thanks Alexander Parshin.
+- events can be made editable/read-only on an individual basis by providing
+  them with a field "editable".
+- changed: data can now have custom fields (like an id).
+- changed: method addItem has a second, optional parameter "preventRedraw",
+  which can be used to prevent redrawing the timeline after every addItem.
+- changed: option showButtonAdd renamed to showButtonNew, and is now false by
+  default.
+- changed: new items created via a double-click or the "Add" button are now
+  rendered after add trigger (which can cancel the create action).
+- fixed: issues with dates on millisecond scale or with negative years
+  (issues #19 and #54).
+- fixed: options scale and step did not work (method setScale worked correctly
+  though).
+- fixed: alignment of the delete button for selected events with style box,
+  when the option box.align was "left" or "right" instead of the default
+  "center".
+- fixed: DataTable columns may now have their name defined as label or id,
+  and the first three columns can have any order now. More robust and flexible.
+- fixed: when deleting an item via deleteItem, the currently selection is
+  maintained instead of unselected (issue #47).
+- fixed: When dragging the edges of a range, it was possible to move the range
+  to another group.
+- fixed: non reachable event 'ready" (issue #69).
+
+
+2012-09-18, version 2.3.2
+
+- fixed mouseover/dragging of the vertical lines with current time and custom
+  time, which did only work in the axis area but not in the contents area.
+
+
+2012-09-13, version 2.3.1
+
+- added: double tap events on mobile devices will now fire the edit/new event.
+- fixed/updated example 09, 15, 17, and 18.
+- created example 21.
+
+
+2012-09-05, version 2.3.0
+
+- new: items can now have an individual class name which allows styling of
+  individual items. This gives a lot of extra flexibility.
+- fixed issue #26: pinching on Ipad did throw an error "ReferenceError: Can't
+  find variable: timeline".
+- fixed issue #28: in some cases, clicking an item would not select the item
+  but move the timeline slightly (less than 1px).
+
+
+2012-07-30, version 2.2.1
+
+- fixed the 'select' event not being fired when an item gets unselected.
+- fixed method changeItem not dealing with changing the type of the item
+  from box to range or vice versa.
+
+
+2012-07-27, version 2.2.0
+
+- added an option showMinorLabels. By setting both showMinorLabels and
+  showMajorLabels, true, the axis will not be visible.
+- fixed issue #6: items and axis did not move with the speed when moving
+  the Timeline under IE8 and older.
+- fixed issue #8: start, end, min, max not working correctly around Date(0).
+- fixed issue #9. It is now possible to specify only start or end in the
+  options, instead of having to specify both.
+- fixed issue #12: the group of an item was not restored after canceling a
+  change.
+
+
+2012-06-18, version 2.1.2
+
+- fixed issue #4 again: sorting groups still not working correctly
+
+
+2012-06-15, version 2.1.1
+
+- fixed issue #3: broken option stackEvents=false
+- fixed issue #4: sorting groups not working correctly
+
+
+2012-06-04, version 2.1
+
+- Documentation has a new layout
+- Source code cleaned up
+
+
+2012-05-02, version 2.0.1
+
+- bug fix: areas on the left and right end of a range (for changing start/end)
+  where displayed below the range instead of on top of it.
+
+
+2012-05-02, version 2.0
+
+- initial upload to github (formerly located at sourceforge)

Added: incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/LICENSE
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/LICENSE?rev=1495306&view=auto
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/LICENSE (added)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/LICENSE Fri Jun 21 07:50:24
2013
@@ -0,0 +1,176 @@
+                               Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS

Added: incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/NOTICE
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/NOTICE?rev=1495306&view=auto
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/NOTICE (added)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/NOTICE Fri Jun 21 07:50:24
2013
@@ -0,0 +1,14 @@
+CHAP Links Timeline
+Copyright 2010-2013 Almende B.V.
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.

Added: incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/README
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/README?rev=1495306&view=auto
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/README (added)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/README Fri Jun 21 07:50:24
2013
@@ -0,0 +1,66 @@
+CHAP Links Network
+
+http://www.almende.com
+http://almende.github.com/chap-links-library/
+
+DESCRIPTION
+
+The Timeline is an interactive visualization chart to visualize events in time. 
+The events can take place on a single date, or have a start and end date 
+(a range). You can freely move and zoom in the timeline by dragging and 
+scrolling in the Timeline. Events can be created, edited, and deleted in the 
+timeline. The time scale on the axis is adjusted automatically, and supports 
+scales ranging from milliseconds to years.
+
+When the timeline is defined as editable, events can be moved to another time 
+by dragging them. By double clicking, the contents of an event can be changed. 
+An event can be deleted by clicking the delete button on the upper right. A new 
+event can be added in different ways: by double clicking in the timeline, or by 
+keeping the Ctrl key down and clicking or dragging in the timeline, or by 
+clicking the add button in the upper left of the timeline, and then clicking or 
+dragging at the right location in the timeline.
+
+The Timeline is developed as a Google Visualization Chart in javascript. It 
+runs in every browser without additional requirements. There is a GWT wrapper 
+available to use the Timeline in GWT (Google Web Toolkit), you can find relevant 
+documentation here.
+
+The Timeline is designed to display up to 100 events smoothly on any modern 
+browser.
+
+
+USAGE
+
+The Timeline is no built-in visualization of Google. To load the Timeline, 
+download the file timeline.zip and unzip it in a sub directory timeline on your 
+html page. Include the google API and the two downloaded files in the head of 
+your html code:
+
+    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
+    <script type="text/javascript" src="timeline/timeline.js"></script>
+    <link rel="stylesheet" type="text/css" href="timeline/timeline.css">
+    
+The google visualization needs to be loaded in order to use DataTable.
+
+    google.load("visualization", "1");
+    google.setOnLoadCallback(drawTimeline);
+    function drawTimeline() {
+      // load data and create the timeline here
+    }
+
+The class name of the Timeline is links.Timeline
+
+    var timeline = new links.Timeline(container);
+
+After being loaded, the timeline can be drawn via the function draw(), provided 
+with data and options.
+
+    timeline.draw(data, options);
+
+where data is a DataTable, and options is a name-value map in the JSON format.
+
+
+DOCUMENTATION
+
+Documentation can be found in the directory doc
+Examples can be found in the directory examples

Added: incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/timeline-locales.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/timeline-locales.js?rev=1495306&view=auto
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/timeline-locales.js (added)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/lib/timeline/timeline-locales.js Fri Jun
21 07:50:24 2013
@@ -0,0 +1,101 @@
+if (typeof links === 'undefined') {
+    links = {};
+    links.locales = {};
+} else if (typeof links.locales === 'undefined') {
+    links.locales = {};
+}
+
+// English ===================================================
+links.locales['en'] = {
+    'MONTHS': new Array("January", "February", "March", "April", "May", "June", "July", "August",
"September", "October", "November", "December"),
+    'MONTHS_SHORT': new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep",
"Oct", "Nov", "Dec"),
+    'DAYS': new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"),
+    'DAYS_SHORT': new Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"),
+    'ZOOM_IN': "Zoom in",
+    'ZOOM_OUT': "Zoom out",
+    'MOVE_LEFT': "Move left",
+    'MOVE_RIGHT': "Move right",
+    'NEW': "New",
+    'CREATE_NEW_EVENT': "Create new event"
+};
+
+links.locales['en_US'] = links.locales['en'];
+links.locales['en_UK'] = links.locales['en'];
+
+// Catalan ===================================================
+links.locales['ca'] = {
+    'MONTHS': new Array("Gener", "Febrer", "Març", "Abril", "Maig", "Juny", "Juliol",
"Setembre", "Octubre", "Novembre", "Desembre"),
+    'MONTHS_SHORT': new Array("Gen", "Feb", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set",
"Oct", "Nov", "Des"),
+    'DAYS': new Array("Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres",
"Dissabte"),
+    'DAYS_SHORT': new Array("Dm.", "Dl.", "Dm.", "Dc.", "Dj.", "Dv.", "Ds."),
+    'ZOOM_IN': "Augmentar zoom",
+    'ZOOM_OUT': "Disminuir zoom",
+    'MOVE_LEFT': "Moure esquerra",
+    'MOVE_RIGHT': "Moure dreta",
+    'NEW': "Nou",
+    'CREATE_NEW_EVENT': "Crear nou event"
+};
+links.locales['ca-ES'] = links.locales['ca'];
+
+// German ===================================================
+links.locales['de'] = {
+    'MONTHS': new Array("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August",
"September", "Oktober", "November", "Dezember"),
+    'MONTHS_SHORT': new Array("Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug",
"Sep", "Okt", "Nov", "Dez"),
+    'DAYS': new Array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag",
"Samstag"),
+    'DAYS_SHORT': new Array("Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam"),
+    'ZOOM_IN': "Vergrößern",
+    'ZOOM_OUT': "Verkleinern",
+    'MOVE_LEFT': "Nach links verschieben",
+    'MOVE_RIGHT': "Nach rechts verschieben",
+    'NEW': "Neu",
+    'CREATE_NEW_EVENT': "Neues Ereignis erzeugen"
+};
+
+links.locales['de_DE'] = links.locales['de'];
+links.locales['de_CH'] = links.locales['de'];
+
+// Danish ===================================================
+links.locales['da'] = {
+    'MONTHS': new Array("januar", "februar", "marts", "april", "maj", "juni", "juli", "august",
"september", "oktober", "november", "december"),
+    'MONTHS_SHORT': new Array("jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep",
"okt", "nov", "dec"),
+    'DAYS': new Array("søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"),
+    'DAYS_SHORT': new Array("søn", "man", "tir", "ons", "tor", "fre", "lør"),
+    'ZOOM_IN': "Zoom in",
+    'ZOOM_OUT': "Zoom out",
+    'MOVE_LEFT': "Move left",
+    'MOVE_RIGHT': "Move right",
+    'NEW': "New",
+    'CREATE_NEW_EVENT': "Create new event"
+};
+links.locales['da_DK'] = links.locales['da'];
+
+// Russian ===================================================
+links.locales['ru'] = {
+    'MONTHS': new Array("Январь", "Февраль", "Март",
"Апрель", "Май", "Июнь", "Июль", "Август",
"Сентябрь", "Октябрь", "Ноябрь",
"Декабрь"),
+    'MONTHS_SHORT': new Array("Янв", "Фев", "Мар", "Апр",
"Май", "Июн", "Июл", "Авг", "Сен", "Окт",
"Ноя", "Дек"),
+    'DAYS': new Array("Воскресенье", "Понедельник",
"Вторник", "Среда", "Четверг", "Пятница",
"Суббота"),
+    'DAYS_SHORT': new Array("Вос", "Пон", "Втo", "Срe", "Чет",
"Пят", "Суб"),
+    'ZOOM_IN': "Увeличить",
+    'ZOOM_OUT': "Умeньшить",
+    'MOVE_LEFT': "Сдвинуть налeво",
+    'MOVE_RIGHT': "Сдвинуть направо",
+    'NEW': "Новый",
+    'CREATE_NEW_EVENT': "Создать новоe событиe"
+};
+links.locales['ru_RU'] = links.locales['ru'];
+
+// Spanish ===================================================
+links.locales['es'] = {
+    'MONTHS': new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto",
"Septiembre", "Octubre", "Noviembre", "Diciembre"),
+    'MONTHS_SHORT': new Array("Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep",
"Oct", "Nov", "Dic"),
+    'DAYS': new Array("Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes",
"Sábado"),
+    'DAYS_SHORT': new Array("Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"),
+    'ZOOM_IN': "Aumentar zoom",
+    'ZOOM_OUT': "Disminuir zoom",
+    'MOVE_LEFT': "Mover izquierda",
+    'MOVE_RIGHT': "Mover derecha",
+    'NEW': "Nuevo",
+    'CREATE_NEW_EVENT': "Crear nuevo evento"
+};
+
+links.locales['es_ES'] = links.locales['es'];



Mime
View raw message