DSL图编辑器的自定义形状定义? [英] Custom shape definition for DSL diagram editor?
问题描述
我正在使用DSL工具包开发图表编辑器.我是DSL工具的新手...
I am developing a diagram editor using the DSL tools package. I'm completely new to the DSL tools...
组件模型"项目模板与我要实现的模板相似,不同之处在于端口可以由用户随意创建并可以移动. 相反,我希望将一组预定义的端口安排在固定位置.
The "Component Models" project template is similar to what I want to achieve, except that ports can be created at will by the user, and can be moved. Instead, I would like a predefined set of ports arranged at fixed positions.
以下是一些ASCII艺术,以显示我的追求:
Here's a little ASCII art to show what I'm after:
------------------
(块名)| |
|
输入|
|
--o输入1输出1 o-
-o输入2输出2 o-
-o输入3 |
|
------------------
我想要各种不同的块,每个块都有一组特定的输入和输出.但是在用户选择了所需的块类型之后,该块将显示,并带有一组相关的输入和输出.
I would want a variety of different blocks, each with a specific set of inputs and outputs. But after the user selects the type of block they want, the block displays with the associated set of inputs and output.
我的主要问题是-这可能吗?而要完成它又需要什么呢?
(我在确切的布局方面很灵活...)
(I'm flexible in terms of the exact layout...)
感谢对此的任何输入,
Nathan
推荐答案
Nathan,
Nathan,
Have a look at this post. I think it will answer your question.
爱德华
这篇关于DSL图编辑器的自定义形状定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!