Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » create semi-transparent figure
create semi-transparent figure [message #173205] Wed, 20 February 2008 17:54 Go to next message
Matias is currently offline MatiasFriend
Messages: 9
Registered: July 2009
Junior Member
Hi everybody,

I'm trying to insert into one compartment a semi-transparent figure....
something similar to the one that in drawn the moving nodes.

I looked in the createDragSourceFeedbackFigure(), and it creates a
GhostRectangle (with fillXOR, outlineXOR, and a speciall color for the
background). But copying this code creates a solid-filled rectangle, not a
transparent one as I'm looking for :-(
I looked also in the DragEditPartsTracker but nothing....

Any other ideas where to look for?

Thanks!
Re: create semi-transparent figure [message #173279 is a reply to message #173205] Thu, 21 February 2008 11:38 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Matias,

Try overriding fillShape(), outlineShape() methods of the figure and call
Graphics.setAlpha() before calling super implementation.
-----------------
Alex Shatalin
Previous Topic:GMF Contributers blogs
Next Topic:Connection Styles
Goto Forum:
  


Current Time: Fri Apr 26 09:19:01 GMT 2024

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

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

Back to the top