Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How can I change the vertical alignment of a label?(How can I change the vertical alignment of a label?)
How can I change the vertical alignment of a label? [message #1224531] Fri, 27 December 2013 01:57 Go to next message
Camilo Alvarez is currently offline Camilo Alvarez
Messages: 5
Registered: July 2013
Junior Member
How can I change the vertical alignment of a label?
is this possible with sirius?

[Updated on: Fri, 27 December 2013 02:06]

Report message to a moderator

Re: How can I center vertically a label inside a node? [message #1224743 is a reply to message #1224531] Fri, 27 December 2013 17:13 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime Porhel
Messages: 91
Registered: July 2009
Member
Hi Camilo,

Le 27/12/2013 02:57, Camilo Alvarez a écrit :
> How can I center vertically a label inside a node?
> is this possible with sirius?


If you create a NodeMapping, you will have two label positions available
for several styles, if you selected the 'node' position, label will be
vertically centered [1]

If you want to use a ContainerMapping (to create lists or containers),
the label will be placed on the top of the figure [2]. It is not
possible to vertically center the label of a Container by changing some
properties in the VSM editor, but it should be possible to change the
label position for containers by extending the core edit parts, policies
and figures.

Regards,

Maxime


[1]
http://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#node_styles
[2]
http://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#Container
Styles
Re: How can I center vertically a label inside a node? [message #1227180 is a reply to message #1224743] Fri, 03 January 2014 19:39 Go to previous message
Camilo Alvarez is currently offline Camilo Alvarez
Messages: 5
Registered: July 2013
Junior Member
Thank you Maxime,

I finally created a org.eclipse.sirius.diagram.styleConfigurationProvider to customize the styles.

Regards,
Camilo.
Previous Topic:Diagram extensions behave differently
Next Topic:How to use a Papyrus UML profile as a DSL in Sirius?
Goto Forum:
  


Current Time: Tue Sep 30 22:12:49 GMT 2014

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

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