Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » 2 compartments separated by a dotted line
2 compartments separated by a dotted line [message #115051] Wed, 28 March 2007 09:47 Go to next message
Eclipse UserFriend
Hi!

I want to create a node containing name property and 2 compartments layed
out horizontally, separated by a dotted line.

In pseudo-graphics it will looks as follows:

+-----------------------------------------+
|name |
+-----------------------------------------+
|compartment 1 title . compartment 2 title|
| . |
| . |
| . |
| . |
+-----------------------------------------+

Inside each of the compartments I plan to have a column of square nodes,
later I will need to connect some of the nodes with edges.

Currently I'm stumbled over implementing the dotted line and having the
compartments layed out horizontally. Is it possible?

Thanks, Alexey
Re: 2 compartments separated by a dotted line [message #115093 is a reply to message #115051] Wed, 28 March 2007 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

You can definitely do that. The horizontal layout is given by using a
ConstrainedToolbarLayout and making it horizontal.

The line can be drawn by appending another view to the one that contains
the compartments. In your view factory, append the first compartment view,
then the view corresponding to the vertical dotted line and then the
second compartment.

You then need an edit part that creates a corresponding figure, dotted
line.

vlad


On Wed, 28 Mar 2007 17:47:28 +0400, Alexey Semenov wrote:

> Hi!
>
> I want to create a node containing name property and 2 compartments layed
> out horizontally, separated by a dotted line.
>
> In pseudo-graphics it will looks as follows:
>
> +-----------------------------------------+
> |name |
> +-----------------------------------------+
> |compartment 1 title . compartment 2 title|
> | . |
> | . |
> | . |
> | . |
> +-----------------------------------------+
>
> Inside each of the compartments I plan to have a column of square nodes,
> later I will need to connect some of the nodes with edges.
>
> Currently I'm stumbled over implementing the dotted line and having the
> compartments layed out horizontally. Is it possible?
>
> Thanks, Alexey
Re: 2 compartments separated by a dotted line [message #115158 is a reply to message #115051] Wed, 28 March 2007 12:11 Go to previous message
Eclipse UserFriend
Hi Alexey,

It should be possible to define this structure in gmfgraph and assign
compartments to use corresponding figures. With few (if any)
modifications of gmfmap model, you will get gmfgen to specify
ParentAssignedViewmaps for the compartments, the same way as labels
normally do.

Best regards,
Boris Blajer

Alexey Semenov wrote:
> Hi!
>
> I want to create a node containing name property and 2 compartments
> layed out horizontally, separated by a dotted line.
>
> In pseudo-graphics it will looks as follows:
>
> +-----------------------------------------+
> |name |
> +-----------------------------------------+
> |compartment 1 title . compartment 2 title|
> | . |
> | . |
> | . |
> | . |
> +-----------------------------------------+
>
> Inside each of the compartments I plan to have a column of square nodes,
> later I will need to connect some of the nodes with edges.
>
> Currently I'm stumbled over implementing the dotted line and having the
> compartments layed out horizontally. Is it possible?
>
> Thanks, Alexey
Previous Topic:Default look and feel of the diagram...
Next Topic:can ProjectExplorer be exported out of eclipse?
Goto Forum:
  


Current Time: Wed May 07 15:48:25 EDT 2025

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

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

Back to the top