class_docstr: Resource string colorizer.
  
  Attributes:
    _con: ConsoleAttr object.
    _color: Color name.
    _string: The string to colorize.
    _justify: The justification function, no justification if None. For example,
      justify=lambda s: s.center(10)
class_docstr_tok: ["Resource","string","colorizer",".","Attributes",":","_con",":","ConsoleAttr","object",".","_color",":","Color","name",".","_string",":","The","string","to","colorize",".","_justify",":","The","justification","function",",","no","justification","if","None",".","For","example",",","justify=lambda","s",":","s.center","(","10",")"]
docstr: Constructor.
  
  Args:
    string: The string to colorize.
    color: Color name used to index ConsoleAttr._ANSI_COLOR.
    justify: The justification function, no justification if None. For
      example, justify=lambda s: s.center(10)
docstr_tok: ["Constructor",".","Args",":","string",":","The","string","to","colorize",".","color",":","Color","name","used","to","index","ConsoleAttr._ANSI_COLOR",".","justify",":","The","justification","function",",","no","justification","if","None",".","For","example",",","justify=lambda","s",":","s.center","(","10",")"]
code: def __init__(self, string, color, justify=None):
      """Constructor.
  
      Args:
        string: The string to colorize.
        color: Color name used to index ConsoleAttr._ANSI_COLOR.
        justify: The justification function, no justification if None. For
          example, justify=lambda s: s.center(10)
      """
      self._con = GetConsoleAttr()
      self._color = color
      self._string = string
      self._justify = justify
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import unicode_literals
  import os
  import sys
  import unicodedata
  from fire.console import console_attr_os
  from fire.console import encoding
  from fire.console import text
  import six
label_desc: Use image node_id 1 to create a new Colorizer object from inherited base classes: object with example: obj = Colorizer(string, color, justify)