~duyi001/gephi/DSNI

« back to all changes in this revision

Viewing changes to PreviewAPI/src/org/gephi/preview/api/Edge.java

  • Committer: sunsnowad
  • Author(s): Yi Du
  • Date: 2011-09-08 16:36:59 UTC
  • mfrom: (1435.1.968 gephi)
  • Revision ID: sunsnowad@www-691ed046717-20110908163659-aorx14ylp8f9qwdx
1.merge with main branch
2.update twitter4j to version 2.2.4
3.fix an existing bug on "twitter user import"

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
Copyright 2008-2010 Gephi
3
 
Authors : Jeremy Subtil <jeremy.subtil@gephi.org>
4
 
Website : http://www.gephi.org
5
 
 
6
 
This file is part of Gephi.
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/>.
20
 
*/
21
 
package org.gephi.preview.api;
22
 
 
23
 
/**
24
 
 * Interface of a preview edge.
25
 
 *
26
 
 * @author Jérémy Subtil <jeremy.subtil@gephi.org>
27
 
 */
28
 
public interface Edge {
29
 
 
30
 
    /**
31
 
     * Returns whether or not the edge has a label.
32
 
     *
33
 
     * @return true if the edge has a label
34
 
     */
35
 
    public boolean hasLabel();
36
 
 
37
 
    /**
38
 
     * Returns the edge's thickness.
39
 
     *
40
 
     * @return the edge's thickness
41
 
     */
42
 
    public Float getThickness();
43
 
 
44
 
    /**
45
 
     * Returns the edge's thickness scale
46
 
     *
47
 
     * @return the edge's thickness
48
 
     */
49
 
    public Float getScale();
50
 
 
51
 
    /**
52
 
     * Returns the edge's color.
53
 
     *
54
 
     * @return the edge's color
55
 
     */
56
 
    public Color getColor();
57
 
 
58
 
    public java.awt.Color getOriginalColor();
59
 
 
60
 
    /**
61
 
     * Returns the edge's label.
62
 
     *
63
 
     * @return the edge's label
64
 
     */
65
 
    public EdgeLabel getLabel();
66
 
 
67
 
    /**
68
 
     * Returns the edge's node 1.
69
 
     *
70
 
     * @return the edge's node 1
71
 
     */
72
 
    public Node getNode1();
73
 
 
74
 
    /**
75
 
     * Returns the edge's node 2.
76
 
     *
77
 
     * @return the edge's node 2
78
 
     */
79
 
    public Node getNode2();
80
 
 
81
 
    /**
82
 
     * Returns an iterable on the curve list of the edge.
83
 
     *
84
 
     * @return an iterable on the curve list of the edge
85
 
     */
86
 
    public Iterable<CubicBezierCurve> getCurves();
87
 
 
88
 
    /**
89
 
     * Returns whether or not the edge should be displayed as a curve.
90
 
     *
91
 
     * @return true if the edge should be displayed as a curve
92
 
     */
93
 
    public Boolean isCurved();
94
 
 
95
 
    /**
96
 
     * Returns whether or not the edge's label should be displayed.
97
 
     *
98
 
     * @return true if the edge's label should be displayed
99
 
     */
100
 
    public Boolean showLabel();
101
 
}