예제 #1
0
 def add_label(self, text, layer, offset=[0, 0], zoom=1):
     """Adds a text label on the given layer,offset, and zoom level"""
     debug.info(3,
                "add label " + text + " " + str(layer) + " " + str(offset))
     # negative layers indicate "unused" layers in a given technology
     layerNumber = techlayer[layer]
     if layerNumber >= 0:
         self.objs.append(geometry.label(text, layerNumber, offset, zoom))
예제 #2
0
 def add_label(self, text, layer, offset=[0,0],zoom=-1):
     """Adds a text label on the given layer,offset, and zoom level"""
     # negative layers indicate "unused" layers in a given technology
     debug.info(5,"add label " + str(text) + " " + layer + " " + str(offset))
     layer_num = techlayer[layer]
     if layer_num >= 0:
         self.objs.append(geometry.label(text, layer_num, offset, zoom))
         return self.objs[-1]
     return None
예제 #3
0
 def add_label(self, text, layer, offset=[0, 0], zoom=-1):
     """Adds a text label on the given layer,offset, and zoom level"""
     # negative layers indicate "unused" layers in a given technology
     layerNumber = techlayer[layer]
     if layerNumber >= 0:
         self.objs.append(geometry.label(text, layerNumber, offset, zoom))