Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Automatically resize figure based on label size
Automatically resize figure based on label size [message #513560] Wed, 10 February 2010 15:06
Milan Milanovich is currently offline Milan MilanovichFriend
Messages: 201
Registered: July 2009
Senior Member
Hi,

I have RectangleFigure that have one polygon and one WrappingLabel (with wrap = true). I defined constraints on the RectangleFigure like this:

 ToolbarLayout layout = new ToolbarLayout();
layout.setMinorAlignment(ToolbarLayout.ALIGN_CENTER);
layout.setStretchMinorAxis(true);
setLayoutManager(new ToolbarLayout());


and also, define figure minimum and maximum size. The intention of this is that the label is located below the rectangle figure. However, when I type the label, my figure border is streched horizontaly, and not vertically. So, I need to strech the figure verticaly when label is typed and not to strecth horizontal size of the figure?

--
thanks, Milan

[Updated on: Wed, 10 February 2010 15:06]

Report message to a moderator

Previous Topic:How to add new DragDropEditPolicy
Next Topic:MindMap tutorial with GMF 2.2
Goto Forum:
  


Current Time: Wed Apr 14 10:00:32 GMT 2021

Powered by FUDForum. Page generated in 0.01254 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top