コード例 #1
0
 public DrawingView(CGRect rect) : base(rect)
 {
     ContentMode      = UIViewContentMode.Redraw;
     AutoresizingMask = UIViewAutoresizing.All;
     BackColor        = Color.Wheat;
     dc         = new DataCollection();
     cs         = new ChartStyle(this);
     cs.XLimMin = 0f;
     cs.XLimMax = 6f;
     cs.YLimMin = -1.1f;
     cs.YLimMax = 1.1f;
 }
コード例 #2
0
 public void AddLines(Graphics g, ChartStyle cs)
 {
     foreach (DataSeries ds in DataSeriesList) {
         if (ds.LineStyle.IsVisible == true) {
             var aPen = new Pen(ds.LineStyle.LineColor, ds.LineStyle.Thickness);
             aPen.DashStyle = ds.LineStyle.Pattern;
             for (int i = 1; i < ds.PointList.Count; i++)
                 g.DrawLine(aPen, cs.Point2D ((CGPoint)ds.PointList[i - 1]), cs.Point2D ((CGPoint)ds.PointList[i]));
             aPen.Dispose();
         }
     }
 }
コード例 #3
0
 public DrawingView(RectangleF rect)
     : base(rect)
 {
     ContentMode = UIViewContentMode.Redraw;
     this.AutoresizingMask = UIViewAutoresizing.All;
     BackColor = Color.Wheat;
     dc = new DataCollection();
     cs = new ChartStyle(this);
     cs.XLimMin = 0f;
     cs.XLimMax = 6f;
     cs.YLimMin = -1.1f;
     cs.YLimMax = 1.1f;
 }
コード例 #4
0
        public DrawingView(CGRect rect) : base(rect)
        {
            ContentMode      = UIViewContentMode.Redraw;
            AutoresizingMask = UIViewAutoresizing.All;
            var bgc = Color.Wheat;

            BackgroundColor = UIColor.FromRGBA(bgc.R, bgc.G, bgc.B, bgc.A);

            dc         = new DataCollection();
            cs         = new ChartStyle(this);
            cs.XLimMin = 0f;
            cs.XLimMax = 6f;
            cs.YLimMin = -1.1f;
            cs.YLimMax = 1.1f;
        }
コード例 #5
0
        public DrawingView(CGRect rect)
            : base(rect)
        {
            ContentMode = UIViewContentMode.Redraw;
            AutoresizingMask = UIViewAutoresizing.All;
            var bgc = Color.Wheat;
            BackgroundColor = UIColor.FromRGBA(bgc.R,bgc.G,bgc.B, bgc.A);

            dc = new DataCollection();
            cs = new ChartStyle(this);
            cs.XLimMin = 0f;
            cs.XLimMax = 6f;
            cs.YLimMin = -1.1f;
            cs.YLimMax = 1.1f;
        }
コード例 #6
0
 public void AddLines(Graphics g, ChartStyle cs)
 {
     foreach (DataSeries ds in DataSeriesList)
     {
         if (ds.LineStyle.IsVisible == true)
         {
             var aPen = new Pen(ds.LineStyle.LineColor, ds.LineStyle.Thickness);
             aPen.DashStyle = ds.LineStyle.Pattern;
             for (int i = 1; i < ds.PointList.Count; i++)
             {
                 g.DrawLine(aPen, cs.Point2D((CGPoint)ds.PointList[i - 1]), cs.Point2D((CGPoint)ds.PointList[i]));
             }
             aPen.Dispose();
         }
     }
 }