Example #1
0
        protected override void DrawCore(IGraphicContext graphicContext)
        {
            // TODO debug flag graphicContext.FillRectangle(Point.Empty, Size, Color.Blue);

            graphicContext.DrawText(
                Point.Empty,
                PaddedSize,
                _text.DisplayText,
                Font.Handwritten,
                12,
                Color.Black,
                HorizontalAlignment.Left,
                VerticalAlignment.Middle
                );
        }
Example #2
0
        protected override void DrawText(IGraphicContext graphicContext)
        {
            float xText = m_Column.Body.Right + Style.Signal.ArrowCapSize + Style.Signal.TextPadding;
            float yText = m_EndRow.Body.Bottom - Style.Signal.TextPadding - m_TextSize.Height;

            graphicContext.DrawText(
                new Point(xText, yText),
                m_TextSize + new Padding(Style.Signal.TextPadding),
                m_Signal.Name,
                Style.Common.Font,
                Style.Signal.FontSize,
                Style.Signal.TextColor,
                HorizontalAlignment.Left,
                VerticalAlignment.Middle);
        }
Example #3
0
        protected override void DrawText(IGraphicContext graphicContext)
        {
            float xText = m_Signal.End.Orientation == Orientation.Right
                              ? m_EndColumn.Body.Right
                              : m_EndColumn.Body.Left - m_TextSize.Width;

            float yText = m_Row.Body.Bottom - Style.Signal.TextPadding - m_TextSize.Height;

            graphicContext.DrawText(
                new Point(xText, yText),
                m_TextSize,
                m_Signal.Name,
                Style.Common.Font,
                Style.Signal.FontSize,
                Style.Signal.TextColor,
                HorizontalAlignment.Center,
                VerticalAlignment.Middle);
        }
Example #4
0
        protected override void DrawCore(IGraphicContext graphicContext)
        {
            float yLine = m_TopRow.TopGap.Bottom - BottomOffset + 4;
            float yText = yLine + 2;

            float xStart = Parent.Location.X;
            float xEnd   = Parent.Location.X + Parent.Size.Width;

            if (!m_IsFirst)
            {
                graphicContext.DrawDashedLine(new Point(xStart, yLine), new Point(xEnd, yLine), Style.Fragment.OperandSeparatorWidth, Style.Fragment.OperandSeparatorColor, Style.Common.LineStyle);
            }

            Point textLocation = new Point(xStart + 5, yText);

            graphicContext.FillRectangle(textLocation, Size, Color.SemiTransparent);
            graphicContext.DrawText(
                textLocation, Size,
                m_GuardExpressionText,
                Style.Common.Font, Style.GuardExpression.FontSize, Style.GuardExpression.TextColor,
                HorizontalAlignment.Left, VerticalAlignment.Middle);

            base.DrawCore(graphicContext);
        }
Example #5
0
 protected override void DrawCore(IGraphicContext graphicContext)
 {
     Location = Parent.Location;
     graphicContext.DrawText(Location, Size, m_Name, Style.Common.Font, Style.Lifeline.NameFontSize, Style.Lifeline.NameTextColor, HorizontalAlignment.Center, VerticalAlignment.Middle);
 }
Example #6
0
        private void DrawText(IGraphicContext graphicContext)
        {
            Size textArea = m_TextSize + new Padding(Style.Fragment.FramePadding / 2);

            graphicContext.DrawText(Location, textArea, m_Fragment.Title, Style.Common.Font, Style.Fragment.FontSize, Style.Fragment.TextColor, HorizontalAlignment.Center, VerticalAlignment.Middle);
        }