Gephi Toolkit Javadoc

org.gephi.preview.api
Interface Edge

All Known Subinterfaces:
BidirectionalEdge, DirectedEdge, UndirectedEdge, UnidirectionalEdge

public interface Edge

Interface of a preview edge.

Author:
Jérémy Subtil

Method Summary
 Color getColor()
          Returns the edge's color.
 java.lang.Iterable<CubicBezierCurve> getCurves()
          Returns an iterable on the curve list of the edge.
 EdgeLabel getLabel()
          Returns the edge's label.
 Node getNode1()
          Returns the edge's node 1.
 Node getNode2()
          Returns the edge's node 2.
 java.awt.Color getOriginalColor()
           
 java.lang.Float getScale()
          Returns the edge's thickness scale
 java.lang.Float getThickness()
          Returns the edge's thickness.
 boolean hasLabel()
          Returns whether or not the edge has a label.
 java.lang.Boolean isCurved()
          Returns whether or not the edge should be displayed as a curve.
 java.lang.Boolean showLabel()
          Returns whether or not the edge's label should be displayed.
 

Method Detail

hasLabel

boolean hasLabel()
Returns whether or not the edge has a label.

Returns:
true if the edge has a label

getThickness

java.lang.Float getThickness()
Returns the edge's thickness.

Returns:
the edge's thickness

getScale

java.lang.Float getScale()
Returns the edge's thickness scale

Returns:
the edge's thickness

getColor

Color getColor()
Returns the edge's color.

Returns:
the edge's color

getOriginalColor

java.awt.Color getOriginalColor()

getLabel

EdgeLabel getLabel()
Returns the edge's label.

Returns:
the edge's label

getNode1

Node getNode1()
Returns the edge's node 1.

Returns:
the edge's node 1

getNode2

Node getNode2()
Returns the edge's node 2.

Returns:
the edge's node 2

getCurves

java.lang.Iterable<CubicBezierCurve> getCurves()
Returns an iterable on the curve list of the edge.

Returns:
an iterable on the curve list of the edge

isCurved

java.lang.Boolean isCurved()
Returns whether or not the edge should be displayed as a curve.

Returns:
true if the edge should be displayed as a curve

showLabel

java.lang.Boolean showLabel()
Returns whether or not the edge's label should be displayed.

Returns:
true if the edge's label should be displayed

Gephi Toolkit Javadoc