|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.linkmap.graph.impl.VertexImpl
public class VertexImpl
| Constructor Summary | |
|---|---|
VertexImpl()
|
|
| Method Summary | |
|---|---|
void |
add(Edge edge)
Adds an Edge to the set of Edges of this Vertex. |
Collection<Vertex> |
getConnectedVertices()
Returns a set containing all Vertices that are connected to this Vertex following zero (!) or more Edges in the Graph. |
Collection<Vertex> |
getConnectedVertices(int nrLevels)
Returns a set containing all Vertices that are connected to this Vertex following zero or more Edges in the Graph, with the specified number as an upper bound of the number of Edges that may be followed. |
Collection<Vertex> |
getConnectedVertices(int nrLevels,
Collection<Vertex> allowedVertices,
Collection<Edge> allowedEdges)
Returns a set containing all Vertices that are connected to this Vertex following zero or more Edges in the Graph, with the specified number as an upper bound of the number of Edges that may be followed. |
Collection<Edge> |
getEdges()
Returns the set of Edges of this Vertex. |
float |
getHighlightLevel()
|
String |
getLabel()
The text to display along the Vertex' node. |
Object |
getLayoutAttribute()
Returns the layout attribute of this Vertex. |
Collection<Vertex> |
getNeighbours()
Returns the set of all Vertices that are directly connected to this Vertex. |
Object |
getRenderingAttribute()
Returns the rendering attribute of this Vertex. |
float |
getWeight()
The weight of the Vertex. |
boolean |
isConnectedBy(Edge edge)
Returns whether this Vertex is connected to the specified Edge. |
boolean |
isConnectedTo(Vertex vertex)
Returns whether this Vertex is directly connected to the specified Vertex by an Edge. |
boolean |
remove(Edge edge)
Removes an Edge from the set of Edges of this Vertex. |
void |
setHighlightLevel(float highlightLevel)
|
void |
setLabel(String label)
|
void |
setLayoutAttribute(Object layoutAttribute)
Sets the layout attribute of this Vertex. |
void |
setRenderingAttribute(Object renderingAttribute)
Sets the rendering attribute of this Vertex. |
void |
setWeight(float weight)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VertexImpl()
| Method Detail |
|---|
public void setLabel(String label)
public String getLabel()
Vertex
getLabel in interface Vertexpublic void setWeight(float weight)
public float getWeight()
Vertex
getWeight in interface Vertexpublic void add(Edge edge)
Vertex
add in interface Vertexpublic boolean remove(Edge edge)
Vertex
remove in interface Vertexpublic Collection<Edge> getEdges()
Vertex
getEdges in interface Vertexpublic Object getLayoutAttribute()
Vertex
getLayoutAttribute in interface Vertexpublic void setLayoutAttribute(Object layoutAttribute)
Vertex
setLayoutAttribute in interface Vertexpublic Object getRenderingAttribute()
Vertex
getRenderingAttribute in interface Vertexpublic void setRenderingAttribute(Object renderingAttribute)
Vertex
setRenderingAttribute in interface Vertexpublic void setHighlightLevel(float highlightLevel)
setHighlightLevel in interface Highlightablepublic float getHighlightLevel()
getHighlightLevel in interface Highlightablepublic boolean isConnectedTo(Vertex vertex)
Vertex
isConnectedTo in interface Vertexpublic boolean isConnectedBy(Edge edge)
Vertex
isConnectedBy in interface Vertexpublic Collection<Vertex> getNeighbours()
Vertex
getNeighbours in interface Vertexpublic Collection<Vertex> getConnectedVertices()
Vertex
getConnectedVertices in interface Vertexpublic Collection<Vertex> getConnectedVertices(int nrLevels)
Vertex
getConnectedVertices in interface Vertex
public Collection<Vertex> getConnectedVertices(int nrLevels,
Collection<Vertex> allowedVertices,
Collection<Edge> allowedEdges)
VertexThe specified Collections can be used to restrict the traversal of the Graph to a specific set of Vertices and/or Edges. This is for example useful when a Vertex belonging to a certain Graph has references to Edges and other Vertices not belonging to the same Graph (which may happen when the Graph is a subgraph of another Graph). Specifying 'null' means that the Vertices or Edges should not be checked this way.
If the specified number is zero, only a set containing this Vertex will be returned. If the specified number is less than zero, an infinite number of Edges may be followed.
getConnectedVertices in interface Vertex
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||