• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Violet Graphics Editor

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Violet appears to be a UML diagram editor, not a full graphics editor.
Surely the source code distributed with it will be your best inspiration.
How does Violet manage the objects you create with it?
Bill
 
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic