Default drawing method just drawing the frame. Probably will be redefined by inheriting element classes.
(self, view, origin=ORIGIN, **kwargs)
| 70 | self.axes = axes |
| 71 | |
| 72 | def build(self, view, origin=ORIGIN, **kwargs): |
| 73 | """Default drawing method just drawing the frame. |
| 74 | Probably will be redefined by inheriting element classes.""" |
| 75 | c = self.context |
| 76 | p = pointOffset(self.origin, origin) |
| 77 | p = self._applyScale(view, p) |
| 78 | p = self._applyAlignment(p) # Ignore z-axis for now. |
| 79 | self.buildFrame(view, p) # Draw optional background fill, frame or borders. |
| 80 | |
| 81 | # Let the view draw frame info for debugging, in case view.showFrame == |
| 82 | # True |
| 83 | view.drawElementFrame(self, p) |
| 84 | |
| 85 | # Draw that actual content of the element by stacked specimen |
| 86 | # rectangles. |
| 87 | self.drawCube(view, p, **kwargs) |
| 88 | self._restoreScale(view) |
| 89 | view.drawElementInfo(self, origin) # Depends on flag 'view.showElementInfo' |
| 90 | |
| 91 | def drawCube(self, view, origin, **kwargs): |
| 92 | """Draw the content of the element, responding to size, styles, font and content. |
nothing calls this directly
no test coverage detected