Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSet Text to the right position
https://www.eclipse.org/forums/index.php/mv/msg/366866/893507/#msg_893507
Thanks a lot]]>Patrick Rütz2012-07-04T11:40:22-00:00Re: Set Text to the right position
https://www.eclipse.org/forums/index.php/mv/msg/366866/893707/#msg_893707
I would assume that the PictogramElement is a parent of your text. By making
it smaller, either the text is no longer within the parent or the size of
the parent is too small to show the text at all.
You need to take care that when making a PictogramElement smaller all its
children are placed at a location that is really inside the parent, because
the parent will clip at its borders.
Michael]]>Michael Wenz2012-07-05T10:23:58-00:00Re: Set Text to the right position
https://www.eclipse.org/forums/index.php/mv/msg/366866/893856/#msg_893856
thanks for that answer. The innerpictogrammelements should be at there origin postion, because the feature scould be a collapse feature. The Problem is, that the text is at its origin postion too. Now I want to know how could i change that postion the the visible area?
Thanks
Michael Wenz wrote on Thu, 05 July 2012 06:23
To help more concretely, I would need some more information...
I would assume that the PictogramElement is a parent of your text. By making
it smaller, either the text is no longer within the parent or the size of
the parent is too small to show the text at all.
You need to take care that when making a PictogramElement smaller all its
children are placed at a location that is really inside the parent, because
the parent will clip at its borders.
Michael
]]>Patrick Rütz2012-07-05T17:21:28-00:00Re: Set Text to the right position
https://www.eclipse.org/forums/index.php/mv/msg/366866/893943/#msg_893943
The visible area is always at 0,0 (starting in the left upper corner) of the
parent shape's Graphic Algorithm. Its size is as large as the GA is defined.
Michael]]>Michael Wenz2012-07-06T07:04:01-00:00Re: Set Text to the right position
https://www.eclipse.org/forums/index.php/mv/msg/366866/894000/#msg_894000
Thanks]]>Patrick Rütz2012-07-06T11:27:03-00:00Re: Set Text to the right position
https://www.eclipse.org/forums/index.php/mv/msg/366866/894406/#msg_894406
pictogram elements (PE) define the hierarchie of the shapes in the diagram,
they consists of nested ContainerShapes and Shapes; there is no size or
location information on these elements.
Then there are Graphics Alhorithms (GA) (like Rectangle, Text,...); they are
attached to a shape or container shape (in fact each of the pictogram
elements must have one Graphics Algorithm) and define the look (color etc)
and the size and location.
So by nesting PEs there associated GAs define what is visible from the
children. Each PE spans its own coordinate system, so GAs use a location
realative to the parent PEs GA. Also the parent PEs GA defines the size,
everything from the children that reaches beyond this size is clipped.