Example #1
0
 public static IndexEdge listFind(EdgesType edges, VertexKey key)
 {
     foreach (IndexEdge ele in edges)
     {
         if (ele.targetID == key)
         {
             return(ele);
         }
     }
     return(null);
 }
Example #2
0
 /// <summary>
 /// Get controls related to specified control 
 /// </summary>
 /// <param name="ctrl">Original control</param>
 /// <param name="resultType">Type of resulting related controls</param>
 /// <param name="edgesType">Optional edge controls type</param>
 public abstract List<IGraphControl> GetRelatedControls(IGraphControl ctrl, GraphControlType resultType = GraphControlType.VertexAndEdge, EdgesType edgesType = EdgesType.Out);
Example #3
0
 /// <summary>
 /// Generates and displays edges for specified vertex
 /// </summary>
 /// <param name="vc">Vertex control</param>
 /// <param name="edgeType">Type of edges to display</param>
 /// <param name="defaultVisibility">Default edge visibility on layout</param>
 public abstract void GenerateEdgesForVertex(VertexControl vc, EdgesType edgeType, Visibility defaultVisibility = Visibility.Visible);
 public static void SetHighlightEdges(DependencyObject obj, EdgesType value)
 {
     obj.SetValue(HighlightEdgesProperty, value);
 }
Example #5
0
 /// <summary>
 /// Generates and displays edges for specified vertex
 /// </summary>
 /// <param name="vc">Vertex control</param>
 /// <param name="edgeType">Type of edges to display</param>
 /// <param name="defaultVisibility">Default edge visibility on layout</param>
 public abstract void GenerateEdgesForVertex(VertexControl vc, EdgesType edgeType, Visibility defaultVisibility = Visibility.Visible);
Example #6
0
 /// <summary>
 /// Get controls related to specified control
 /// </summary>
 /// <param name="ctrl">Original control</param>
 /// <param name="resultType">Type of resulting related controls</param>
 /// <param name="edgesType">Optional edge controls type</param>
 public abstract List <IGraphControl> GetRelatedControls(IGraphControl ctrl, GraphControlType resultType = GraphControlType.VertexAndEdge, EdgesType edgesType = EdgesType.Out);
Example #7
0
 /// <summary>
 /// Generates and displays edges for specified vertex
 /// </summary>
 /// <param name="vc">Vertex control</param>
 /// <param name="edgeType">Type of edges to display</param>
 /// <param name="defaultVisibility">Default edge visibility on layout</param>
 public virtual void GenerateEdgesForVertex(VertexControl vc, EdgesType edgeType, Visibility defaultVisibility = System.Windows.Visibility.Visible)
 {
 }
Example #8
0
 /// <summary>
 /// Get controls related to specified control
 /// </summary>
 /// <param name="vc">Original control</param>
 /// <param name="resultType">Type of resulting related controls</param>
 /// <param name="edgesType">Optional edge controls type</param>
 public virtual List <IGraphControl> GetRelatedControls(IGraphControl ctrl, GraphControlType resultType = GraphControlType.VertexAndEdge, EdgesType edgesType = EdgesType.Out)
 {
     return(null);
 }
Example #9
0
 public static void SetHighlightEdges(DependencyObject obj, EdgesType value)
 {
     obj.SetValue(HighlightEdgesProperty, value);
 }