Пример #1
0
 public UMLOpenArrow(CanvasGroup group)
     : base(group)
 {
     _arrowhead = new CanvasLine (group);
     _arrowhead.WidthUnits= 1.0;
     _arrowhead.FillColorGdk = UMLEdge.OUTLINE_COLOR;
     _arrowhead.Lower (1);
     Redraw ();
     _arrowhead.Show ();
 }
Пример #2
0
 // there's no need to specify the location, because every segment will
 // be placed in the canvas in the method Redraw.
 private CanvasLine CreateLine()
 {
     CanvasLine line = new CanvasLine (this);
     line.CanvasEvent += new CanvasEventHandler (LineEventHandler);
     line.FillColorGdk = OUTLINE_COLOR;
     line.WidthUnits = WIDTH_UNITS;
     line.Lower (1);
     line.Show ();
     return line;
 }