Skip to main content


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 AlvarezFriend
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 PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior 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


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
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 AlvarezFriend
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: Sat Apr 20 02:36:50 GMT 2024

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

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

Back to the top