MCPcopy Create free account
hub / github.com/Distrotech/reportlab / drawOn

Method drawOn

tools/pythonpoint/pythonpoint.py:767–781  ·  view source on GitHub ↗
(self, canv)

Source from the content-addressed store, hash-verified

765 self.lineWidth=0
766
767 def drawOn(self, canv):
768 canv.saveState()
769 canv.setLineWidth(self.lineWidth)
770 if self.fillColor:
771 r,g,b = checkColor(self.fillColor)
772 canv.setFillColorRGB(r,g,b)
773 if self.strokeColor:
774 r,g,b = checkColor(self.strokeColor)
775 canv.setStrokeColorRGB(r,g,b)
776 canv.roundRect(self.x, self.y, self.width, self.height,
777 self.radius,
778 stroke=(self.strokeColor<>None),
779 fill = (self.fillColor<>None)
780 )
781 canv.restoreState()
782
783
784class PPLine:

Callers

nothing calls this directly

Calls 7

checkColorFunction · 0.85
setFillColorRGBMethod · 0.80
setStrokeColorRGBMethod · 0.80
saveStateMethod · 0.45
setLineWidthMethod · 0.45
roundRectMethod · 0.45
restoreStateMethod · 0.45

Tested by

no test coverage detected