'return a single bar'

def build_bar(self, value, width, height, color):

    title = ((self.absValuesPrefix + str(value)) + self.absValuesSuffix)
    bg = ((self.__img_pattern.search(color) and 'background') or 'bgcolor')
    bar = '<table    border=0    cellspacing=0    cellpadding=0><tr>'
    bar += (((((('<td    style="' + self.__cssBAR) + '"    ') + bg) + '="') + color) + '"')
    bar += (((value != '') and (('    title="' + title) + '">')) or '>')
    bar += (((('<div    style="width:' + str(width)) + 'px;    height:') + str(height)) + 'px;')
    bar += '    line-height:1px;    font-size:1px;"></div>'
    bar += '</td></tr></table>'
    return bar
