Hello everybody.
I created a node from following emfatic code.
@gmf.node(label="identifier,content", border.width="2",border.color="0,0,0",size="130,50",figure="rectangle", label.pattern="{0} : {1}")
class Goal extends StandardNode
{
attr String identifier;
attr String content;
}
Im using the Message Format here.
What i want to achieve is a second label in the node, appear at a fixed place inside the node.
The result should look like an automatic generated node. The identifier should appear as always.
But the second label "content" should be placed at a specific point.
So i think i have to change the .gmfgraph file.
I already looked at the tutorial, but i can't imagine how to do this.
Any more tutorials ? ideas ?
Particularly i need to know how doing this in EOL.
Is there a complete Syntax of EOL anywhere ?
When i try doing it like this :
var GoalFigure = GmfGraph!Rectangle.all.
selectOne(r|r.name = 'GoalFigure');
GoalFigure.label = new GmfGraph!Label;
The object is inserted as a sibling of the main canvas.
Is there any reference about the properties etc. ?
Greetings
[Updated on: Mon, 05 December 2011 13:08]
Report message to a moderator