Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Papyrus/Papyrus User Guide/Toolbars/Alignment"
(→General Case) |
(→General Case) |
||
Line 44: | Line 44: | ||
#:[[File:General_Align1_before.JPG]] | #:[[File:General_Align1_before.JPG]] | ||
#:[[File:General_Align1_after.JPG]] | #:[[File:General_Align1_after.JPG]] | ||
− | #:The refrence object is here the right one. | + | #:The refrence object is here the right one. <br/> |
− | + | ||
#Example B: Parent alignment | #Example B: Parent alignment | ||
− | In this second example, the object (the Class ) is aligned on his parent (the Package): | + | #:In this second example, the object (the Class ) is aligned on his parent (the Package): |
− | The unauthorized alignment appears disable (in grey) | + | #:The unauthorized alignment appears disable (in grey) |
#:[[File:General_Align2_before.JPG]] | #:[[File:General_Align2_before.JPG]] | ||
#:[[File:General_Align2_after.JPG]] | #:[[File:General_Align2_after.JPG]] |
Revision as of 11:34, 28 August 2014
Contents
Alignment Tool
Introduction
Alignment Tool is availbale in the Papyrus toolbar:
Alignment allows to align the different objects of the model based on a reference object.
The reference object is basically the last object selected (primary selection) and can be identified with the handles color:
To implement Alignment, some rules have been defined.
General Rules
The Alignment Tools allows 6 types of alignmeent:
- Horizontaly
- Left
- Center
- Right
- Verticaly
- Top
- Middle
- Bottom
These types can be disable if the alignment is not possible.
Here is the different rules on which the alignment is based:
- The alignment is available only if the selected object can be moved on the reference
- When an object and one or several children should be aligned on a third object, only the parent is aligned
- An object can only be aligned inside of its container's bounds.(In order to avoid scrollbar and invisible objects)
- An object cannot be aligned on one of its children.
Using of Alignment Tool
Here under, some examples of using of alignment tool.
General Case
Basically, alignment is used in order to make the model easier to be read and more aesthetical. To align objects:
- Example A: Standard alignment
- Example B: Parent alignment
Hierarchy
In this section, some examples of alignment in case of hierarchy between objects (parent / children).
- Example A: Only the parent is aligned
- Example B: Alignment inside the Container bounds is available