public void SemiHighlightVertex(TVertex vertex, object semiHighlightInfo) { _semiHighlightedVertices[vertex] = semiHighlightInfo; VertexControl vc; if (VertexControls.TryGetValue(vertex, out vc)) { GraphElementBehavior.SetIsSemiHighlighted(vc, true); GraphElementBehavior.SetSemiHighlightInfo(vc, semiHighlightInfo); } }
public void RemoveSemiHighlightFromEdge(TEdge edge) { _semiHighlightedEdges.Remove(edge); EdgeControl ec; if (EdgeControls.TryGetValue(edge, out ec)) { GraphElementBehavior.SetIsSemiHighlighted(ec, false); GraphElementBehavior.SetSemiHighlightInfo(ec, null); } }
public void RemoveSemiHighlightFromVertex(TVertex vertex) { _semiHighlightedVertices.Remove(vertex); VertexControl vc; if (VertexControls.TryGetValue(vertex, out vc)) { GraphElementBehavior.SetIsSemiHighlighted(vc, false); GraphElementBehavior.SetSemiHighlightInfo(vc, null); } }
public void SemiHighlightEdge(TEdge edge, object semiHighlightInfo) { _semiHighlightedEdges[edge] = semiHighlightInfo; EdgeControl ec; if (EdgeControls.TryGetValue(edge, out ec)) { GraphElementBehavior.SetIsSemiHighlighted(ec, true); GraphElementBehavior.SetSemiHighlightInfo(ec, semiHighlightInfo); } }
protected void SetHighlightProperties(TEdge edge, EdgeControl edgeControl) { object highlightInfo; if (IsHighlightedEdge(edge, out highlightInfo)) { GraphElementBehavior.SetIsHighlighted(edgeControl, true); GraphElementBehavior.SetHighlightInfo(edgeControl, highlightInfo); } object semiHighlightInfo; if (IsSemiHighlightedEdge(edge, out semiHighlightInfo)) { GraphElementBehavior.SetIsSemiHighlighted(edgeControl, true); GraphElementBehavior.SetSemiHighlightInfo(edgeControl, semiHighlightInfo); } }
protected void SetHighlightProperties(TVertex vertex, VertexControl presenter) { object highlightInfo; if (IsHighlightedVertex(vertex, out highlightInfo)) { GraphElementBehavior.SetIsHighlighted(presenter, true); GraphElementBehavior.SetHighlightInfo(presenter, highlightInfo); } object semiHighlightInfo; if (IsSemiHighlightedVertex(vertex, out semiHighlightInfo)) { GraphElementBehavior.SetIsSemiHighlighted(presenter, true); GraphElementBehavior.SetSemiHighlightInfo(presenter, semiHighlightInfo); } }