Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » How to get the custom GraphicsAlgorithm(GraphicsAlgorithm)
How to get the custom GraphicsAlgorithm [message #1776392] Thu, 16 November 2017 07:10
xi yahui is currently offline xi yahuiFriend
Messages: 32
Registered: October 2017
Member
I create a custom figure:
public class StartFigure extends RectangleFigure implements IGraphicsAlgorithmRenderer{
}
In the addfeature, the code:
GraphicsAlgorithm containerAlgorithm = null;
containerAlgorithm = gaService.createPlatformGraphicsAlgorithm(containerShape,
TtcnGraphicsAlgorithmRendererFactory.StartFigure );
And then, I need to get the instance of StartFigure in some method.
How can I get the instance of StartFigure by PictogramElement?
Previous Topic:Graphiti Diagram
Next Topic:Ifile to diagramURI
Goto Forum:
  


Current Time: Tue Oct 08 06:14:45 GMT 2024

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

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

Back to the top