public RemoveEdgeAttribute ( String sourceId, ulong timeId, String edgeId, String attribute ) : void | ||
sourceId | String | |
timeId | ulong | |
edgeId | String | |
attribute | String | |
return | void |
public void RemoveEdgeAttribute(String sourceId, ulong timeId,
String edgeId, String attribute)
{
NetStreamStorage buff = new NetStreamStorage().
EncodeArray(_streamIdArray).
EncodeEvent(NetStreamEvent.DelEdgeAttr).
EncodeString(sourceId).
EncodeNative(timeId).
EncodeString(edgeId).
EncodeString(attribute);
DoSend(buff);
}
private static void AddEdgeWithLabel(NetStreamSender stream, string sourceId, ref ulong timeId, string name, string nodeFrom, string nodeTo) { if (lastEdge != null) stream.RemoveEdgeAttribute(sourceId, timeId++, lastEdge, "ui.class"); stream.AddEdge(sourceId, timeId++, name, nodeFrom, nodeTo, false); stream.AddEdgeAttribute(sourceId, timeId++, name, "ui.label", name); stream.AddEdgeAttribute(sourceId, timeId++, name, "ui.class", "active"); lastEdge = name; }