Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » ErrorMessage when Export As SVG
ErrorMessage when Export As SVG [message #503159] Fri, 11 December 2009 03:56
Thomas is currently offline ThomasFriend
Messages: 79
Registered: October 2009
Member
hi,

i have got a problem (or bug). Always when i try to export as svg file i get the error message below. this happens only when i my "shapes,elements,..whatever" are filled gradient.

@Override
		protected void fillShape(Graphics graphics) {
Rectangle r = (Rectangle) getBounds().getCopy();
			Point topLeft = r.getTopLeft();
			Point bottomRight = r.getBottomRight();
			Pattern pattern = new Pattern(Display.getCurrent(), topLeft.x,
					topLeft.y, bottomRight.x, bottomRight.y, color1, color2);
			graphics.setBackgroundPattern(pattern);
			graphics.fillOval((org.eclipse.draw2d.geometry.Rectangle) r);
			graphics.setBackgroundPattern(null);
			pattern.dispose();
}


Is it possible to fillGradient() on an Element and export this element as svg image?

Thanks
Previous Topic:Commercial GMF users
Next Topic:How can I use a custom GridLayer in the Editor?
Goto Forum:
  


Current Time: Sat Apr 27 03:14:33 GMT 2024

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

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

Back to the top