Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Draw a shape with .gmfgraph
Draw a shape with .gmfgraph [message #1083306] Fri, 09 August 2013 15:44 Go to next message
serhat gezgin is currently offline serhat gezgin
Messages: 237
Registered: January 2013
Location: Izmir
Senior Member
Hi all,

I want to draw a shape which contains another shapes so i configure .gmfgraph but i can't create shape. (And i attached picture og .gmfgraph)

<descriptors name="ReceiveTaskFigure">
        <actualFigure xsi:type="gmfgraph:Rectangle" name="ReceiveTaskFig" outline="false" fill="false">
          <layout xsi:type="gmfgraph:XYLayout"/>
          <children xsi:type="gmfgraph:Rectangle" name="Resourcess" outline="false" fill="false">
            <layoutData xsi:type="gmfgraph:XYLayoutData">
              <topLeft/>
            </layoutData>
            <foregroundColor xsi:type="gmfgraph:RGBColor"/>
            <size x="60" y="40"/>
            <children xsi:type="gmfgraph:Rectangle" name="leftRect">
              <layoutData xsi:type="gmfgraph:XYLayoutData">
                <topLeft x="10"/>
              </layoutData>
              <foregroundColor xsi:type="gmfgraph:RGBColor"/>
              <size x="10" y="40"/>
            </children>
            <children xsi:type="gmfgraph:Rectangle" name="rigthRect">
              <layoutData xsi:type="gmfgraph:XYLayoutData">
                <topLeft x="50"/>
              </layoutData>
              <foregroundColor xsi:type="gmfgraph:RGBColor"/>
              <size x="10" y="40"/>
            </children>
            <children xsi:type="gmfgraph:Rectangle" name="mainRect">
              <layoutData xsi:type="gmfgraph:XYLayoutData">
                <topLeft/>
              </layoutData>
              <foregroundColor xsi:type="gmfgraph:RGBColor"/>
              <size x="60" y="40"/>
            </children>
          </children>
        </actualFigure>
        <accessors figure="/0/@figures.0/@descriptors.21/@actualFigure/@children.0"/>
      </descriptors>


can anyone help me to solve this ?

Regards
  • Attachment: GMFGRAPH.jpg
    (Size: 65.99KB, Downloaded 47 times)
Re: Draw a shape with .gmfgraph [message #1095026 is a reply to message #1083306] Mon, 26 August 2013 10:21 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

you should explain a bit better what you want to achieve. Your question is hard to understand.

Ralph
Previous Topic:Adding a button to an ellement
Next Topic:How can i change view of element when element attribute changed?
Goto Forum:
  


Current Time: Fri Aug 29 12:25:53 EDT 2014

Powered by FUDForum. Page generated in 0.01588 seconds