• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
It means our mission is in jeapordy! Quick, read this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic