graphlab.gui.core.graph.edge
Class Edge
java.lang.Object
graphlab.gui.core.graph.edge.Edge
- All Implemented Interfaces:
- AttributeListener
public class Edge
- extends java.lang.Object
- implements AttributeListener
- Author:
- Azin Azadi,roozbeh Ebrahimi
|
Method Summary |
void |
attributeUpdated(java.lang.String name,
java.lang.Object oldVal,
java.lang.Object newVal)
|
|
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 |
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
Edge
public Edge(Edge e,
Vertex first,
Vertex sec)
Edge
public Edge(Vertex src,
Vertex trg)
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)