private void DrawTextFrame(float xStart, float yStart, IGraphicContext graphicContext) { var textFramePoint1 = new Point(xStart, yStart + m_TextSize.Height + Style.Fragment.FramePadding / 2); var textFramePoint2 = new Point(xStart + m_TextSize.Width + Style.Fragment.FramePadding / 2, yStart + m_TextSize.Height + Style.Fragment.FramePadding / 2); var textFramePoint3 = new Point(xStart + m_TextSize.Width + Style.Fragment.FramePadding, yStart); graphicContext.FillPolygon(new[] { Location, textFramePoint1, textFramePoint2, textFramePoint3, Location }, Color.SemiTransparent); graphicContext.DrawLine(textFramePoint1, textFramePoint2, Style.Fragment.TextFrameWidth, Style.Fragment.TextFrameColor, Style.Common.LineStyle); graphicContext.DrawLine(textFramePoint2, textFramePoint3, Style.Fragment.TextFrameWidth, Style.Fragment.TextFrameColor, Style.Common.LineStyle); }
protected override void DrawCore(IGraphicContext graphicContext) { float x = m_Column.Body.Middle; float yStart = m_StartRow.Bottom; float yEnd = m_EndRow.Body.Middle; graphicContext.DrawLine(new Point(x, yStart), new Point(x, yEnd), Style.Lifeline.Width, Style.Lifeline.Color, Style.Common.LineStyle); base.DrawCore(graphicContext); }
protected override void DrawCore(IGraphicContext graphicContext) { float x = m_Column.Body.Middle; float y = m_Row.Body.Middle; float hWidth = Width / 2; float hHeight = Height / 2; var leftTop = new Point(x - hWidth, y - hHeight); var rightTop = new Point(x + hWidth, y - hHeight); var leftBottom = new Point(x - hWidth, y + hHeight); var rightBottom = new Point(x + hWidth, y + hHeight); graphicContext.DrawLine(leftTop, rightBottom, Style.Lifeline.XCrossLineWidth, Style.Lifeline.XCrossColor, Style.Common.LineStyle); graphicContext.DrawLine(rightTop, leftBottom, Style.Lifeline.XCrossLineWidth, Style.Lifeline.XCrossColor, Style.Common.LineStyle); base.DrawCore(graphicContext); }
public override void Draw(IGraphicContext gc) { gc.DrawLine(_from, _to, 2.0f, Color.Red, LineStyle.Sketchy); }