Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » create semi-transparent figure
create semi-transparent figure [message #173205] Wed, 20 February 2008 12:54 Go to next message
Eclipse UserFriend
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 06:38 Go to previous message
Eclipse UserFriend
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: Sun May 11 13:08:35 EDT 2025

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

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

Back to the top