- Canvas::Rect *view_header = new Canvas::Rect (*this, x, 0, x+header_w, NODE_HEIGHT);
+ Canvas::Rect *view_header = new Canvas::Rect (*this, x, y, x+header_w, y+NODE_HEIGHT);
+ view_header->property_fill_color() = "blue";
+
+ /* Numero de nodo */
+ std::string node_num;
+ std::stringstream ss;
+ ss << num;
+ ss >> node_num;
+ new Canvas::Text (*this, header_w/2, y+NODE_HEIGHT/2, node_num);
+