comparison d3s_examples/python-neo4jrestclient/static/platin/js/Time/TimeConfig.js @ 8:18ef6948d689

new d3s examples
author Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de>
date Thu, 01 Oct 2015 17:17:27 +0200
parents
children
comparison
equal deleted inserted replaced
7:45dad9e38c82 8:18ef6948d689
1 /*
2 * TimeConfig.js
3 *
4 * Copyright (c) 2012, Stefan Jänicke. All rights reserved.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301 USA
20 */
21
22 /**
23 * @class TimeConfig
24 * Time Configuration File
25 * @author Stefan Jänicke (stjaenicke@informatik.uni-leipzig.de)
26 * @release 1.0
27 * @release date: 2012-07-27
28 * @version date: 2012-07-27
29 */
30 function TimeConfig(options) {
31
32 this.options = {
33 timeTitle : 'GeoTemCo Time View', // title will be shown in timeplot header
34 timeIndex : 0, // index = position in date array; for multiple dates the 2nd timeplot refers to index 1
35 timeWidth : false, // false or desired width css definition for the timeplot
36 timeHeight : '100px', // false or desired height css definition for the timeplot
37 defaultMinDate : new Date(2012, 0, 1), // required, when empty timelines are possible
38 defaultMaxDate : new Date(), // required, when empty timelines are possible
39 timeCanvasFrom : '#EEE', // time widget background gradient color top
40 timeCanvasTo : '#EEE', // time widget background gradient color bottom
41 rangeBoxColor : "white", // fill color for time range box
42 rangeBorder : "1px solid #de7708", // border of frames
43 dataInformation : true, // show/hide data information
44 rangeAnimation : true, // show/hide animation buttons
45 scaleSelection : true, // show/hide scale selection buttons
46 linearScale : true, // true for linear value scaling, false for logarithmic
47 unitSelection : true, // show/hide time unit selection dropdown
48 timeUnit : -1, // minimum temporal unit (SimileAjax.DateTime or -1 if none) of the data
49 timeMerge : false // if the elements of distinct datasets should be merged into one set or not
50 };
51 if ( typeof options != 'undefined') {
52 $.extend(this.options, options);
53 }
54
55 };