Exemplo n.º 1
0
        private void PaintTile(Tile tile)
        {
            TileCanvasRenderContext ctx;

            ctx = new TileCanvasRenderContext(this,
                                              tile);

            // IMPORTANT!  The <meta> tag has to be in the first
            // chunk written to the stream or else the encoding
            // will be wrong!
            ctx.Write("<html>\n<head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n");

            ctx.Write("<style type=\"text/css\" media=\"screen\">\n");
            RenderStyles(ctx);
            ctx.Write("</style>\n");

            ctx.Write("</head>\n");

            if (tile != null)
            {
                tile.Render(ctx);
            }

            ctx.Write("</html>");
        }
Exemplo n.º 2
0
            override public void Tile(BT.Tile tile)
            {
                tileTable [tile.UniqueKey] = tile;

                if (!renderStylesDone)
                {
                    //KNV: Using static_stylesheet for now. Replace with TileCanvas logic later:
                    Write(static_stylesheet);

/*
 *                              Write ("<style type=\"text/css\" media=\"screen\">");
 *                              TileCanvas.RenderStyles (this);
 *                              Write ("</style>");
 */
                    renderStylesDone = true;
                }

                if (tile != null)
                {
                    if (tile is BT.TileHitCollection)
                    {
                        PrefetchSnippetsForNetworkHits((BT.TileHitCollection)tile);
                    }

                    tile.Render(this);
                }
            }
Exemplo n.º 3
0
		private void PaintTile (Tile tile)
		{
			TileCanvasRenderContext ctx;
			ctx = new TileCanvasRenderContext (this, 
							   tile);

			// IMPORTANT!  The <meta> tag has to be in the first
			// chunk written to the stream or else the encoding
			// will be wrong!
			ctx.Write ("<html>\n<head>\n<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n");

       			ctx.Write ("<style type=\"text/css\" media=\"screen\">\n");
			RenderStyles (ctx);
			ctx.Write ("</style>\n"); 

			ctx.Write ("</head>\n");

			if (tile != null) {
				tile.Render (ctx);
			}

			ctx.Write ("</html>");
		}
Exemplo n.º 4
0
			override public void Tile (Tile tile)
			{
				canvas.CacheTile (tile);
				tile.Render (this);
			}
Exemplo n.º 5
0
 override public void Tile(Tile tile)
 {
     canvas.CacheTile(tile);
     tile.Render(this);
 }