Skip to content

Hierarchical models via multiple GGraph instances? #446

Answered by planger
LiamWalsh98 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I'm afraid there is no publicly accessible example. However, I would recommend to proceed as follows:

  • Define a trigger when you want to switch into the other diagram, e.g. a context menu entry on the parent element, or a double-click listener, or reacting to a zoom event.
  • Send a RequestModelAction from the client to the server on the aforementioned event. You can use the RequestModelAction.options to specify the context (e.g. the ID of the element for which you want to request the detail model).
  • On the server, you can then react to the RequestModelAction e.g. in your ModelSourceLoader and construct the detail model (GModel) and send it to the client via the ModelSubmissionHandler.

T…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LiamWalsh98
Comment options

Answer selected by tortmayr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants