|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Edge
An Edge connects two Vertices.
| Method Summary | |
|---|---|
Vertex |
getFirstVertex()
Returns one of the Vertices connected by this Edge, referred to as the "first vertex". |
String |
getLabel()
Returns the text to display along the Edge. |
Object |
getLayoutAttribute()
Sets the layout attribute of this Vertex. |
Vertex |
getOtherVertex(Vertex thisVertex)
Given one of the Vertices connected by this Edge, this method returns the other one. |
Object |
getRenderingAttribute()
Returns the rendering attribute of this Vertex. |
Vertex |
getSecondVertex()
Returns one of the Vertices connected by this Edge, referred to as the "second vertex". |
float |
getWeight()
Returns the weight of the Edge. |
boolean |
isConnected()
Returns whether both Vertices are set. |
boolean |
isConnectedTo(Vertex vertex)
Determines whether the specified Vertex is registered as the first or second Vertex of this Edge. |
boolean |
isDirected()
Indicates whether this is a directed or undirected Edge. |
void |
setLayoutAttribute(Object layoutAttribute)
Returns the layout attribute of this Vertex. |
void |
setRenderingAttribute(Object renderingAttribute)
Sets the rendering attribute of this Vertex. |
| Methods inherited from interface info.aduna.linkmap.graph.Highlightable |
|---|
getHighlightLevel, setHighlightLevel |
| Method Detail |
|---|
Vertex getFirstVertex()
Vertex getSecondVertex()
String getLabel()
boolean isDirected()
float getWeight()
Object getLayoutAttribute()
void setLayoutAttribute(Object layoutAttribute)
Object getRenderingAttribute()
void setRenderingAttribute(Object renderingAttribute)
boolean isConnected()
boolean isConnectedTo(Vertex vertex)
Vertex getOtherVertex(Vertex thisVertex)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||