コード例 #1
0
        private void processMoveBendCommand(Command command)
        {
            var parameters      = command.GetParameters();
            var edgesDictionary = graph_.__getEdgesDictionary();

            var edge = edgesDictionary.Find(FullID.FromString(parameters[0]));

            if (edge == null)
            {
                return;
            }

            var position = new Point3D(double.Parse(parameters[2]),
                                       double.Parse(parameters[3]), double.Parse(parameters[4]));

            int index = int.Parse(parameters[1]);
            var bend  = edge.GetEdgeLines()[index].GetEndBend();

            bend.__move(position);

            graph_.__raiseBendMovedEvent(bend);
        }