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

Method drawOn

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

Source from the content-addressed store, hash-verified

792 self.lineWidth=0
793
794 def drawOn(self, canv):
795 canv.saveState()
796 canv.setLineWidth(self.lineWidth)
797 if self.strokeColor:
798 r,g,b = checkColor(self.strokeColor)
799 canv.setStrokeColorRGB(r,g,b)
800 canv.line(self.x1, self.y1, self.x2, self.y2)
801 canv.restoreState()
802
803
804class PPEllipse:

Callers 4

drawMethod · 0.45
saveAsPresentationMethod · 0.45
drawOnMethod · 0.45
drawOnMethod · 0.45

Calls 6

checkColorFunction · 0.85
setStrokeColorRGBMethod · 0.80
saveStateMethod · 0.45
setLineWidthMethod · 0.45
lineMethod · 0.45
restoreStateMethod · 0.45

Tested by

no test coverage detected