Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ScaledGraphics
ScaledGraphics [message #239683] Thu, 08 November 2007 07:55 Go to next message
Eclipse UserFriend
Originally posted by: martin.lindblad.gmail.com

Hi guys!

Does anyone know if this problem has been solved yet?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=132361

It's about scaledGraphics throws an exception when setting background
patterns.

If this isn't solved yet, is there a workaround for it?

Cheers,

Martin
Re: ScaledGraphics [message #241723 is a reply to message #239683] Fri, 07 March 2008 00:50 Go to previous message
Cameron Weick is currently offline Cameron WeickFriend
Messages: 4
Registered: July 2009
Junior Member
This should stop the exception from occurring, but it means that your
gradient/pattern wont be shown when you zoom in or out.

if (!(graphics instanceof ScaledGraphics))
graphics.setBackgroundPattern(gradPattern);


Cameron Weick



Martin wrote:
> Hi guys!
>
> Does anyone know if this problem has been solved yet?
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=132361
>
> It's about scaledGraphics throws an exception when setting background
> patterns.
>
> If this isn't solved yet, is there a workaround for it?
>
> Cheers,
>
> Martin
Previous Topic:Figure fills compartment (GMF)
Next Topic:Font Size
Goto Forum:
  


Current Time: Thu Apr 25 05:12:24 GMT 2024

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

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

Back to the top