Creating a very special Custom Figure [message #187934] |
Tue, 20 May 2008 08:55 |
Eclipse User |
|
|
|
Originally posted by: sebastian.xxxxxxx.xx.x
Hello everyone,
I have know been trying to build a custom Figure for an Application for
weeks, but I absolutely fail at that. Maybe I am too stupid or I
misunderstood what GMF does.
I am trying to do the following:
The Figure should be composed of one bounding rectangle, which contains
two horizontaly aligned other Figures: a scalable Polygon and another
Rectangle (which later shall contain a compartment, but that is another
story).
Important is: Both Child Figures should always scale up to the exact
border of the parent Rectangle and always maintain the same relation to
each other (say 30% and 70%) when the parent is resized.
I am absolutely desperate now. At first I thought this shouldn't be too
difficult, but...
The problem ist, that none of the Child Figures gets painted when I draw
the parent rectangle. This only happens if I assign them a Size Point, but
then they never get resized along with the parent Figure.
Can anyone help me? Anyone had a similar problem? I searched this
newsgroup but found nothing, so I now post this. Can somebody at least
tell me which method to override to be able to control the initial
painting or general resizing events?
Is GMF even the right thing to use for such Figures or is it more feasible
to use only GEF and EMF and code everything else manually?
Help is much appreciated :)
|
|
|
Powered by
FUDForum. Page generated in 0.02535 seconds