Esempio n. 1
0
 private DotNetXmlSwfChart.DrawCircle CreateDrawCircle(int p)
 {
     DrawCircle dc = new DrawCircle();
     dc.X = 70;
     dc.Y = 260;
     dc.FillColor = "ff0000";
     dc.LineColor = "ff0000";
     switch (p)
     {
         case 1:
             dc.Radius = 30;
             dc.FillAlpha = 50;
             dc.LineAlpha = 0;
             dc.LineThickness = 0;
             break;
         case 2:
             dc.Radius = 50;
             dc.FillAlpha = 0;
             dc.LineAlpha = 40;
             dc.LineThickness = 15;
             break;
         case 3:
             dc.Radius = 75;
             dc.FillAlpha = 0;
             dc.LineAlpha = 30;
             dc.LineThickness = 3;
             break;
     }
     return dc;
 }
 private DrawCircle CreateDrawCircle(string date)
 {
     DrawCircle dc = new DrawCircle();
     dc.Transition = TransitionType.slide_right;
     dc.Delay = 0;
     dc.Duration = 0.5;
     dc.X = DateToPixels(date);
     dc.Radius = 4;
     dc.FillColor = "ffff00";
     dc.FillAlpha = 90;
     dc.LineThickness = 0;
     switch (date) {
         case "7/1":
             dc.Y = 115;
             break;
         case "8/1":
             dc.Y = 130;
             break;
         case "9/1":
             dc.Y = 145;
             break;
     }
     return dc;
 }
Esempio n. 3
0
 public void AddDrawCircle(DrawCircle circle)
 {
     if (this.DrawCircles == null) this.DrawCircles = new List<DrawCircle>();
     this.DrawCircles.Add(circle);
 }
        private List<xsc.DrawCircle> SetDrawCircles()
        {
            List<xsc.DrawCircle> cir = new List<xsc.DrawCircle>();
            xsc.DrawCircle c = new xsc.DrawCircle();
            c.X = 85;
            c.Y = 252;
            c.Radius = 8;
            c.FillColor = "000000";
            c.FillAlpha = 0;
            c.LineColor = "000000";
            c.LineAlpha = 60;
            c.LineThickness = 2;
            cir.Add(c);

            c = new xsc.DrawCircle();
            c.X = 260;
            c.Y = 252;
            c.Radius = 8;
            c.FillColor = "000000";
            c.FillAlpha = 0;
            c.LineColor = "000000";
            c.LineAlpha = 60;
            c.LineThickness = 2;
            cir.Add(c);

            c = new xsc.DrawCircle();
            c.X = 85;
            c.Y = 252;
            c.Radius = 5;
            c.FillColor = "000000";
            c.FillAlpha = 90;
            c.LineColor = "000000";
            c.LineAlpha = 0;
            c.LineThickness = 0;
            cir.Add(c);

            return cir;
        }