Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » zoom and color of SVG Images in GEF
zoom and color of SVG Images in GEF [message #788255] Wed, 01 February 2012 10:10
Matthias F is currently offline Matthias F
Messages: 15
Registered: June 2011
Junior Member
Hi, I'm currently struggling with replacing some of my figures with SVG Images.

I can show them using the SVGFigure of GMF.
The user should be able to change the color of the images, however I coulnd't figure out any way on how to set the color of the SVGFigure.
So I tried using the ScalableImageFigure. I can set the color there (by simply setting the foregroundcolor) but using the ScalableImageFigure is kind of a mess because I have to manually implement some GMF things (e.g. MapMode), otherwise the image won't show.

Is there any other easier way to show and color a svg image? For example: if setting the foregoundcolor of the SVGFigure would do it, it would be perfect.


Another thing I can't get to work is a rerendering of the SVG image the the gef editor is zoomed. The images are just scaled. Is it possible to make the figures listen to the zoom level and repaint them?

Thanks for any advise.
Previous Topic:No labels after using IFigureProvider
Next Topic:Help in ZEST
Goto Forum:
  


Current Time: Sat Aug 30 08:25:56 EDT 2014

Powered by FUDForum. Page generated in 0.01519 seconds