ScoobyRom.PlotIcon2D.CreateIcon C# (CSharp) Method

CreateIcon() public method

public CreateIcon ( Tables table ) : Gdk.Pixbuf
table Tables
return Gdk.Pixbuf
        public override Gdk.Pixbuf CreateIcon(Tables.Denso.Table table)
        {
            var t = (Tables.Denso.Table2D)table;

            if (t.IsDataConst)
                return ConstDataIcon;

            plotSurface.Clear ();
            plotSurface.SmoothingMode = SmoothingMode;

            // y-values, x-values (!)
            LinePlot lp = new LinePlot (t.GetValuesYasFloats (), t.ValuesX);
            lp.Pen = pen;

            plotSurface.Add (lp);

            plotSurface.XAxis1.Hidden = true;
            plotSurface.YAxis1.Hidden = true;

            return DrawAndConvert ();
        }