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

Method drawOn

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

Source from the content-addressed store, hash-verified

484 self.graphics = []
485
486 def drawOn(self, canv):
487 for graphic in self.graphics:
488 graphic.drawOn(canv)
489 continue
490 name = str(hash(graphic))
491 #internalname = canv._doc.hasForm(name)
492 if definedForms.has_key(name):
493 internalname = 1
494 else:
495 internalname = None
496 definedForms[name] = 1
497 if not internalname:
498 canv.beginForm(name)
499 canv.saveState()
500 graphic.drawOn(canv)
501 canv.restoreState()
502 canv.endForm()
503 canv.doForm(name)
504 else:
505 canv.doForm(name)
506
507
508class PPNotes:

Callers

nothing calls this directly

Calls 7

beginFormMethod · 0.80
endFormMethod · 0.80
doFormMethod · 0.80
drawOnMethod · 0.45
has_keyMethod · 0.45
saveStateMethod · 0.45
restoreStateMethod · 0.45

Tested by

no test coverage detected