graphlab.gui.core.graph.edge
Class Edge

java.lang.Object
  extended by graphlab.gui.core.graph.edge.Edge
All Implemented Interfaces:
AttributeListener

public class Edge
extends java.lang.Object
implements AttributeListener

Author:
Azin Azadi,roozbeh Ebrahimi

Field Summary
 BlackBoard blackboard
           
 EdgeControl control
           
 Graph g
           
static int i
           
 EdgeModel model
           
 Vertex v1
           
 Vertex v2
           
 EdgeView view
           
 
Constructor Summary
Edge(Edge e, Vertex first, Vertex sec)
           
Edge(Vertex src, Vertex trg)
           
 
Method Summary
 void attributeUpdated(java.lang.String name, java.lang.Object oldVal, java.lang.Object newVal)
           
<t> t
getAtr(java.lang.String id)
           
 java.lang.String getID()
           
 boolean isSelected()
           
 void putAtr(java.lang.String id, java.lang.Object atr)
           
 void setBlackBoard(BlackBoard b)
           
 void setGraph(Graph graph)
           
 void setID(java.lang.String id)
           
 void setSelected(boolean isSelected)
          changes the state of this edge to selected state, it means a change in the color of this edge, calling this method is different to using the select plugin, this is only changes the state of the edge
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

g

public Graph g

v1

public Vertex v1

v2

public Vertex v2

i

public static int i

model

public EdgeModel model

view

public EdgeView view

control

public EdgeControl control

blackboard

public BlackBoard blackboard
Constructor Detail

Edge

public Edge(Edge e,
            Vertex first,
            Vertex sec)

Edge

public Edge(Vertex src,
            Vertex trg)
Method Detail

setBlackBoard

public void setBlackBoard(BlackBoard b)

setID

public void setID(java.lang.String id)

putAtr

public void putAtr(java.lang.String id,
                   java.lang.Object atr)

getAtr

public <t> t getAtr(java.lang.String id)

getID

public java.lang.String getID()

attributeUpdated

public void attributeUpdated(java.lang.String name,
                             java.lang.Object oldVal,
                             java.lang.Object newVal)
Specified by:
attributeUpdated in interface AttributeListener

setSelected

public void setSelected(boolean isSelected)
changes the state of this edge to selected state, it means a change in the color of this edge, calling this method is different to using the select plugin, this is only changes the state of the edge

Parameters:
isSelected -

isSelected

public boolean isSelected()

setGraph

public void setGraph(Graph graph)