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

Method drawOn

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

Source from the content-addressed store, hash-verified

530 self.section = None
531
532 def drawOn(self, canv):
533 if self.effectName:
534 canv.setPageTransition(
535 effectname=self.effectName,
536 direction = self.effectDirection,
537 dimension = self.effectDimension,
538 motion = self.effectMotion,
539 duration = self.effectDuration
540 )
541
542 if self.outlineEntry:
543 #gets an outline automatically
544 self.showOutline = 1
545 #put an outline entry in the left pane
546 tag = self.title
547 canv.bookmarkPage(tag)
548 canv.addOutlineEntry(tag, tag, self.outlineLevel)
549
550 if self.section:
551 self.section.drawOn(canv)
552
553 for graphic in self.graphics:
554 graphic.drawOn(canv)
555
556 for frame in self.frames:
557 frame.drawOn(canv)
558
559## # Need to draw the notes *somewhere*...
560## for note in self.notes:

Callers

nothing calls this directly

Calls 4

bookmarkPageMethod · 0.80
setPageTransitionMethod · 0.45
addOutlineEntryMethod · 0.45
drawOnMethod · 0.45

Tested by

no test coverage detected