图表工具中使用哪些设计模式?
Diagram.net 是很好的图表工具。
我需要了解这个工具使用了哪些设计模式,以便我能够理解它是如何工作的。
- 该工具使用了哪些设计模式?
- 图表工具通常使用哪些设计模式?
我还想知道如何使用它来开发非常简单的图表工具(只有矩形节点和直链接)。
注意/警告:我这样做是为了好玩,所以请不要引导我使用现有的工具(我可能会否决投票..只是开玩笑;)。
Diagram.net is good diagramming tool.
I need to understand what design patterns are used by this tool so that I can understand how it works.
- What design patterns are used in this tool?
- What design patterns are generally used for diagramming tools?
I would also like to know how can I use this to develop very simple diagramming tool (Only rectangular nodes and straight links).
NOTE/Caution: I am doing this for FUN so please don't direct me to existing tools(I might down vote.. just kiddin ;).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自“四人帮”(GOF)“设计模式”一书:
还有一种称为“产品交易者”的 PLOP 模式这有助于反序列化保存的文件(例如图表文件) - 以便它们可以加载回内存。
当然,还有其他适用于任何类型 UI 的模式,例如“责任链”(GOF),但这些模式通常是由您正在开发的 UI 框架“提供”给您的。
From the "Gang of Four" (GOF) "Design Patterns" book:
There was also a PLOP pattern called "Product Trader" which can be helpful for deserializing saved files (such as diagram files) - so that they can be loaded back into memory.
Of course there are other patterns that apply to any kind of UI, such as "Chain of Responsibility" (GOF), but those are usually "provided" to you by the UI framework that you are developing with.