Status: New
Owner: ----
Labels: Type-Enhancement OpSys-All Toolkit-Piccolo2D.Java Priority-Low  
Effort-Medium

New issue 85 by heuermh: New user object selection model and event handler  
based on GlazedLists' EventList
http://code.google.com/p/piccolo2d/issues/detail?id=85

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/gui/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.



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to