#NEWLINE# def draw( self , viewer ) : #NEWLINE# #INDENT# ( ( cx1 , cy1 ) , ( cx2 , cy2 ) , ( cx3 , cy3 ) ) = self . get_cpoints ( viewer ) #NEWLINE# cr = viewer . renderer . setup_cr ( self ) #NEWLINE# cr . set_font_from_shape ( self ) #NEWLINE# cr . draw_line ( cx1 , cy1 , cx2 , cy2 ) #NEWLINE# self . draw_arrowhead ( cr , cx1 , cy1 , cx2 , cy2 ) #NEWLINE# cr . draw_line ( cx1 , cy1 , cx3 , cy3 ) #NEWLINE# self . draw_arrowhead ( cr , cx1 , cy1 , cx3 , cy3 ) #NEWLINE# ( cx , cy ) = self . get_textpos ( cr , 'N' , cx1 , cy1 , cx2 , cy2 ) #NEWLINE# cr . draw_text ( cx , cy , 'N' ) #NEWLINE# ( cx , cy ) = self . get_textpos ( cr , 'E' , cx1 , cy1 , cx3 , cy3 ) #NEWLINE# cr . draw_text ( cx , cy , 'E' ) #NEWLINE# if self . showcap : #NEWLINE# #INDENT# self . draw_caps ( cr , self . cap , ( ( cx1 , cy1 ) , ) )