Skip to main content



      Home
Home » Eclipse Projects » GEF » Can Editor use a picture(ex, jpeg) as its background
Can Editor use a picture(ex, jpeg) as its background [message #166480] Tue, 01 February 2005 06:13 Go to next message
Eclipse UserFriend
Hello everyone,

What i want to realize is:

my editor use a special picture(for example, a jpeg picture) as its
background. Currently its background is "ColorConstants.white"

I really don't know how to, is it relevant to gef rootEditPart & Layers?


Thanks in advance,
zbw
Re: Can Editor use a picture(ex, jpeg) as its background [message #166730 is a reply to message #166480] Wed, 02 February 2005 18:30 Go to previous messageGo to next message
Eclipse UserFriend
Yes, this is possible. How exactly depends on what you want to do. Do you
want your picture to stay stationary in the background? Or you want it to
stretch or tile to fill the entire layer (and so the background would scroll
when the viewer scrolls)? For the former, you can paint the image in the
root editpart's viewport's paintFigure() method. For the latter, you can
paint it on one of the layers.

"zbw" <zbw001091@yahoo.com.cn> wrote in message
news:ctno90$4be$1@www.eclipse.org...
> Hello everyone,
>
> What i want to realize is:
>
> my editor use a special picture(for example, a jpeg picture) as its
> background. Currently its background is "ColorConstants.white"
>
> I really don't know how to, is it relevant to gef rootEditPart & Layers?
>
>
> Thanks in advance,
> zbw
>
Re: Can Editor use a picture(ex, jpeg) as its background [message #166799 is a reply to message #166730] Thu, 03 February 2005 04:20 Go to previous message
Eclipse UserFriend
Thank you, Pratik Shah
I'll try on your advice

zbw
Previous Topic:SnapToGuides.KEY_VERTICAL_GUIDE never set in >>request.getExtendedData()<<
Next Topic:Figure not displaying in viewer ?
Goto Forum:
  


Current Time: Sat Jun 21 12:53:06 EDT 2025

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

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

Back to the top