Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Zooming problem: class org.eclipse.draw2d.ScaledGraphics has not implemented this new graphics funct
Zooming problem: class org.eclipse.draw2d.ScaledGraphics has not implemented this new graphics funct [message #244117] Sun, 06 July 2008 10:47 Go to next message
Eclipse UserFriend
Originally posted by: clandestinesnehal.gmail.com

Hi,
I am trying to use the zooming capabilities of GEF. I have followed the
Logic example.
I have placed the zoom-in and zoom-out actions in the context menu, but
i am getting the following exception on clicking the 'zoom' actions:

Exception: Failed to execute runnable (java.lang.RuntimeException: class
org.eclipse.draw2d.ScaledGraphics has not implemented this new graphics
function)

Can someone please shade light on the problem?

-Snehal
Re: Zooming problem: class org.eclipse.draw2d.ScaledGraphics has not implemented this new graphics f [message #244140 is a reply to message #244117] Mon, 07 July 2008 18:56 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Snehal,

There is a shape on your diagram that does not support scaling. Do you have
a gradient or background pattern somewhere? The stack trace will give you a
hint.

Cheers...
Anthony

"Snehal Fulzele" <clandestinesnehal@gmail.com> wrote in message
news:g4ptcj$hjv$1@build.eclipse.org...
> Hi,
> I am trying to use the zooming capabilities of GEF. I have followed the
> Logic example.
> I have placed the zoom-in and zoom-out actions in the context menu, but i
> am getting the following exception on clicking the 'zoom' actions:
>
> Exception: Failed to execute runnable (java.lang.RuntimeException: class
> org.eclipse.draw2d.ScaledGraphics has not implemented this new graphics
> function)
>
> Can someone please shade light on the problem?
>
> -Snehal
Re: Zooming problem: class org.eclipse.draw2d.ScaledGraphics has not implemented this new graphics f [message #244196 is a reply to message #244140] Wed, 09 July 2008 06:18 Go to previous message
Eclipse UserFriend
Originally posted by: clandestinesnehal.gmail.com

Thanks Anthony,
So, i understand that RoleFigure does not support scaling. How do i make
it support scaling?

Here is the exception trace:

Caused by: java.lang.RuntimeException: The class: class
org.eclipse.draw2d.ScaledGraphics has not implemented this new graphics
function
at org.eclipse.draw2d.Graphics.subclassFunctionMission(Graphics .java:897)
at org.eclipse.draw2d.Graphics.drawPath(Graphics.java:202)
at
org.acmestudio.ui.editor.diagram.figure.RoundedJumpingRoleCo nnection.drawWithCornerRounding(RoundedJumpingRoleConnection .java:299)
at
org.acmestudio.ui.editor.diagram.figure.RoundedJumpingRoleCo nnection.outlineShape(RoundedJumpingRoleConnection.java:243)
at
org.acmestudio.ui.editor.diagram.figure.RoleFigure.outlineSh ape(RoleFigure.java:259)
at org.eclipse.draw2d.Shape.paintFigure(Shape.java:113)
at
org.acmestudio.ui.editor.diagram.figure.RoleFigure.paintFigu re(RoleFigure.java:458)
at org.eclipse.draw2d.Figure.paint(Figure.java:1049)
at
org.acmestudio.ui.editor.diagram.figure.SystemFigure.paintCh ildren(SystemFigure.java:375)
at
org.acmestudio.ui.editor.diagram.figure.SystemFigure.paintCl ientArea(SystemFigure.java:246)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at
org.acmestudio.ui.editor.diagram.figure.SystemFigure.paint(S ystemFigure.java:237)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at
org.eclipse.draw2d.ScalableFreeformLayeredPane.paintClientAr ea(ScalableFreeformLayeredPane.java:69)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1114)
at org.eclipse.draw2d.Viewport.paintClientArea(Viewport.java:15 6)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at
org.eclipse.draw2d.DeferredUpdateManager.paint(DeferredUpdat eManager.java:153)
at org.eclipse.draw2d.LightweightSystem.paint(LightweightSystem .java:199)
at
org.eclipse.draw2d.LightweightSystem$2.handleEvent(Lightweig htSystem.java:107)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:11 73)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3725 )
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:291)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351 )
at org.eclipse.swt.internal.win32.OS.RedrawWindow(Native Method)
at org.eclipse.swt.widgets.Control.update(Control.java:3537)
at org.eclipse.swt.widgets.Control.update(Control.java:3527)
at
org.eclipse.draw2d.NativeGraphicsSource.getGraphics(NativeGr aphicsSource.java:43)
at
org.eclipse.draw2d.DeferredUpdateManager.getGraphics(Deferre dUpdateManager.java:136)
at
org.eclipse.draw2d.DeferredUpdateManager.repairDamage(Deferr edUpdateManager.java:286)
at
org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager.java:179)
at
org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run(D eferredUpdateManager.java:46)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
... 23 more


Anthony Hunter wrote:
> Hi Snehal,
>
> There is a shape on your diagram that does not support scaling. Do you have
> a gradient or background pattern somewhere? The stack trace will give you a
> hint.
>
> Cheers...
> Anthony
>
> "Snehal Fulzele" <clandestinesnehal@gmail.com> wrote in message
> news:g4ptcj$hjv$1@build.eclipse.org...
>> Hi,
>> I am trying to use the zooming capabilities of GEF. I have followed the
>> Logic example.
>> I have placed the zoom-in and zoom-out actions in the context menu, but i
>> am getting the following exception on clicking the 'zoom' actions:
>>
>> Exception: Failed to execute runnable (java.lang.RuntimeException: class
>> org.eclipse.draw2d.ScaledGraphics has not implemented this new graphics
>> function)
>>
>> Can someone please shade light on the problem?
>>
>> -Snehal
>
>
Previous Topic:GEF conditional multi selection?
Next Topic:Source Code Debugging of GEF code
Goto Forum:
  


Current Time: Fri Mar 29 10:29:14 GMT 2024

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

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

Back to the top