Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » the shape of the arrow([help])
icon9.gif  the shape of the arrow [message #657290] Wed, 02 March 2011 10:51 Go to next message
xebec Missing name is currently offline xebec Missing nameFriend
Messages: 5
Registered: March 2011
Junior Member
hi,
I created a Polyline Decoration for a line in the gmfGraph file,i want to have a triangle shape arrow for the line(just like the Generalization in the UML class diagram), i tried to creat some Template Points for this,but seems i failed,i can't get the correct triangle. how many Template Points should i creat?and what the right X and Y for these Template Points?

thanks,
xebec
Re: the shape of the arrow [message #657652 is a reply to message #657290] Thu, 03 March 2011 15:26 Go to previous message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello,

Here is the working snippet for generalization-like template:

<gmfgraph:Canvas xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gmfgraph="http://www.eclipse.org/gmf/2006/GraphicalDefinition" name="ClassDiagram Canvas">
<figures name="ClassDiagram Figure Gallery">
<figures xsi:type="gmfgraph:PolygonDecoration" name="ClosedArrow">
<backgroundColor xsi:type="gmfgraph:ConstantColor"/>
<template/>
<template x="-2" y="2"/>
<template x="-2" y="-2"/>
<template/>
</figures>
<descriptors name="SolidLineWDstClosedArrow">
<actualFigure xsi:type="gmfgraph:PolylineConnection" targetDecoration="//@figures.0/@figures[name='ClosedArrow'] "/>
</descriptors>
</figures>
<connections name="SolidConnectionWDstClosedArrow" figure="SolidLineWDstClosedArrow"/>
</gmfgraph:Canvas>

This is extract from the org.eclipse.gmf.graphdef plugin, /model/classDiagram.gmfgraph, which contains more samples.

Regards,
Michael

Previous Topic:Workaround for Bug Bug 338522
Next Topic:Difference between Children Feature and Containment Feature?
Goto Forum:
  


Current Time: Fri Apr 19 08:26:11 GMT 2024

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

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

Back to the top