I'm playing around with GEF in conjunction with Batik. I wrote an adapter
(similiar to the one which exists in GMF) which adapts
an AWT Graphics to a draw2d graphics. The problem now is as follows: If I am
at zoom level 100% (e.g. in the logic example)
everything works fine - I can resize my figure which in reality is an svg.
But if I know switch the zoom to 75% (or 150% for instance)
I don't get an SWTGraphics but an ScaledGraphics to draw on in my figure.
Should be ok but if batik now calls fillPath(), I get an
exception because fillPath() is not implemented in ScaledGraphics. Is there
any reason why?
The exception simply indicates that this support is not implemented in the
ScaledGraphics in GEF. I would raise an enhancement request in Bugzilla.
Cheers...
Anthony
"Andreas Scharf" <andreas-scharf@gmx.de> wrote in message
news:g1u9jn$c7o$1@build.eclipse.org...
> Hi!
>
> I'm playing around with GEF in conjunction with Batik. I wrote an adapter
> (similiar to the one which exists in GMF) which adapts
> an AWT Graphics to a draw2d graphics. The problem now is as follows: If I
> am at zoom level 100% (e.g. in the logic example)
> everything works fine - I can resize my figure which in reality is an svg.
> But if I know switch the zoom to 75% (or 150% for instance)
> I don't get an SWTGraphics but an ScaledGraphics to draw on in my figure.
> Should be ok but if batik now calls fillPath(), I get an
> exception because fillPath() is not implemented in ScaledGraphics. Is
> there any reason why?
>
> Cheers,
> Andreas
>