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 11:22 |
Syed Imran Messages: 12 Registered: July 2009 Location: Cork, Ireland |
Junior Member |
|
|
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 11:29 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
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: Sat May 04 12:27:48 GMT 2024
Powered by FUDForum. Page generated in 0.03039 seconds
|