Exemple #1
0
        protected DrawCellBase(IDrawCell <TGraphics> chain1)
        {
            if (chain1 != null)
            {
                _chain = new IDrawCell <TGraphics>[] { chain1 };                // TODO no alloc
            }

            listen();
        }
Exemple #2
0
 public void func_end_update()
 {
     _typeget.func_end_update();
     foreach (int display_type in _types.Keys)
     {
         IDrawCell <TGraphics> dec = _types[display_type];
         dec.func_end_update();
     }
 }
Exemple #3
0
        public void func_begin_update(CellRange viz)
        {
            _typeget.func_begin_update(viz);

            foreach (int display_type in _types.Keys)
            {
                IDrawCell <TGraphics> dec = _types[display_type];
                dec.func_begin_update(viz);
            }
        }
Exemple #4
0
        public DrawCell_Chain_Cache(IDrawCell <TGraphics> cd, IDimension cbcol, IDimension cbrow) : base(cd)
        {
            _cache      = new Cache <TImage> (explicit_dispose);
            _cbcol      = cbcol;
            _cbrow      = cbrow;
            _func_chain = chain_draw;

            cd.changed     += on_chained_change;
            _cbcol.changed += on_columnwidth_change;
            _cbrow.changed += on_rowheight_change;
        }
Exemple #5
0
        public DrawVisible_Adapter_DrawCell(IDrawCell <TGraphics> cd)
        {
            _cd = cd;

            _cd.changed += (object sender, CellCoords e) => {
                if (changed != null)
                {
                    changed(this, e);
                }
            };
        }
Exemple #6
0
        public void func_cell_draw(int col, int row, double x, double y, double width, double height, TGraphics gr)
        {
            int display_type;

            if (_typeget.get_value(col, row, out display_type))
            {
                IDrawCell <TGraphics> dec = _types[display_type];

                dec.func_cell_draw(col, row, x, y, width, height, gr);
            }
        }
 public DrawCell_Chain_Padding(IValuePerCell <Padding?> vals, IDrawCell <IGraphics> cd) : base(vals, cd)
 {
 }
Exemple #8
0
 public ConsoleRoute(Coordinate location, IDrawCell drawCell)
 {
     Location  = location;
     _drawCell = drawCell;
 }
Exemple #9
0
 public DrawCell_Chain_Padding(IValuePerCell <Padding?> vals, IDrawCell <CGContext> cd) : base(vals, cd)
 {
 }
Exemple #10
0
 public DrawCell_Fill(IValuePerCell <CGColor> vals, IDrawCell <CGContext> chain = null) : base(vals, draw, chain)
 {
 }
Exemple #11
0
 public ConsoleMaze(IMazeFactory mazeFactory, IDrawCell drawCell) : base(mazeFactory)
 {
     _drawCell = drawCell;
 }
Exemple #12
0
 public void Add(int n, IDrawCell <TGraphics> dc)
 {
     _types [n] = dc;
 }
Exemple #13
0
 // TODO IEnumerable<IChanged> _listen_for_changes_on_these
 public DrawCell(
     IDrawCell <TGraphics> chain
     ) : base(chain)
 {
 }
 public DrawCell_Chain_Cache(IDrawCell <IGraphics> cd, IDimension cbcol, IDimension cbrow) : base(cd, cbcol, cbrow)
 {
 }
Exemple #15
0
 public DrawCell_Chain_Padding(IValuePerCell <Padding?> vals, IDrawCell <TGraphics> cd) : base(vals, null, cd)
 {
     _func_chain = chain_draw;
 }
 public DrawCell_Fill(IValuePerCell <Color> vals, IDrawCell <IGraphics> chain = null) : base(vals, draw, chain)
 {
 }
Exemple #17
0
 public ConsoleDestination(Coordinate location, IDrawCell drawCell)
 {
     Location  = location;
     _drawCell = drawCell;
 }