graph_displayer_canvas.cc
branchgui
changeset 63 59768817442a
parent 59 c38925cc6a4d
child 66 4ca5a537ef07
     1.1 --- a/graph_displayer_canvas.cc	Thu Aug 18 13:33:49 2005 +0000
     1.2 +++ b/graph_displayer_canvas.cc	Tue Aug 23 07:36:09 2005 +0000
     1.3 @@ -62,6 +62,7 @@
     1.4      edgesmap[i]=new BrokenEdge(displayed_graph, coos, *this);
     1.5      *(edgesmap[i]) << Gnome::Canvas::Properties::fill_color("green");
     1.6      edgesmap[i]->property_width_units().set_value(10);    
     1.7 +    edgesmap[i]->lower_to_bottom();
     1.8      
     1.9      //initializing edge-text as well, to empty string
    1.10  
    1.11 @@ -71,6 +72,7 @@
    1.12      edgetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, "");
    1.13      edgetextmap[i]->property_fill_color().set_value("darkgreen");
    1.14      edgetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::edgeMapEditEventHandler), false);
    1.15 +    edgetextmap[i]->raise_to_top();
    1.16    }
    1.17  
    1.18    //afterwards nodes come to be drawn
    1.19 @@ -87,6 +89,7 @@
    1.20          mapstorage.coords[i].y+20);
    1.21      *(nodesmap[i]) << Gnome::Canvas::Properties::fill_color("blue");
    1.22      *(nodesmap[i]) << Gnome::Canvas::Properties::outline_color("black");
    1.23 +    nodesmap[i]->raise_to_top();
    1.24  
    1.25      //initializing edge-text as well, to empty string
    1.26  
    1.27 @@ -98,6 +101,7 @@
    1.28          text_pos.x, text_pos.y, "");
    1.29      nodetextmap[i]->property_fill_color().set_value("darkblue");
    1.30      nodetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::nodeMapEditEventHandler), false);
    1.31 +    nodetextmap[i]->raise_to_top();
    1.32    }
    1.33  
    1.34    updateScrollRegion();