#NEWLINE# def render( self , primitive ) : #NEWLINE# #INDENT# color = self . color #NEWLINE# if isinstance ( primitive , Line ) : #NEWLINE# #INDENT# self . _render_line ( primitive , color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( primitive , Arc ) : #NEWLINE# #INDENT# self . _render_arc ( primitive , color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( primitive , Region ) : #NEWLINE# #INDENT# self . _render_region ( primitive , color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( primitive , Circle ) : #NEWLINE# #INDENT# self . _render_circle ( primitive , color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( primitive , Rectangle ) : #NEWLINE# #INDENT# self . _render_rectangle ( primitive , color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( primitive , Obround ) : #NEWLINE# #INDENT# self . _render_obround ( primitive , color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( primitive , Polygon ) : #NEWLINE# #INDENT# self . _render_polygon ( primitive , color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( primitive , Drill ) : #NEWLINE# #INDENT# self . _render_drill ( primitive , color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( primitive , TestRecord ) : #NEWLINE# #INDENT# self . _render_test_record ( primitive , color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return