Layout Feature with RoundedRectangle as a child [message #717163] |
Fri, 19 August 2011 13:33 |
Andreas Graf Messages: 211 Registered: July 2009 |
Senior Member |
|
|
Hi all,
as desrcibed in the tutorial, I created a layout feature that does the actual calculation of the elements after a resize.
My shape has two children: A text and a RoundedRectangle. The size of the text is changed when running through this code (snippet from the tutorial):
} else {
System.out.println(containerWidth); System.out.println(graphicsAlgorithm.toString());
gaService.setWidth(graphicsAlgorithm,
containerWidth);
gaService.setHeight(graphicsAlgorithm, containerGa.getHeight());
graphicsAlgorithm.setWidth(containerWidth);
System.out.println(graphicsAlgorithm.toString());
anythingChanged = true;
}
However, the RoundedRectangle on the diagram does not change a bit, but the dimensions do change according to the System.out.println info. Any ideas on what I am doing wrong?
Thanks,
Andreas
[Updated on: Fri, 19 August 2011 13:34] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03650 seconds