def _mark(self): f = self.factory mark = f.createMark() if self._stroke != None: mark.setStroke(self._stroke._stroke()) else: mark.setStroke(Stroke(self.color)._stroke()) if self.color != None and self.color.expr != None: mark.setFill(Fill(self.color, self.opacity)._fill()) else: mark.setFill(None) mark.setWellKnownName(self.type) return mark
def stroke(self, color="#000000", width=1, dash=None, cap=None, join=None): self._stroke = Stroke(color, width, dash, cap, join) return self