original_docstring: Draws arrow heads into given canvas.
docstring: Draws arrow heads into given canvas.
docstring_tokens: Draws arrow heads into given canvas .
code: def draw_heads(self, canvas, source=UNDEF, **overrides):
          """Draws arrow heads into given canvas."""
          
          # get properties
          start_head = self.get_property('start_head', source, overrides)
          end_head = self.get_property('end_head', source, overrides)
          
          # draw start head
          if start_head:
              
              canvas.set_pen_by(self, source=source, overrides=overrides)
              canvas.set_brush_by(self, source=source, overrides=overrides)
              
              head_overrides = self.get_child_overrides('start_head', overrides)
              start_head.draw(canvas, source=source, **head_overrides)
          
          # draw end head
          if end_head:
              
              canvas.set_pen_by(self, source=source, overrides=overrides)
              canvas.set_brush_by(self, source=source, overrides=overrides)
              
              head_overrides = self.get_child_overrides('end_head', overrides)
              end_head.draw(canvas, source=source, **head_overrides)
code_tokens: def draw_heads ( self , canvas , source = UNDEF , ** overrides ) : start_head = self . get_property ( 'start_head' , source , overrides ) end_head = self . get_property ( 'end_head' , source , overrides ) if start_head : canvas . set_pen_by ( self , source = source , overrides = overrides ) canvas . set_brush_by ( self , source = source , overrides = overrides ) head_overrides = self . get_child_overrides ( 'start_head' , overrides ) start_head . draw ( canvas , source = source , ** head_overrides ) if end_head : canvas . set_pen_by ( self , source = source , overrides = overrides ) canvas . set_brush_by ( self , source = source , overrides = overrides ) head_overrides = self . get_child_overrides ( 'end_head' , overrides ) end_head . draw ( canvas , source = source , ** head_overrides )
short_docstring: Draws arrow heads into given canvas.
short_docstring_tokens: Draws arrow heads into given canvas .
comment: """Draws arrow heads into given canvas."""$SEP$# get properties$SEP$# draw start head$SEP$# draw end head