Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » customizing shape look
customizing shape look [message #1028855] Thu, 28 March 2013 16:58 Go to next message
Eclipse UserFriend
Hi,

I spend the whole day for customizing the look of my nodes. Some things worked, where other things didn't. The following image should give you an overview what I want to achieve:

index.php/fa/14185/0/

I tried already a lot of different things, but it doesn't seems to affect the look (except stuff like another border style..). This is an excerpt og my gmf graph, which Eugenia generates for me:

index.php/fa/14186/0/

The upper image (Or) is the compartment for the below image (Feature, fooooo)

index.php/fa/14187/0/

I achived the horizontal alignment with this piece of code:

// for horizontal alignment
ConstrainedToolbarLayout ctl = (ConstrainedToolbarLayout) result.getContentPane().getLayoutManager();
ctl .setHorizontal(true) ;
ctl.setSpacing(5);


Any Idea how to apply my desired changes for the look?

[Updated on: Thu, 28 March 2013 17:02] by Moderator

Re: customizing shape look [message #1029993 is a reply to message #1028855] Sat, 30 March 2013 09:58 Go to previous message
Eclipse UserFriend
Ok, I solved the problem with height by adding a prefered size attribute. The problem with this is that you have to define a x and y value. When the length of my label is now longer then the defined x value, the label will be cut.

Before I've defined a prefered size, the node (which is containin the label) was growing automatically to the right size. Is it possbile to get this behaviour back?
Previous Topic:Saving figures's constraints from layouting in notation model
Next Topic: Sub Tool Group in Tool Group on Palette
Goto Forum:
  


Current Time: Sat Jul 05 11:10:25 EDT 2025

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

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

Back to the top