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

Method drawOn

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

Source from the content-addressed store, hash-verified

738 self.lineWidth=0
739
740 def drawOn(self, canv):
741 canv.saveState()
742 canv.setLineWidth(self.lineWidth)
743 if self.fillColor:
744 r,g,b = checkColor(self.fillColor)
745 canv.setFillColorRGB(r,g,b)
746 if self.strokeColor:
747 r,g,b = checkColor(self.strokeColor)
748 canv.setStrokeColorRGB(r,g,b)
749 canv.rect(self.x, self.y, self.width, self.height,
750 stroke=(self.strokeColor<>None),
751 fill = (self.fillColor<>None)
752 )
753 canv.restoreState()
754
755
756class PPRoundRect:

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected