#NEWLINE# def draw( self , viewer ) : #NEWLINE# #INDENT# cr = viewer . renderer . setup_cr ( self ) #NEWLINE# cr . set_font_from_shape ( self ) #NEWLINE# ( cx , cy ) = self . canvascoords ( viewer , self . x , self . y ) #NEWLINE# cr . draw_text ( cx , cy , cx . text , rot_deg = self . rot_deg ) #NEWLINE# if self . showcap : #NEWLINE# #INDENT# self . draw_caps ( cr , self . cap , cpoints )