Netstream.NetStreamSender.RemoveEdgeAttribute C# (CSharp) Method

RemoveEdgeAttribute() public method

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);
        }

Usage Example

Beispiel #1
0
        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;
        }
All Usage Examples Of Netstream.NetStreamSender::RemoveEdgeAttribute