Resize graphics [message #516208] |
Tue, 23 February 2010 03:43  |
Eclipse User |
|
|
|
Hi,
I've tried several things now to change the size and position of an automatically inserted task.
I finally ended up in using this call:
generator.addActivity(pool, "MyTask", ActivityType.TASK, x, y, width, height)
But this does not work. The size is always set to the default size - same with the location.
I also tried overriding several methods such as createNodePlate and createNodeShape with no usable result.
Note, that I do NOT want to override the paint()-method. I want the graphic to be changed not only to be displayed the way I want.
Could someone give me a hint, what I'd need to do?
Thanks,
--Verena
|
|
|
Re: Resize graphics [message #516796 is a reply to message #516208] |
Thu, 25 February 2010 03:47  |
Eclipse User |
|
|
|
I finally found a solution in using the BPMNVisualProcessGenerator instead of BPMNVisual2ProcessGenerator. This resizes and postions my graphics correctly.
Unfortunately now there are two graphics added. One with my size and position and another one with the default values. *sigh
What is it?
|
|
|
Powered by
FUDForum. Page generated in 0.02947 seconds