|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgraphlab.library.BaseEdge<VertexModel>
graphlab.gui.core.graph.edge.EdgeModel
public class EdgeModel
User: azin azadi,roozbeh ebrahimi
| Field Summary | |
|---|---|
BlackBoard |
blackboard
|
static java.lang.String |
DIRECTED
|
Edge |
edge
|
static java.lang.String |
ID
|
static java.lang.String |
SOURCE
|
static java.lang.String |
TARGET
|
static java.lang.String |
WEIGHT
|
| Fields inherited from class graphlab.library.BaseEdge |
|---|
head, tail |
| Constructor Summary | |
|---|---|
EdgeModel(Edge edge,
Edge sec)
|
|
EdgeModel(VertexModel v1,
VertexModel v2)
|
|
| Method Summary | |
|---|---|
void |
addAttributeListener(AttributeListener attributeListener,
java.lang.String[] attrNames)
Add a listener to changes of an AttributeSet. |
void |
attributeUpdated(java.lang.String name,
java.lang.Object oldVal,
java.lang.Object newVal)
|
java.util.Collection<AttributeListener> |
getAttributeListeners(java.lang.String attrName)
|
AttributeSet |
getAttributes()
|
Edge |
getEdgeReference()
|
void |
removeAttributeListener(AttributeListener attributeListener)
Remove a listener from list of listeners. |
void |
setColor(int color)
Sets the color of the edge. |
void |
setEdge(Edge edge)
|
void |
setMark(boolean m)
Sets the mark of the edge. |
void |
setProp(BaseEdgeProperties prop)
Sets properties object for this edge; Overwrites the existing. |
void |
setSourceTarget(Vertex source,
Vertex target)
|
void |
setWeight(int weight)
Sets the weight of the edge. |
| Methods inherited from class graphlab.library.BaseEdge |
|---|
compareTo, getColor, getMark, getProp, getWeight |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SOURCE
public static final java.lang.String TARGET
public static final java.lang.String DIRECTED
public static final java.lang.String ID
public static final java.lang.String WEIGHT
public Edge edge
public BlackBoard blackboard
| Constructor Detail |
|---|
public EdgeModel(Edge edge,
Edge sec)
public EdgeModel(VertexModel v1,
VertexModel v2)
| Method Detail |
|---|
public Edge getEdgeReference()
public AttributeSet getAttributes()
getAttributes in interface NotifiableAttributeSet
public void addAttributeListener(AttributeListener attributeListener,
java.lang.String[] attrNames)
NotifiableAttributeSetList because of
getAttributeListeners() method.
the listener will be listened for the given attrNames, if attrNames=null it means that the listener will
be notified for every attribute change.
addAttributeListener in interface NotifiableAttributeSetattributeListener - the listener!attrNames - the name of attributes to addListener for changepublic java.util.Collection<AttributeListener> getAttributeListeners(java.lang.String attrName)
getAttributeListeners in interface NotifiableAttributeSetpublic void removeAttributeListener(AttributeListener attributeListener)
NotifiableAttributeSet
removeAttributeListener in interface NotifiableAttributeSet
public void setSourceTarget(Vertex source,
Vertex target)
public void setMark(boolean m)
BaseEdge
setMark in class BaseEdge<VertexModel>m - Sets m as the mark of the edge.public void setWeight(int weight)
BaseEdge
setWeight in class BaseEdge<VertexModel>public void setProp(BaseEdgeProperties prop)
BaseEdge
setProp in class BaseEdge<VertexModel>prop - The property object to set.public void setColor(int color)
BaseEdge
setColor in class BaseEdge<VertexModel>
public void attributeUpdated(java.lang.String name,
java.lang.Object oldVal,
java.lang.Object newVal)
attributeUpdated in interface AttributeListenerpublic void setEdge(Edge edge)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||