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
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?

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

Here is the working snippet for generalization-like template:

<gmfgraph:Canvas xmi:version="2.0" xmlns:xmi="" xmlns:xsi="" xmlns:gmfgraph="" name="ClassDiagram Canvas">
<figures name="ClassDiagram Figure Gallery">
<figures xsi:type="gmfgraph:PolygonDecoration" name="ClosedArrow">
<backgroundColor xsi:type="gmfgraph:ConstantColor"/>
<template x="-2" y="2"/>
<template x="-2" y="-2"/>
<descriptors name="SolidLineWDstClosedArrow">
<actualFigure xsi:type="gmfgraph:PolylineConnection" targetDecoration="//@figures.0/@figures[name='ClosedArrow'] "/>
<connections name="SolidConnectionWDstClosedArrow" figure="SolidLineWDstClosedArrow"/>

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


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

Current Time: Fri Feb 26 22:12:17 GMT 2021

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

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

Back to the top