'Constructor.'

def __init__(self, shape_type, name, options):

    super(Shape, self).__init__()
    self.name = name
    self.shape_type = shape_type
    self.connect = 0
    self.drawing = 0
    self.edit_as = ''
    self.id = 0
    self.text = ''
    self.stencil = 1
    self.element = (-1)
    self.start = None
    self.start_index = None
    self.end = None
    self.end_index = None
    self.adjustments = []
    self.start_side = ''
    self.end_side = ''
    self.flip_h = 0
    self.flip_v = 0
    self.rotation = 0
    self.textbox = False
    self.align = None
    self.fill = None
    self.font = None
    self.format = None
    self.line = None
    self._set_options(options)
