comparison geotemco/js/Util/Dataset.js @ 0:b12c99b7c3f0

commit for previous development
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 19 Jan 2015 17:13:49 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b12c99b7c3f0
1 /*
2 * Dataset.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 Dataset
24 * GeoTemCo's Dataset class
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 * @param {Array} objects data item arrays from different datasets
31 * @param {String} label label for the datasets
32 */
33 Dataset = function(objects, label, url, type) {
34
35 this.objects = objects;
36 this.label = label;
37 this.url = url;
38 this.type = type;
39
40 this.color;
41
42 //if the user can change shapes, every dataset needs a default shape
43 if (GeoTemConfig.allowUserShapeAndColorChange){
44 this.graphic={
45 shape: "circle",
46 rotation: 0
47 }
48 }
49
50 Publisher.Publish('datasetAfterCreation', this);
51 }