Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Drawing custom decorations in Compartment-Nodes
Drawing custom decorations in Compartment-Nodes [message #59544] Thu, 05 October 2006 09:27 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Removing the popup menus
Next Topic:Implementing custom delete action
Goto Forum:
  


Current Time: Sun Jun 01 00:09:58 EDT 2025

Powered by FUDForum. Page generated in 0.02396 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top