GoogleCodeArchive / piccolo2d

Automatically exported from code.google.com/p/piccolo2d
0 stars 0 forks source link

New user object selection model and event handler based on GlazedLists' EventList #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In addition to the node selection model described in Issue:84, it would
also be useful to provide a selection event handler that delegates to a
_user object_ selection model and fires selection events.  The
implementation might be modeled as a Collection or Set of selected user objects

http://code.google.com/p/simbrain/source/browse/trunk/src/org/simbrain/network/g
ui/NetworkSelectionModel.java

implemented using the Swing ListSelectionModel, or implemented with
EventList provided by the GlazedLists project

http://publicobject.com/glazedlists/

The selection event handler would also require a two-way mapping between
user objects (model) and PNodes (view), something like this pair of interfaces

interface ModelToView<M>
{
  PNode modelToView(M model);
}
interface ViewToModel<M>
{
  M viewToModel(PNode view);
}

The codebase may be hosted here in the Piccolo2D.Java project or at
java.net as an GlazedLists Extension project.

Original issue reported on code.google.com by heue...@gmail.com on 16 Jun 2009 at 1:58

GoogleCodeExporter commented 9 years ago
This is getting higher on my priority list, though I'll probably implement it 
in my
own repository before proposing to move it here.

http://www.dishevelled.org

Original comment by heue...@gmail.com on 9 Apr 2010 at 9:32

GoogleCodeExporter commented 9 years ago
Marking as WontFix, in progress at

http://dishevelled.svn.sourceforge.net/viewvc/dishevelled/trunk/piccolo-eventlis
t-view

Original comment by heue...@gmail.com on 22 Dec 2010 at 2:03