If rootStyle.showFlowConnections is True, draw the flow connections on the page, using their stroke / width settings of the style.
(self, e, origin)
| 331 | |
| 332 | |
| 333 | def drawFlowConnections(self, e, origin): |
| 334 | """If rootStyle.showFlowConnections is True, draw the flow connections |
| 335 | on the page, using their stroke / width settings of the style.""" |
| 336 | px, py, _ = pointOffset(self.point, origin) # Ignore z-axis for now. |
| 337 | if (self.showFlowConnections and e.isPage) or e.showFlowConnections: |
| 338 | for seq in e.getFlows().values(): |
| 339 | # For all the flow sequences found in the page, draw flow |
| 340 | # arrows at offset (ox, oy). |
| 341 | tbStart = e.getElement(seq[0].eId) |
| 342 | startX = tbStart.x |
| 343 | startY = tbStart.y |
| 344 | for tbTarget in seq[1:]: |
| 345 | tbTarget = e.getElement(tbTarget.eId) |
| 346 | targetX = tbTarget.x |
| 347 | targetY = tbTarget.y |
| 348 | self.drawArrow(e, px+startX, py+startY+tbStart.h, |
| 349 | px+startX+tbStart.w, py+startY, -1) |
| 350 | self.drawArrow(e, px+startX+tbStart.w, |
| 351 | py+startY, px+targetX, py+targetY+tbTarget.h, 1) |
| 352 | tbStart = tbTarget |
| 353 | startX = targetX |
| 354 | startY = targetY |
| 355 | self.drawArrow(e, px+startX, py+startY+tbStart.h, |
| 356 | px+startX+tbStart.w, py+startY, -1) |
| 357 | |
| 358 | if e != e.parent.getLastPage(): |
| 359 | # Finalize with a line to the start, assuming it is on the |
| 360 | # next page. |
| 361 | tbTarget = e.getElement(seq[0].eId) |
| 362 | self.drawArrow(e, px+startX+tbStart.w, py+startY, |
| 363 | px+tbTarget.x, py+tbTarget.y+tbTarget.h-e.h, 1) |
| 364 | |
| 365 | def drawArrow(self, e, xs, ys, xt, yt, onText=1, startMarker=False, |
| 366 | endMarker=False, fms=None, fmf=None, fill=noColor, stroke=noColor, |
no test coverage detected