Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Drawing shapes using SWT/Draw2D
Drawing shapes using SWT/Draw2D [message #1415623] Wed, 03 September 2014 08:01 Go to next message
John Cole is currently offline John ColeFriend
Messages: 66
Registered: June 2013
Member
Hello,

is there a possibility to draw shapes using SWT/Draw2D instead of using graphiti-own methods in a graphiti diagram?

John
Re: Drawing shapes using SWT/Draw2D [message #1416193 is a reply to message #1415623] Thu, 04 September 2014 14:33 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1923
Registered: July 2009
Location: Walldorf, Germany
Senior Member
There are so called PlatformGraphicsAlgorithms in Graphiti to allow the
direct usage of GEF figures in Graphiti Diagrams.

There's an example in our Sketch test tool (tests folder in our Git
repository -
http://git.eclipse.org/c/graphiti/org.eclipse.graphiti.git/tree/tests/org.eclipse.graphiti.testtool.sketch).

Have a look at the classes CanFigure and
SkecthGraphicsAlgorithmRendererFactory.

Michael
Previous Topic:Adding icons to the palette
Next Topic:NPE when closing my Graphiti editor...
Goto Forum:
  


Current Time: Sun Jan 17 09:11:08 GMT 2021

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

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

Back to the top