Exemple #1
0
        public override Gdk.Pixbuf CreateIcon(Tables.Denso.Table table)
        {
            var t = (Tables.Denso.Table3D)table;

            if (t.IsDataConst)
            {
                return(ConstDataIcon);
            }

            Plot3D.Draw(plotSurface, t);
            return(DrawAndConvert());
        }
        protected bool FindIter(Tables.Denso.Table table, out TreeIter iter)
        {
            // not using ForEach - more complicated due to returning iter
            if (!store.GetIterFirst(out iter))
            {
                return(false);
            }

            Tables.Denso.Table currentTable;
            do
            {
                currentTable = (Tables.Denso.Table)store.GetValue(iter, ColumnNrObj);
                if (currentTable.Equals(table))
                {
                    return(true);
                }
            } while (store.IterNext(ref iter));
            iter = TreeIter.Zero;
            return(false);
        }
Exemple #3
0
        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());
        }
 public void ChangeTableType(Tables.Denso.Table table, Tables.TableType newType)
 {
     data.ChangeTableType(table, newType);
 }
 protected void CreateSetNewIcon(TreeIter iter, Tables.Denso.Table table)
 {
     store.SetValue(iter, ColumnNrIcon, plotIcon.CreateIcon(table));
 }
 public abstract void SetNodeContentTypeChanged(TreeIter iter, Tables.Denso.Table table);
Exemple #7
0
 abstract public Gdk.Pixbuf CreateIcon(Tables.Denso.Table table);