Math Functions

Yeah, I thought you’d have problems like that, which is why I suggested putting the paint code on a timer. We did go ahead and implement a pantable canvas component for 3.2.0 which has much, much better support for all this, so you won’t have to worry about such details.

That’s great. I really don’t like using timers, and would prefer to do the screen updates programatically, which works most of the time. I’ll check out 3.2.0 when it’s out.

Okay, ask and you shall receive! FactoryPMI 3.2 contains the Paintable Canvas component. Users familiar with scripting should quickly grasp the depth of the power that this component delivers. Time to brush up on your Java2D. (See the example script in the Paintable Canvas for some inspiration)

I’m pretty late to this discussion, and the new paintable canvas in 3.2 may solve all your problems, but… we’ve done a lot with flash (not within pmi, though) to create custom drawings on the fly. We use it mostly to dynamically generate control charts.