info.aduna.linkmap.graph
Interface Edge

All Superinterfaces:
Highlightable
All Known Implementing Classes:
EdgeImpl

public interface Edge
extends Highlightable

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

getFirstVertex

Vertex getFirstVertex()
Returns one of the Vertices connected by this Edge, referred to as the "first vertex".


getSecondVertex

Vertex getSecondVertex()
Returns one of the Vertices connected by this Edge, referred to as the "second vertex".


getLabel

String getLabel()
Returns the text to display along the Edge.


isDirected

boolean isDirected()
Indicates whether this is a directed or undirected Edge. When it is directed, the first Vertex is considered to be the source Vertex and the second Vertex is the destination Vertex.


getWeight

float getWeight()
Returns the weight of the Edge. This may influence both graph layout and rendering. Defaults to 1.0.


getLayoutAttribute

Object getLayoutAttribute()
Sets the layout attribute of this Vertex.


setLayoutAttribute

void setLayoutAttribute(Object layoutAttribute)
Returns the layout attribute of this Vertex.


getRenderingAttribute

Object getRenderingAttribute()
Returns the rendering attribute of this Vertex.


setRenderingAttribute

void setRenderingAttribute(Object renderingAttribute)
Sets the rendering attribute of this Vertex.


isConnected

boolean isConnected()
Returns whether both Vertices are set.


isConnectedTo

boolean isConnectedTo(Vertex vertex)
Determines whether the specified Vertex is registered as the first or second Vertex of this Edge.


getOtherVertex

Vertex getOtherVertex(Vertex thisVertex)
Given one of the Vertices connected by this Edge, this method returns the other one. When the specified Vertex is not connected to this Edge (according to the registration of the Edge itself), 'null' is returned.



Copyright © 1997-2008 Aduna. All Rights Reserved.