def DrawShape(self, device, rect = None, clip = 0):
		Primitive.DrawShape(self, device)
		if self.radius1 == self.radius2 == 0:
			device.Rectangle(self.trafo, clip)
		else:
			device.RoundedRectangle(self.trafo, self.radius1, self.radius2,
									clip)
Exemple #2
0
	def DrawShape(self, device, rect=None, clip=0):
		text = self.text; trafos = self.trafos
		font = self.properties.font; font_size = self.properties.font_size

		Primitive.DrawShape(self, device)
		device.BeginComplexText(clip, self.cache)
		for idx in range(len(trafos)):
			char = text[idx]
			if char not in '\r\n':# avoid control chars
				device.DrawComplexText(text[idx], trafos[idx], font, font_size)
		device.EndComplexText()
Exemple #3
0
 def DrawShape(self, device, rect=None, clip=0):
     Primitive.DrawShape(self, device)
     device.SimpleEllipse(self.trafo, self.start_angle, self.end_angle,
                          self.arc_type, rect, clip)