Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » scalable polygon transparent
scalable polygon transparent [message #199340] Tue, 29 July 2008 06:13 Go to next message
Eclipse UserFriend
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 09:35 Go to previous messageGo to next message
Eclipse UserFriend
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 04:36 Go to previous messageGo to next message
Eclipse UserFriend
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 05:00 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 04:42:57 EDT 2025

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

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

Back to the top