Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Background image
Background image [message #200590] Tue, 25 October 2005 15:47 Go to next message
Eclipse UserFriend
Originally posted by: eyecanseeyou.free.fr

Hello,

What is the best way to show an image in the background of my GEF editor ?
Thank you.
Re: Background image [message #200670 is a reply to message #200590] Tue, 25 October 2005 19:58 Go to previous messageGo to next message
venkataramana m is currently offline venkataramana mFriend
Messages: 86
Registered: July 2009
Member
What do you think of the one below ? :-)

class DiagramFigure extends Figure/Layer/...
{
	protected void paintFigure(Graphics graphics)
	{
		graphics.drawImage(<some image>, new Point(0, 0));
	}
}


~Venkat
Re: Background image [message #200695 is a reply to message #200670] Wed, 26 October 2005 07:15 Go to previous message
Eclipse UserFriend
Originally posted by: eyecanseeyou.free.fr

Yes, but I would like to know if there is a method in the GEF objects to
put a background image (without adding figure)... Of course if there is no
method I will use a figure ;-)

Thanks.

venkataramana wrote:

> What do you think of the one below ? :-)

>
> class DiagramFigure extends Figure/Layer/...
> {
> 	protected void paintFigure(Graphics graphics)
> 	{
> 		graphics.drawImage(<some image>, new Point(0, 0));
> 	}
> }
> 


> ~Venkat
Previous Topic:Making a figure stretch to fill its parent
Next Topic:Another question on PolylineConnection
Goto Forum:
  


Current Time: Tue Apr 23 15:33:14 GMT 2024

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

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

Back to the top