What design patterns are used in chart tools?

Diagram.net is a good charting tool.

I need to understand which design patterns are used by this tool so that I can understand how this works.

  • What design patterns are used in this tool?
  • What design patterns are commonly used for chart tools?

I would also like to know how I can use this to develop a very simple charting tool (only rectangular nodes and direct links).

NOTE / Caution: I am doing this for FUN, so please do not direct me to existing tools (I could vote .. just kiddin;).

+4
source share
1 answer

From the book "Gang of Four" (GOF) "Design Templates":

  • Memento: for cancel operations
  • Prototype: to simplify the creation of diagram objects (when promoting a composition over inheritance)

There was also a PLOP template called "Product Trader", which can be useful for deserializing stored files (such as chart files) so that they can be loaded back into memory.

Of course, there are other templates that apply to any user interface, such as the Responsibility Chain (GOF), but they are usually provided to you through the user interface you work with.

+3
source

Source: https://habr.com/ru/post/1307422/


All Articles