Drawing custom decorations in Compartment-Nodes [message #59544] |
Thu, 05 October 2006 09:27  |
Eclipse User |
|
|
|
Originally posted by: tobk.gmx.de
Hello,
I'm not sure if this is more a GEF or a GMF issue, so I'll write it to both
newsgroups.
Here's my problem: I have a GMF node with a label and a compartment to
insert
other stuff into. Now I want to extend this node with some decorators
indicating the state of the node. These decorators have to be placed at the
center of the node's bottom line. I've already tried with Borderlayout
(after this I could not insert anything in the compartment), XYlayout, or
changing the useLocalCoordinates field. But whatever I try I only get a
large RectangleFigure filling the lower 1/3 to 2/3 of my figure, shadowing
most of the compartment, with the actual decorators being only visible when
the figure is _really_ big.
What I'd like to have is a rectangle figure of a constant height on the
bottom line of the figure which can hold my decorations. Can you help me?
tobias
|
|
|
Re: Drawing custom decorations in Compartment-Nodes [message #60055 is a reply to message #59544] |
Fri, 06 October 2006 07:48  |
Eclipse User |
|
|
|
Tobias,
Did you look at the Decorator Service? I think this would do exactly
what you want. Look up the Decorator Example for assistance.
- Cherie
tobias wrote:
> Hello,
>
> I'm not sure if this is more a GEF or a GMF issue, so I'll write it to both
> newsgroups.
>
> Here's my problem: I have a GMF node with a label and a compartment to
> insert
> other stuff into. Now I want to extend this node with some decorators
> indicating the state of the node. These decorators have to be placed at the
> center of the node's bottom line. I've already tried with Borderlayout
> (after this I could not insert anything in the compartment), XYlayout, or
> changing the useLocalCoordinates field. But whatever I try I only get a
> large RectangleFigure filling the lower 1/3 to 2/3 of my figure, shadowing
> most of the compartment, with the actual decorators being only visible when
> the figure is _really_ big.
>
> What I'd like to have is a rectangle figure of a constant height on the
> bottom line of the figure which can hold my decorations. Can you help me?
>
> tobias
|
|
|
Powered by
FUDForum. Page generated in 0.02396 seconds