Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Polygon figure
Polygon figure [message #77893] Wed, 15 November 2006 11:09 Go to next message
Eclipse UserFriend
Originally posted by: km-consult.mail.dk

Hi,

I have tried to create a polygon figure but it is not visible
on the canvas. If I use a rectangle it works fine. I think it is
related to the definition of the polygon, does anyone have
an example of a polygon definition ?

Thanks,
Karsten
Re: Polygon figure [message #78222 is a reply to message #77893] Thu, 16 November 2006 10:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de

I think you need to define some kind of decoration in the graph model
with colors that differ from the background of the editor.

Greetings,
Christian

Karsten schrieb:
> Hi,
>
> I have tried to create a polygon figure but it is not visible
> on the canvas. If I use a rectangle it works fine. I think it is
> related to the definition of the polygon, does anyone have
> an example of a polygon definition ?
>
> Thanks,
> Karsten
>
>
Re: Polygon figure [message #78328 is a reply to message #78222] Fri, 17 November 2006 03:32 Go to previous message
Eclipse UserFriend
Originally posted by: km-consult.mail.dk

Hi,

Thanks for your answer.
This is correct, furthermore a polygon must be a children of a rectangle,
like this:

<figures
xsi:type="gmfgraph:Rectangle"
referencingElements="CellTile"
name="RectangleName"
outline="false"
fill="false">
<children
xsi:type="gmfgraph:Polygon"
name="PolygonName">
<foregroundColor xsi:type="gmfgraph:ConstantColor" value="black"/>
<backgroundColor xsi:type="gmfgraph:ConstantColor" value="red"/>
<template x="10" y="20"/>
.
.
.
</children>
</figures>


-Karsten


"Christian D
Previous Topic:EModelElement and EObject
Next Topic:how to include a figure inside existing figure?
Goto Forum:
  


Current Time: Sat Jul 19 16:09:49 EDT 2025

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

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

Back to the top