~panisson/gephi/graphstreaming

« back to all changes in this revision

Viewing changes to ImportAPI/src/org/gephi/io/importer/api/PropertiesAssociations.java

  • Committer: Andre Panisson
  • Date: 2011-10-03 16:02:56 UTC
  • mfrom: (1433.1.1060 gephi)
  • Revision ID: panisson@gmail.com-20111003160256-s6215ky1vtyubl7d
Merge with main branch, revision 2492

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
This file is part of Gephi.
7
7
 
8
 
Gephi is free software: you can redistribute it and/or modify
9
 
it under the terms of the GNU Affero General Public License as
10
 
published by the Free Software Foundation, either version 3 of the
11
 
License, or (at your option) any later version.
12
 
 
13
 
Gephi is distributed in the hope that it will be useful,
14
 
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
GNU Affero General Public License for more details.
17
 
 
18
 
You should have received a copy of the GNU Affero General Public License
19
 
along with Gephi.  If not, see <http://www.gnu.org/licenses/>.
 
8
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 
9
 
 
10
Copyright 2011 Gephi Consortium. All rights reserved.
 
11
 
 
12
The contents of this file are subject to the terms of either the GNU
 
13
General Public License Version 3 only ("GPL") or the Common
 
14
Development and Distribution License("CDDL") (collectively, the
 
15
"License"). You may not use this file except in compliance with the
 
16
License. You can obtain a copy of the License at
 
17
http://gephi.org/about/legal/license-notice/
 
18
or /cddl-1.0.txt and /gpl-3.0.txt. See the License for the
 
19
specific language governing permissions and limitations under the
 
20
License.  When distributing the software, include this License Header
 
21
Notice in each file and include the License files at
 
22
/cddl-1.0.txt and /gpl-3.0.txt. If applicable, add the following below the
 
23
License Header, with the fields enclosed by brackets [] replaced by
 
24
your own identifying information:
 
25
"Portions Copyrighted [year] [name of copyright owner]"
 
26
 
 
27
If you wish your version of this file to be governed by only the CDDL
 
28
or only the GPL Version 3, indicate your decision by adding
 
29
"[Contributor] elects to include this software in this distribution
 
30
under the [CDDL or GPL Version 3] license." If you do not indicate a
 
31
single choice of license, a recipient has the option to distribute
 
32
your version of this file under either the CDDL, the GPL Version 3 or
 
33
to extend the choice of license to its licensees as provided above.
 
34
However, if you add GPL Version 3 code and therefore, elected the GPL
 
35
Version 3 license, then the option applies only if the new code is
 
36
made subject to such option by the copyright holder.
 
37
 
 
38
Contributor(s):
 
39
 
 
40
Portions Copyrighted 2011 Gephi Consortium.
20
41
*/
21
42
package org.gephi.io.importer.api;
22
43
 
23
44
import java.io.Serializable;
24
 
import java.util.Iterator;
25
45
import java.util.LinkedList;
26
46
import java.util.List;
27
47
 
33
53
 
34
54
    public enum NodeProperties {
35
55
 
36
 
        X, Y, Z, R, G, B, SIZE, ID, LABEL, FIXED;
 
56
        X, Y, Z, R, G, B, COLOR, SIZE, ID, LABEL, FIXED, START, END, START_OPEN, END_OPEN;
37
57
    }
38
58
 
39
59
    public enum EdgeProperties {
40
60
 
41
 
        R, G, B, WEIGHT, ID, LABEL, ALPHA, SOURCE, TARGET;
 
61
        R, G, B, COLOR, WEIGHT, ID, LABEL, ALPHA, SOURCE, TARGET, START, END, START_OPEN, END_OPEN;
42
62
    }
43
63
    //PropertiesAssociations association
44
64
    private List<PropertyAssociation<NodeProperties>> nodePropertyAssociations = new LinkedList<PropertyAssociation<NodeProperties>>();