/// <ToBeCompleted></ToBeCompleted> protected virtual void DrawGluePointLine(Graphics graphics, ILineStyle lineStyle, ICapStyle capStyle) { if (lineStyle == null) { throw new ArgumentNullException("lineStyle"); } Pen pen = ToolCache.GetPen(LineStyle, null, capStyle); DrawGluePointLine(graphics, pen); }
/// <summary> /// Draws the calculated GraphicsPath. If the GaphicsPath is not calculated yet, UpdateDrawCache will be called. /// </summary> protected void DrawPath(Graphics graphics, ILineStyle lineStyle, IFillStyle fillStyle) { UpdateDrawCache(); if (fillStyle != null) { Brush brush = ToolCache.GetTransformedBrush(FillStyle, boundingRectangleUnrotated, Center, Angle); graphics.FillPath(brush, Path); } if (lineStyle != null) { Pen pen = ToolCache.GetPen(lineStyle, null, null); graphics.DrawPath(pen, Path); } }
/// <ToBeCompleted></ToBeCompleted> protected virtual void DrawHint(Graphics graphics) { // Draw connection point hints if (IsConnected(GlueControlPoint, null) == ControlPointId.None) { if (DisplayService != null) { Pen foregroundPen = ToolCache.GetPen(DisplayService.HintForegroundStyle, null, null); Brush backgroundBrush = ToolCache.GetBrush(DisplayService.HintBackgroundStyle); DrawOutline(graphics, foregroundPen); graphics.FillPath(backgroundBrush, pinPath); graphics.DrawPath(foregroundPen, pinPath); } } }