Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node and Group v.s. CompositeNode which is better? (Read 323 times)
GrandSon
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Nov 26th, 2023
Node and Group v.s. CompositeNode which is better?
Mar 17th, 2024 at 9:12am
Print Post  
Hi, I want consists a complex UI. These have some parts.
e.g.
typeA has icon and input area.
typeB has icon and other parts like A and (other instance of)B.

If build B-1 includes A-1 and B-2 includes A-2.
User get bellow:
B-1
  A-1
  B-2
    A-2

I thought I can implement both way:
  • ComopositeNode(include EditComponent) and ShapeNode. And gorup using AttachTo method.
  • Define TypeAComposite. It has TextCompnent and EditComponent on a GridPanel.


How can I consider what is better using Group or Composite? (Group not suitable for complex layouts?)
or What is best way of complex UI layout?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3204
Joined: Oct 19th, 2005
Re: Node and Group v.s. CompositeNode which is better?
Reply #1 - Mar 18th, 2024 at 6:27am
Print Post  
Hi,

CompositeNodes were added as more light-weight alternative to ControlNodes, but I guess they could replace groups in some situations too. E.g. ones where you'd add locked secondary nodes as decorations to a main node. CompositeNode would not work if you need individual objects from the group to be selectable and movable by users.

In any case, the less nodes you have in the diagram, the faster its user interaction and rendering are. So if your layouts can be implemented either way, try using CompositeNode for better performance.

If you need to display only icons and texts, you could also try TreeViewNode and TableNode classes.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
GrandSon
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: Nov 26th, 2023
Re: Node and Group v.s. CompositeNode which is better?
Reply #2 - Mar 18th, 2024 at 6:56am
Print Post  
Thank you for replying.

Quote:
the less nodes you have in the diagram, the faster its user interaction and rendering are.

This is an fascinating for me.
I'll try to implement using CompositeNode.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3204
Joined: Oct 19th, 2005
Re: Node and Group v.s. CompositeNode which is better?
Reply #3 - Mar 18th, 2024 at 8:50am
Print Post  
Quote:
This is an fascinating for me.


Smiley Well, you shouldn't be seeing much difference unless you create thousands of nodes. If that's the case, also try the settings from StressTest example.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint