graph_displayer_canvas.cc
branchgui
changeset 47 9a0e6e92d06c
parent 41 06f1f9a8d51f
child 48 b8ec84524fa2
equal deleted inserted replaced
25:ed53d632dc24 26:93480347ca66
    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));