object selection framework
Brought to you by:
dum-dee-dum,
novadev
Your software deals with the following features.
- multiple object selection techniques
- bounding box calculation
- grid snapping, magnetic areas
- triggering feedback to the user
Would you like to offer any component that can be reused as a class library on its own in other applications?
How much are the existing interfaces reusable already?
First off, sorry for the way overdue answer, hope you browsed the code to find some answers. Perhaps you stumbled upon this source file : http://dxf.svn.sourceforge.net/viewvc/dxf/dxf/myDXF/Graphics/myCanvas.java?view=markup ....
Basically all the features you mentioned are in the source above, which is one big chunk of uncommented code which is simply an extension of a java Canvas which implements a bunch of listeners. I believe it's just too specific to our app...
The only "truly" reusable part of the code is the DXF model which has already been reused by others.
Would you like to encapsulate the involved objects into reusable classes?
Well why not... I don't know of any such classes however, did you have anything particular in mind, or did you mean implementing one and using it with this app ?
I am looking for implementations of fundamental software components that graphical editors have got in common. It seems that frameworks for such a purpose are not well-known yet.