Skip to main content



      Home
Home » Modeling » Graphiti » Drawing shapes using SWT/Draw2D
Drawing shapes using SWT/Draw2D [message #1415623] Wed, 03 September 2014 04:01 Go to next message
Eclipse UserFriend
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 10:33 Go to previous message
Eclipse UserFriend
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: Thu May 15 11:24:28 EDT 2025

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

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

Back to the top