public override PointD FindStart (IConnectionFigure connection) { if (connection == null) { return DisplayBox.Center; } PointD point = connection.PointAt (1); return Chop (Owner, point); }
public override PointD FindEnd(IConnectionFigure connection) { if (connection == null) { return(DisplayBox.Center); } PointD point = connection.PointAt(connection.PointCount - 2); return(Chop(Owner, point)); }
public override void InvokeStart(double x, double y, IDrawingView view) { m_connection = CreateConnection(); m_connection.EndPoint = new PointD (x, y); m_connection.StartPoint = new PointD (x, y); m_connection.ConnectStart (Owner.ConnectorAt(x, y)); m_connection.UpdateConnection(); view.Drawing.Add(m_connection); view.ClearSelection(); view.AddToSelection(m_connection); m_handle = view.FindHandle(x, y); }
public override void InvokeStart(MouseEvent ev) { m_connection = CreateConnection(); m_connection.EndPoint = new PointD(ev.X, ev.Y); m_connection.StartPoint = new PointD(ev.X, ev.Y); m_connection.ConnectStart(Owner.ConnectorAt(ev.X, ev.Y)); m_connection.UpdateConnection(); ev.View.Drawing.Add(m_connection); ev.View.ClearSelection(); ev.View.AddToSelection(m_connection); m_handle = ev.View.FindHandle(ev.X, ev.Y); }
public override void InvokeStart(double x, double y, IDrawingView view) { m_connection = CreateConnection(); m_connection.EndPoint = new PointD(x, y); m_connection.StartPoint = new PointD(x, y); m_connection.ConnectStart(Owner.ConnectorAt(x, y)); m_connection.UpdateConnection(); view.Drawing.Add(m_connection); view.ClearSelection(); view.AddToSelection(m_connection); m_handle = view.FindHandle(x, y); }
public override void InvokeStart(MouseEvent ev) { m_connection = CreateConnection(); m_connection.EndPoint = new PointD (ev.X, ev.Y); m_connection.StartPoint = new PointD (ev.X, ev.Y); m_connection.ConnectStart (Owner.ConnectorAt(ev.X, ev.Y)); m_connection.UpdateConnection(); ev.View.Drawing.Add(m_connection); ev.View.ClearSelection(); ev.View.AddToSelection(m_connection); m_handle = ev.View.FindHandle(ev.X, ev.Y); }
protected ChangeConnectionHandle(IConnectionFigure owner) : base(owner) { Connection = owner; TargetFigure = null; }
protected ChangeConnectionHandle (IConnectionFigure owner): base (owner) { Connection = owner; TargetFigure = null; }
public void AddConnection(IConnectionFigure figure) { Tool = new ConnectionCreationTool(this, figure); }
public virtual PointD FindEnd (IConnectionFigure connection) { return DisplayBox.Center; }
public ConnectionCreationTool(IDrawingEditor editor, IConnectionFigure fig) : base(editor, fig) { _connection = fig; _connection.DisconnectStart(); _connection.DisconnectEnd(); }
public ChangeConnectionEndHandle (IConnectionFigure owner): base (owner) { }
public virtual PointD FindEnd(IConnectionFigure connection) { return(DisplayBox.Center); }
public ConnectionCreationTool (IDrawingEditor editor, IConnectionFigure fig): base (editor, fig) { _connection = fig; _connection.DisconnectStart (); _connection.DisconnectEnd (); }
public ChangeConnectionStartHandle(IConnectionFigure owner) : base(owner) { }