Пример #1
0
        private void SetHighlightProperties(TEdge edge, EdgeControl edgeControl)
        {
            Debug.Assert(edge != null);
            Debug.Assert(edgeControl != null);

            if (IsHighlightedEdge(edge, out object highlightInfo))
            {
                GraphElementBehaviour.SetIsHighlighted(edgeControl, true);
                GraphElementBehaviour.SetHighlightInfo(edgeControl, highlightInfo);
            }

            if (IsSemiHighlightedEdge(edge, out object semiHighlightInfo))
            {
                GraphElementBehaviour.SetIsSemiHighlighted(edgeControl, true);
                GraphElementBehaviour.SetSemiHighlightInfo(edgeControl, semiHighlightInfo);
            }
        }
Пример #2
0
        private void SetHighlightProperties([NotNull] TVertex vertex, [NotNull] VertexControl vertexControl)
        {
            Debug.Assert(vertex != null);
            Debug.Assert(vertexControl != null);

            if (IsHighlightedVertex(vertex, out object highlightInfo))
            {
                GraphElementBehaviour.SetIsHighlighted(vertexControl, true);
                GraphElementBehaviour.SetHighlightInfo(vertexControl, highlightInfo);
            }

            if (IsSemiHighlightedVertex(vertex, out object semiHighlightInfo))
            {
                GraphElementBehaviour.SetIsSemiHighlighted(vertexControl, true);
                GraphElementBehaviour.SetSemiHighlightInfo(vertexControl, semiHighlightInfo);
            }
        }
        private void SetHighlightProperties(TEdge edge, EdgeControl edgeControl)
        {
            object highlightInfo;

            if (IsHighlightedEdge(edge, out highlightInfo))
            {
                GraphElementBehaviour.SetIsHighlighted(edgeControl, true);
                GraphElementBehaviour.SetHighlightInfo(edgeControl, highlightInfo);
            }

            object semiHighlightInfo;

            if (IsSemiHighlightedEdge(edge, out semiHighlightInfo))
            {
                GraphElementBehaviour.SetIsSemiHighlighted(edgeControl, true);
                GraphElementBehaviour.SetSemiHighlightInfo(edgeControl, semiHighlightInfo);
            }
        }
        private void SetHighlightProperties(TVertex vertex, VertexControl presenter)
        {
            object highlightInfo;

            if (IsHighlightedVertex(vertex, out highlightInfo))
            {
                GraphElementBehaviour.SetIsHighlighted(presenter, true);
                GraphElementBehaviour.SetHighlightInfo(presenter, highlightInfo);
            }

            object semiHighlightInfo;

            if (IsSemiHighlightedVertex(vertex, out semiHighlightInfo))
            {
                GraphElementBehaviour.SetIsSemiHighlighted(presenter, true);
                GraphElementBehaviour.SetSemiHighlightInfo(presenter, semiHighlightInfo);
            }
        }