Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Using user defined shapes in Graphiti(how to use user defined shapes in Graphiti)
Using user defined shapes in Graphiti [message #716654] Wed, 17 August 2011 22:19 Go to next message
vrm  is currently offline vrm
Messages: 31
Registered: June 2011
Member
Is it possible to use user defined shapes within Graphiti Framework ? if so how ?
I understand complex shapes within Graphiti can be created using the graphics algorithm for polygon.However I'd like to how I can reuse a shape,as in a class extending the draw2d.Figure class.in Graphiti.

Any pointers would be of much help.
Re: Using user defined shapes in Graphiti [message #716737 is a reply to message #716654] Thu, 18 August 2011 05:10 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
Registered: July 2009
Location: Walldorf, Germany
Senior Member
This can be done using the IGraphicsAlgorithmRendererFactory provided by
Graphiti. An example of this is contained in the Sketch test tool, classes
SketchGraphicsAlgorithmRendererFactory and CanFigure.

HTH,
Michael


"vrm" schrieb im Newsbeitrag news:j2hs86$tdb$1@news.eclipse.org...

Is it possible to use user defined shapes within Graphiti Framework ? if so
how ?
I understand complex shapes within Graphiti can be created using the
graphics algorithm for polygon.However I'd like to how I can reuse a
shape,as in a class extending the draw2d.Figure class.in Graphiti.

Any pointers would be of much help.
Previous Topic:Decorator on Connection moves weirdly after zooming diagram
Next Topic:TransactionalEditing Domain problem
Goto Forum:
  


Current Time: Sat Jul 26 11:30:04 EDT 2014

Powered by FUDForum. Page generated in 0.01687 seconds