gui/graph_displayer_canvas.cc
changeset 1598 739df601808d
parent 1592 4708b716d2f4
child 1599 c2f95eac652b
equal deleted inserted replaced
25:a15a53a58b9f 26:a27d2a41e245
    30     coos.push_back(Gnome::Art::Point(cm[g.source(i)].x,cm[g.source(i)].y));
    30     coos.push_back(Gnome::Art::Point(cm[g.source(i)].x,cm[g.source(i)].y));
    31     coos.push_back(Gnome::Art::Point(cm[g.target(i)].x,cm[g.target(i)].y));
    31     coos.push_back(Gnome::Art::Point(cm[g.target(i)].x,cm[g.target(i)].y));
    32     
    32     
    33     edgesmap[i]=new BrokenEdge(displayed_graph, coos, *this);
    33     edgesmap[i]=new BrokenEdge(displayed_graph, coos, *this);
    34     *(edgesmap[i]) << Gnome::Canvas::Properties::fill_color("green");
    34     *(edgesmap[i]) << Gnome::Canvas::Properties::fill_color("green");
    35     edgesmap[i]->property_width_pixels().set_value(10);    
    35     edgesmap[i]->property_width_units().set_value(10);    
    36     
    36     
    37     //initializing edge-text as well, to empty string
    37     //initializing edge-text as well, to empty string
    38 
    38 
    39     xy<double> text_pos=edgesmap[i]->getArrowPos();
    39     xy<double> text_pos=edgesmap[i]->getArrowPos();
    40     text_pos+=(xy<double>(10,10));
    40     text_pos+=(xy<double>(10,10));