2
Copyright 2008-2010 Gephi
3
Authors : Jeremy Subtil <jeremy.subtil@gephi.org>
4
Website : http://www.gephi.org
6
This file is part of Gephi.
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.
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.
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/>.
21
package org.gephi.preview.api;
24
* Interface of a preview edge.
26
* @author Jérémy Subtil <jeremy.subtil@gephi.org>
28
public interface Edge {
31
* Returns whether or not the edge has a label.
33
* @return true if the edge has a label
35
public boolean hasLabel();
38
* Returns the edge's thickness.
40
* @return the edge's thickness
42
public Float getThickness();
45
* Returns the edge's thickness scale
47
* @return the edge's thickness
49
public Float getScale();
52
* Returns the edge's color.
54
* @return the edge's color
56
public Color getColor();
58
public java.awt.Color getOriginalColor();
61
* Returns the edge's label.
63
* @return the edge's label
65
public EdgeLabel getLabel();
68
* Returns the edge's node 1.
70
* @return the edge's node 1
72
public Node getNode1();
75
* Returns the edge's node 2.
77
* @return the edge's node 2
79
public Node getNode2();
82
* Returns an iterable on the curve list of the edge.
84
* @return an iterable on the curve list of the edge
86
public Iterable<CubicBezierCurve> getCurves();
89
* Returns whether or not the edge should be displayed as a curve.
91
* @return true if the edge should be displayed as a curve
93
public Boolean isCurved();
96
* Returns whether or not the edge's label should be displayed.
98
* @return true if the edge's label should be displayed
100
public Boolean showLabel();