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

Method drawOn

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

Source from the content-addressed store, hash-verified

812 self.lineWidth=0
813
814 def drawOn(self, canv):
815 canv.saveState()
816 canv.setLineWidth(self.lineWidth)
817 if self.strokeColor:
818 r,g,b = checkColor(self.strokeColor)
819 canv.setStrokeColorRGB(r,g,b)
820 if self.fillColor:
821 r,g,b = checkColor(self.fillColor)
822 canv.setFillColorRGB(r,g,b)
823 canv.ellipse(self.x1, self.y1, self.x2, self.y2,
824 stroke=(self.strokeColor<>None),
825 fill = (self.fillColor<>None)
826 )
827 canv.restoreState()
828
829
830class PPPolygon:

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected