Example #1
0
        protected override void DrawForm(Graphics g, DrawAttributes att)
        {
            Pen pen2 = new Pen(att.Pen.Color, att.Pen.Width);
            AdjustableArrowCap bigArrow;

            if (att.IsShadow || att.Scale < 0.9f)
            {
                bigArrow = new AdjustableArrowCap(2, 4);
            }
            else
            {
                bigArrow = new AdjustableArrowCap(4, 8);
            }
            pen2.CustomEndCap = bigArrow;
            if (ForceStraight)
            {
                g.DrawLine(pen2, points[0], points[3]);
            }
            else
            {
                g.DrawBezier(pen2, points[0], points[1], points[2], points[3]);
            }
            //draw arrow
            //DrawArrow(g, pen);
        }
Example #2
0
 protected override void DrawForm(Graphics g, DrawAttributes att)
 {
     g.FillEllipse(new SolidBrush(att.Pen.Color), location.X - radio - large / 2, location.Y - radio, radio * 2, radio * 2);
     g.DrawLine(att.Pen, location.X - large / 2f, location.Y, location.X + large / 2f + 0.4f, location.Y);
     g.DrawLine(att.Pen, location.X + large / 2 - radio, location.Y - radio, location.X + large / 2, location.Y);
     g.DrawLine(att.Pen, location.X + large / 2 - radio, location.Y + radio, location.X + large / 2, location.Y);
 }
Example #3
0
 protected override void DrawForm(Graphics g, DrawAttributes att)
 {
     if (!att.IsShadow)
     {
         g.FillRectangle(new SolidBrush(BackColor), rect);
     }
     g.DrawRectangle(att.Pen, rect);
 }
Example #4
0
 protected override void DrawForm(Graphics g, DrawAttributes att)
 {
     if (!att.IsShadow)
     {
         g.FillRectangle(Brushes.LightYellow, rect);
     }
     g.DrawRectangle(att.Pen, rect);
 }
Example #5
0
        protected override void DrawForm(Graphics g, DrawAttributes att)
        {
            g.FillEllipse(Brushes.White, rect);
            g.DrawEllipse(att.Pen, rect);
            Rectangle irect = rect;

            irect.Inflate(-3, -3);
            g.DrawEllipse(att.Pen, irect);
        }
Example #6
0
        protected override void DrawForm(Graphics g, DrawAttributes att)
        {
            Pen pen1 = new Pen(att.Pen.Color, 2f);

            g.FillEllipse(Brushes.White, location.X - Radio, location.Y - Radio, Radio * 2, Radio * 2);
            g.DrawEllipse(pen1, location.X - Radio, location.Y - Radio, Radio * 2, Radio * 2);
            int side = (int)Math.Round(Radio / Math.Sqrt(2f));

            g.DrawLine(pen1, location.X - side, location.Y - side, location.X + side, location.Y + side);
            g.DrawLine(pen1, location.X - side, location.Y + side, location.X + side, location.Y - side);
        }
Example #7
0
 protected override void DrawForm(Graphics g, DrawAttributes att)
 {
     g.FillEllipse(Brushes.White, location.X - Radio, location.Y - Radio, Radio * 2, Radio * 2);
     g.DrawEllipse(att.Pen, location.X - Radio, location.Y - Radio, Radio * 2, Radio * 2);
     g.FillEllipse(new SolidBrush(att.Pen.Color), location.X - smallRadio, location.Y - smallRadio, smallRadio * 2, smallRadio * 2);
 }
Example #8
0
 public override void DrawShadow(Graphics g, DrawAttributes att)
 {
     DrawForm(g, att);
 }
Example #9
0
 protected override void DrawForm(Graphics g, DrawAttributes att)
 {
     g.DrawRectangle(att.Pen, rect);
 }