示例#1
0
 public void SetMarker(wMarker.MarkerType MarkMode, int MarkSize, wColor MarkColor)
 {
     if (MarkMode == 0)
     {
         HasMarker = false;
     }
     else
     {
         HasMarker = true;
     }
     Marker.Mode   = MarkMode;
     Marker.Radius = MarkSize;
     Marker.Graphics.Background = MarkColor;
 }
示例#2
0
        public void SetDefaultMarkers(wGradient Pallet, wMarker.MarkerType MarkerType, bool IsRandom, bool BySeries)
        {
            int Total = Pallet.ColorSet.Count;

            if (IsRandom)
            {
                for (int i = 0; i < Sets.Count; i++)
                {
                    Random rnd = new Random();
                    for (int j = 0; j < Sets[i].Points.Count; j++)
                    {
                        int Index = rnd.Next(0, Total);
                        Sets[i].Points[j].Marker.Graphics.Background = Pallet.ColorSet[Index];
                        Sets[i].Points[j].Marker.Mode = MarkerType;
                    }
                }
            }
            else
            {
                int im = 0;
                int jm = 0;
                if (BySeries)
                {
                    im = 1;
                }
                else
                {
                    jm = 1;
                }

                for (int i = 0; i < Sets.Count; i++)
                {
                    for (int j = 0; j < Sets[i].Points.Count; j++)
                    {
                        Sets[i].Points[j].Marker.Graphics.Background = Pallet.ColorSet[((i * im) + (j * jm)) % Total];
                        Sets[i].Points[j].Marker.Mode = MarkerType;
                    }
                }
            }
        }