Set Text to the right position [message #893507] |
Wed, 04 July 2012 07:40  |
Eclipse User |
|
|
|
Hi I have a little problem. I have made a customfeature. I have a Pictogrammelement which i made smaller bei setting the height and widthvalue, but if i do this, the text isn´t shown anymore. So I want to set the text new. But i don´t know how i can do this, especially how I can get the text element.
Thanks a lot
|
|
|
|
|
|
|
Re: Set Text to the right position [message #894406 is a reply to message #894000] |
Mon, 09 July 2012 02:47  |
Eclipse User |
|
|
|
Hm, Graphiti uses two concepts for the graphical representations: The
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.
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.05438 seconds