Home » Modeling » Epsilon » [EuGENia] more than one affixed node on the single containing node
[EuGENia] more than one affixed node on the single containing node [message #635852] |
Thu, 28 October 2010 07:22  |
Eclipse User |
|
|
|
Hi All,
The article on "Affixed Nodes in GMF" where containment reference nodes are affixed to the edges of the containing node works just great. Thanks
The question is now, when there is more than one affixed node on the single containing node, the affixed nodes overlap. Is there any way how to specify specific point or edge for affixed node on containing node?
For example in the code below, how to give each specific "Port" an specific edge in the "Component"
@gmf.node(label="name")
class Component {
attr String name;
@gmf.affixed(foo="bar")
val PortOne[*] portone;
val PortTwo[*] porttwo;
val PortThree[*] portthree;
}
@gmf.node(figure="rectangle", size="20,20", label="name",
label.placement="external", label.icon="false")
class PortOne {
attr String name;
}
@gmf.node(figure="rectangle", size="20,20", label="name",
label.placement="external", label.icon="false")
class PortTwo {
attr String name;
}
@gmf.node(figure="rectangle", size="20,20", label="name",
label.placement="external", label.icon="false")
class PortThree {
attr String name;
}
kindly,
Syed Imran
|
|
|
Re: [EuGENia] more than one affixed node on the single containing node [message #635855 is a reply to message #635852] |
Thu, 28 October 2010 07:29   |
Eclipse User |
|
|
|
Hi Syed,
There's nothing in EuGENia that specifically targets this issue. I
realize that the GMF newsgroup is not particularly responsive lately but
I guess your best bet is to post a question about this there anyway.
Cheers,
Dimitris
Syed Imran wrote:
> Hi All,
>
> The article on "Affixed Nodes in GMF" where containment reference nodes
> are affixed to the edges of the containing node works just great. Thanks
>
> The question is now, when there is more than one affixed node on the
> single containing node, the affixed nodes overlap. Is there any way how
> to specify specific point or edge for affixed node on containing node?
> For example in the code below, how to give each specific "Port" an
> specific edge in the "Component"
>
>
> @gmf.node(label="name")
> class Component {
> attr String name;
>
> @gmf.affixed(foo="bar")
> val PortOne[*] portone;
> val PortTwo[*] porttwo;
> val PortThree[*] portthree;
> }
>
> @gmf.node(figure="rectangle", size="20,20", label="name",
> label.placement="external", label.icon="false")
> class PortOne {
> attr String name;
> }
>
> @gmf.node(figure="rectangle", size="20,20", label="name",
> label.placement="external", label.icon="false")
> class PortTwo {
> attr String name;
> }
> @gmf.node(figure="rectangle", size="20,20", label="name",
> label.placement="external", label.icon="false")
> class PortThree {
> attr String name;
> }
>
>
>
> kindly,
> Syed Imran
|
|
| |
Goto Forum:
Current Time: Wed Jul 23 00:07:23 EDT 2025
Powered by FUDForum. Page generated in 0.07244 seconds
|