Violet is an open source graphics editor that some of you may be familiar with. A client wishes me to add another graph type to the editor to which I have done.
Now what I need to do is to be able to group objects together. I have created a larger object and I need to be able to drag smaller objects (nodes) into the larger one to which they will then become part of the larger one.
Ive had a look at the composite
pattern but am having trouble finding a way to implement this.
Anyone know the framework on how to add objects to a larger object by dragging them to within the boundaries of the larger one.
I know what im asking is sort of vague but anyone know have code of previous examples where this has been done.
Any help in this matter would be much appreciated.