'Return list of all color stops converted to the specified mode.
If mode is None, then no conversion is done.'

def getColors(self, mode=None):

    if isinstance(mode, basestring):
        mode = self.enumMap[mode.lower()]
    color = self.color
    if ((mode in [self.BYTE, self.QCOLOR]) and (color.dtype.kind == 'f')):
        color = (color * 255).astype(np.ubyte)
    elif ((mode == self.FLOAT) and (color.dtype.kind != 'f')):
        color = (color.astype(float) / 255.0)
    if (mode == self.QCOLOR):
        color = [QtGui.QColor(*x) for x in color]
    return color
