Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Label in Polygon
Label in Polygon [message #479771] Wed, 12 August 2009 13:25 Go to next message
Gilod is currently offline GilodFriend
Messages: 25
Registered: July 2009
Junior Member
Hello
I created a Triangle with the Letter T inside as one of my figure
descriptor,
I need to put a label inside the triangle, but I failed to do so.
I put the Triangle inside of a rectangle as I understand that this is the
only way to make a triangle inside gmfgraph.
Why can I add a child access to the polygon?
below is my figure descriptor:
<descriptors
name="RealTimeEntityFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="RealTimeEntityFigure"
outline="false"
fill="false"
lineKind="LINE_DASH">
<children
xsi:type="gmfgraph:Polygon"
name="RealTimeTraingle">
<foregroundColor
xsi:type="gmfgraph:ConstantColor"
value="black"/>
<backgroundColor
xsi:type="gmfgraph:ConstantColor"/>
<children
xsi:type="gmfgraph:Polyline"
name="UpperT"
lineWidth="4">
<template
x="60"
y="60"/>
<template
x="40"
y="60"/>
</children>
<children
xsi:type="gmfgraph:Polyline"
name="LowerT"
lineWidth="4">
<template
x="50"
y="60"/>
<template
x="50"
y="80"/>
</children>
<template
x="90"
y="90"/>
<template
y="90"/>
<template
x="50"
y="30"/>
</children>
</actualFigure>
</descriptors>
Can you help me put the label inside the figure??
Thanks
Gilod

Thanks !
Re: Label in Polygon [message #480548 is a reply to message #479771] Mon, 17 August 2009 15:22 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Gilod,

> Can you help me put the label inside the figure??
You can use StackLayout or assign some layout manager to the Polyline and
put label directly into this polyline.

-----------------
Alex Shatalin
Previous Topic:How to display new feature label in existing diagrams?
Next Topic:Populate a FeatureEditorDialog (Multi-value) programmatically
Goto Forum:
  


Current Time: Thu Apr 25 05:02:44 GMT 2024

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

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

Back to the top