protected override void DrawCore(IGraphicContext graphicContext)
 {
     if (_members.Count() != 0)
     {
         graphicContext.DrawRectangle(Point.Empty, Size, Color.Black, LineStyle.Sketchy);
     }
 }
Ejemplo n.º 2
0
        protected override void DrawCore(IGraphicContext graphicContext)
        {
            float y = m_Row.Bottom - Size.Height;
            float x = m_Column.Body.Middle - Size.Width / 2;

            Location = new Point(x, y);

            graphicContext.DrawRectangle(Location, Size, Style.Lifeline.NameFrameColor, Style.Common.LineStyle);
            base.DrawCore(graphicContext);
        }
Ejemplo n.º 3
0
        private void DrawCellAreas(IGraphicContext graphicContext)
        {
            foreach (var row in Rows)
            {
                var rowTop        = row.Top;
                var rowHeight     = row.Bottom - rowTop;
                var rowBodyTop    = row.Body.Top;
                var rowBodyHeight = row.Body.Bottom - row.Body.Top;

                foreach (var column in Columns)
                {
                    var columnLeft      = column.Left;
                    var columnWidth     = column.Right - columnLeft;
                    var columnBodyLeft  = column.Body.Left;
                    var columnBodyWidth = column.Body.Right - columnBodyLeft;

                    graphicContext.FillRectangle(
                        new Point(columnLeft, rowTop),
                        new Size(columnWidth, rowHeight),
                        new Color(50, Color.Green));

                    graphicContext.DrawRectangle(
                        new Point(columnLeft, rowTop),
                        new Size(columnWidth, rowHeight),
                        new Color(100, Color.Green),
                        Style.Common.LineStyle);

                    graphicContext.FillRectangle(
                        new Point(columnBodyLeft, rowBodyTop),
                        new Size(columnBodyWidth, rowBodyHeight),
                        new Color(50, Color.Red));

                    graphicContext.DrawRectangle(
                        new Point(columnBodyLeft, rowBodyTop),
                        new Size(columnBodyWidth, rowBodyHeight),
                        new Color(100, Color.Red),
                        Style.Common.LineStyle);
                }
            }
        }
Ejemplo n.º 4
0
        protected override void DrawCore(IGraphicContext graphicContext)
        {
            float xFromCenterAbsoulute = Width / 2 * m_Activity.Level;
            float xFromCenterRelative  = m_Activity.Orientation == Orientation.Left
                                            ? -xFromCenterAbsoulute
                                            : xFromCenterAbsoulute;

            float x = m_Column.Body.Middle + xFromCenterRelative - Width / 2;

            float yStart = m_StartRow.Body.Bottom;
            float yEnd   = m_EndRow.Body.Bottom;

            var location = new Point(x, yStart);
            var size     = new Size(Width, yEnd - yStart);

            graphicContext.FillRectangle(location, size, Style.Activity.BackColor);
            graphicContext.DrawRectangle(location, size, Style.Activity.FrameColor, Style.Common.LineStyle);

            base.DrawCore(graphicContext);
        }
Ejemplo n.º 5
0
 private void DrawOuterFrame(IGraphicContext graphicContext)
 {
     graphicContext.DrawRectangle(Location, Size, Style.Fragment.FrameColor, Style.Common.LineStyle);
 }