public ConnectionCreationTool(IDrawingEditor editor, ConnectionFigure fig)
     : base(editor, fig)
 {
     _connection = fig;
     _connection.StartConnector = null;
     _connection.EndConnector = null;
 }
 public virtual PointD FindStart(ConnectionFigure connection)
 {
     return DisplayBox.Center;
 }
 public override PointD FindStart(ConnectionFigure connection)
 {
     return connection == null ? DisplayBox.Center : Chop (Owner, connection.AfterStart);
 }
 public override PointD FindEnd(ConnectionFigure connection)
 {
     return connection == null ? DisplayBox.Center : Chop (Owner, connection.BeforeEnd);
 }
 public void AddConnection(ConnectionFigure figure)
 {
     Tool = new ConnectionCreationTool(this, figure);
 }
 public ChangeConnectionStartHandle(ConnectionFigure owner)
     : base(owner)
 {
 }
 protected ChangeConnectionHandle(ConnectionFigure owner)
     : base(owner)
 {
     Connection = owner;
     TargetFigure = null;
 }