Esempio 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
Esempio 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
Esempio 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
Esempio 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
Esempio 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 = []
Esempio n. 6
0
 def __init__(self):
     """Construct an empty picture"""
     TikZElement.__init__(self)
     self.nodable = True
     self.elements = []
Esempio 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
Esempio 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
Esempio 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
Esempio 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