Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BPMN Modeler » Resize graphics
Resize graphics [message #516208] Tue, 23 February 2010 03:43 Go to next message
Verena is currently offline Verena
Messages: 17
Registered: July 2009
Junior Member
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 Go to previous message
Verena is currently offline Verena
Messages: 17
Registered: July 2009
Junior Member
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?
Previous Topic:[Announce] Eclipse/OMG Symposium 2010
Next Topic:Update 1.2.0 available
Goto Forum:
  


Current Time: Fri Aug 01 20:34:43 EDT 2014

Powered by FUDForum. Page generated in 0.03519 seconds