public NormalStyleTopicPointer(ITopicConnection connectionType, TopicPointer pointer) { var connector = new TopicConnector(connectionType, pointer.Topic); Path = connector.CreatePathConnection(); Thickness = pointer.Thickness; Brush = pointer.Topic.Brush; }
public NodeTopicPointer(ITopicConnection connectionType, Topic childTopic) { Topic = childTopic; var connector = new TopicConnector(connectionType, childTopic); //Path = connector.CreatePathConnection(); Thickness = 5; //Brush = Topic.Brush; }
public override TopicPointerElement CreatePointerElement(ITopicConnection connectionType, TopicPointer pointer) { if (pointer.Topic.Parent == null) return null; TopicPointerElement tp = new NormalStyleTopicPointer(connectionType, pointer); var connector = new TopicConnector(connectionType, pointer.Topic); tp.Path = connector.CreatePathConnection(); tp.Thickness = 5; tp.Brush = pointer.Topic.Brush; return tp; }
public SubTopicPointer(ITopicConnection connectionType, Topic childTopic) { Topic = childTopic; var connector = new TopicConnector(connectionType, childTopic); //Path = connector.CreatePathConnection(); if (childTopic.Parent.Pointer == null) Thickness = 5; else if (childTopic.Parent.Pointer.Thickness != 1) Thickness = childTopic.Parent.Pointer.Thickness - 1; else Thickness = 1; //Brush = Topic.Brush; }