Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » customizing shape look
customizing shape look [message #1028855] Thu, 28 March 2013 20:58 Go to next message
Phil H is currently offline Phil H
Messages: 267
Registered: November 2012
Senior Member
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 21:02]

Report message to a moderator

Re: customizing shape look [message #1029993 is a reply to message #1028855] Sat, 30 March 2013 13:58 Go to previous message
Phil H is currently offline Phil H
Messages: 267
Registered: November 2012
Senior Member
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: Mon Sep 22 02:29:54 GMT 2014

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

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