#NEWLINE# @ staticmethod #NEWLINE# def _get_align_properties( align ) : #NEWLINE# #INDENT# if ( not align ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'defined' : False , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# align = copy . deepcopy ( align ) #NEWLINE# if ( 'vertical' in align ) : #NEWLINE# #INDENT# align_type = align [ 'vertical' ] #NEWLINE# align_types = { #NEWLINE# #INDENT# 'top' : 'top' , #NEWLINE# 'middle' : 'middle' , #NEWLINE# 'bottom' : 'bottom' , #NEWLINE# #UNINDENT# } #NEWLINE# if ( align_type in align_types ) : #NEWLINE# #INDENT# align [ 'vertical' ] = align_types [ align_type ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# warn ( ( "Unknown alignment type '%s'" % align_type ) ) #NEWLINE# return { #NEWLINE# #INDENT# 'defined' : False , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# #UNINDENT# if ( 'horizontal' in align ) : #NEWLINE# #INDENT# align_type = align [ 'horizontal' ] #NEWLINE# align_types = { #NEWLINE# #INDENT# 'left' : 'left' , #NEWLINE# 'center' : 'center' , #NEWLINE# 'right' : 'right' , #NEWLINE# #UNINDENT# } #NEWLINE# if ( align_type in align_types ) : #NEWLINE# #INDENT# align [ 'horizontal' ] = align_types [ align_type ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# warn ( ( "Unknown alignment type '%s'" % align_type ) ) #NEWLINE# return { #NEWLINE# #INDENT# 'defined' : False , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# #UNINDENT# align [ 'defined' ] = True #NEWLINE# return align