void OnDrawingResized(object sender, SamDiagrams.Events.DrawingResizedEventArgs e) { if (DrawingResized != null) { Rectangle previousSizeRectangle = new Rectangle(e.PreviousBounds.Location, e.PreviousBounds.Size); previousSizeRectangle.Inflate(SelectionBorder.CORNER_SQUARE_SIZE, SelectionBorder.CORNER_SQUARE_SIZE); Rectangle newSizeRectangle = new Rectangle(drawing.Location, e.Drawing.Size); newSizeRectangle.Inflate(SelectionBorder.CORNER_SQUARE_SIZE, SelectionBorder.CORNER_SQUARE_SIZE); DrawingResized(this, new DrawingResizedEventArgs(this, previousSizeRectangle, newSizeRectangle)); } }
public void RegisterLink(SamDiagrams.Drawers.Links.LinkDrawing link) { throw new NotImplementedException(); }
void OnDrawingResized(object sender, SamDiagrams.Events.DrawingResizedEventArgs e) { containerDrawer.LinkOrchestrator.linkStrategy.DirectLinks(e.Drawing); InvalidateDrawing(e.Drawing); MergeableRectangle rectangleToInvalidate = new MergeableRectangle(e.Drawing.InvalidatedRegion); rectangleToInvalidate.Merge(e.PreviousBounds); invalidateOverlappingDrawings(rectangleToInvalidate.Bounds); containerDrawer.DiagramContainer.Invalidate(e.PreviousBounds); }
public SamDiagrams.Drawers.Links.LinkDrawing CreateLink(SamDiagrams.Model.ILink link, int lineWidth, int selectedLineWidth, LinkStyle streightLines) { throw new NotImplementedException(); }