Exemplo n.º 1
0
 def __init__(self, name=None, value=None):
     """Create a new definition with the given name and value."""
     TikZElement.__init__(self)
     self.nodable = True
     self.picturable = True
     self.name = name
     self.value = value
Exemplo n.º 2
0
 def __init__(self, text=None, font_size='normal', width=None):
     """Create a new minipage with the given text, font size and width"""
     TikZElement.__init__(self)
     self.nodable = True
     self.text = text
     self.font_size = font_size
     self.width = width
Exemplo n.º 3
0
 def __init__(self, line_type=None, thickness=None, style=None):
     """Construct a shape with the given line type, thickness and style"""
     TikZElement.__init__(self)
     self.picturable = True
     self.line_type = line_type
     self.thickness = thickness
     self.style = style
Exemplo n.º 4
0
 def __init__(self, name=None, location=None, content=None, oneline=False):
     """Construct a new node with the given name, location and content"""
     TikZElement.__init__(self)
     self.picturable = True
     self.name = name
     self.location = location
     self.content = content
     self.oneline = oneline
Exemplo n.º 5
0
 def __init__(self, name=None, value=None):
     """Create a new length field with the specified name and length"""
     TikZElement.__init__(self)
     self.nodable = True
     self.picturable = True
     self.name = name
     self.value = value
     self.additions = []
Exemplo n.º 6
0
 def __init__(self):
     """Construct an empty picture"""
     TikZElement.__init__(self)
     self.nodable = True
     self.elements = []
Exemplo n.º 7
0
 def __init__(self, comment=None):
     """Create a new comment. Comments do not have options"""
     TikZElement.__init__(self)
     self.picturable = True
     self.comment = comment
Exemplo n.º 8
0
 def __init__(self, name=None):
     """Constructs a new style with the given name"""
     TikZElement.__init__(self)
     self.picturable = True
     self.name = name
Exemplo n.º 9
0
 def __init__(self, text=None, font_size='normal'):
     """Create a new text with the specified font size"""
     TikZElement.__init__(self)
     self.nodable = True
     self.text = text
     self.font_size = font_size
Exemplo n.º 10
0
 def __init__(self, name=None, point=None):
     """Construct a new TikZ Coordinate"""
     TikZElement.__init__(self)
     self._name = name
     self._point = point
     self.picturable = True