Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » scalable polygon transparent
scalable polygon transparent [message #199340] Tue, 29 July 2008 10:13 Go to next message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello,
I wonder if there is any special setting need be done when creating
scalable polygon.The polygon that I want it to show seems transparent.


Thanks a lot!

Ye
Re: scalable polygon transparent [message #199387 is a reply to message #199340] Tue, 29 July 2008 13:35 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Ye,

Check generated code and pay attantion to "fill" attribute value.

-----------------
Alex Shatalin
Re: scalable polygon transparent [message #199502 is a reply to message #199387] Wed, 30 July 2008 08:36 Go to previous messageGo to next message
yeliu is currently offline yeliuFriend
Messages: 145
Registered: July 2009
Senior Member
Hello Alex,
I have checked the code xxxEditPart of the node,the difference between
scalable polygon and ordinary polygon is the scalable polygon 's
createContents() contains a nested Body0Class.And I don't find anything
wrong in this class.Besides, the code only show the 'fill' attribute of
the Rectangle container.But the code of ordinary polygon also only show
the 'fill' of Rectangle container.Both 'fill' are set to false.
So I'm got really confused!where else to check?


Many thanks!


Ye
Re: scalable polygon transparent [message #199510 is a reply to message #199502] Wed, 30 July 2008 09:00 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Ye,

So, AFAIKSee from the CVS there was a problem with filling polygins: It was
not possible to generate filled polygon code even if "fill" attribute is
set to true in .gmfgraph model. This problem was recently fixed and included
into GMF 2.1 release. Once more: by default : "fill" attribute is set to
"true" for all the figures except Polygon figure, so this attribute have
to be set explicitly to "true" for Polygon if necessary, but GMF-generated
code does not set it to true.
If you have this problem in diagram code generated by GMF 2.1 please modify
generated code to include "setFill(true)" into the Polygon constructor and
file a request for GMF.

-----------------
Alex Shatalin
Previous Topic:Setting labels transparent on a gradient (RSM like)
Next Topic:How to display aggregate relations via links (like in UML diagrams)
Goto Forum:
  


Current Time: Sat Jun 06 10:59:22 GMT 2020

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

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

Back to the top