|
Re: Resize problem [message #207330 is a reply to message #207201] |
Mon, 29 September 2008 13:53 |
Tatiana Fesenko Messages: 530 Registered: July 2009 |
Senior Member |
|
|
Hello Michael,
Thank you for noticing the problem in UML2Tools. I submitted bugzilla #248937
'Allow to resize actor'
Let me explain the root and solution of the problem in UML2 Tools, because
you can have the similar one.
Minimum size the figure can get is defined in org.eclipse.draw2d.Figure#getMinimumSize(int,
int) method. Let's look at it:
if (minSize != null)
return minSize;
if (getLayoutManager() != null) {
Dimension d = getLayoutManager().getMinimumSize(this, wHint, hHint);
if (d != null)
return d;
}
return getPreferredSize(wHint, hHint);
In case of Actor minimum size was null, and Actor had no LayoutManager, that's
why getMinimumSize() returned preferredSize.
There are two possible solutions
1) set minimum size
2) set layout manager
The properties can be set in the definition of the figure in *.gmfgraph file.
Best wishes,
Tanya.
> I added a rectangle figure with a contained custom figure to the
> graphical definition. In the editor the rectangle can only be resized
> bigger, not smaller. The actor in the UML2 project's use case diagram
> shows the same behavior.
> What could be the problem?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03059 seconds