[reportlab-users] Widgets as Flowables...
Sun, 29 Sep 2002 09:16:27 +0100
> What is the easier task:
> 1) Define a bounding box method and use that as the implied dimension
> when needed. [snip]
> 2) Assert a size at the outset and then ensure or assume that things are
> inside it. Problems are obvious unless we are either preternaturally
> clever or accept that everything must be clipped.
> Robin Becker
If people want to click on bars in a bar chart or data point
(e.g. HTML image map, or GUI), then they need access to the
bounding box info AFTER the draw method; and they may need
extra info like tooltips and so on which had to "bubble up"
from the innermost objects. So I think it has to happen
at draw time or, optionall, after draw time.
OTOH, if we're doing 50 detailed plots inside a Platypus
paper for someone's thesis; and it has a table of contents
and may need 3 passes rendering, all Platypus needs to
know is the size of the enclosing Drawing. It COULD hold
off drawing the things until the last pass when everything
is laid out. That's one reason I like Drawings continuin
to exist in some fashion.