scijava / ui-behaviour

Configurable input handling, via mapped behaviours
Other
4 stars 2 forks source link

Any way to combine this project with SciJava input classes? #2

Open ctrueden opened 8 years ago

ctrueden commented 8 years ago

At a glance, there seems to be some duplication (as well as things on top).

See:

tpietzsch commented 8 years ago

@ctrueden Would be nice. Let's talk about it at the hackathon?

tpietzsch commented 8 years ago

@ctrueden I had a very quick look. The scijava input stuff duplicates the AWT constructs (to add a layer of abstraction), right? Could you point me to where the translation from AWT events happens?

Actually I can see no duplication between scijava and configurable-keys. The configurable-keys project is about Behaviours which do not care by which keys / mouse buttons / modifiers they are triggered. The idea is to make that configurable. There is the MouseAndKeyHandler which is all kinds of AWT listeners and maps AWT events to behaviours. We could certainly have a similar handler that listens to scijava events and maps those to behaviours. I was also thinking of making such a listener for jogl's NEWT, such that it could be potentially used in ClearVolume.

ctrueden commented 8 years ago

Could you point me to where the translation from AWT events happens?

It is the scijava-ui-awt component.

We could certainly have a similar handler that listens to scijava events and maps those to behaviours.

Right, I think the SciJava API could benefit from behaviors. In any case, this idea seems general enough to go into the scijava org instead of just bigdataviewer, don't you think?

Let's talk about it at the hackathon?

Yeah, great!

tpietzsch commented 8 years ago

@ctrueden Yes, we were also thinking it should be in either scijava or imglib2-ui. At the moment, this is pre-alpha stuff, for development of TrackMate3. Putting it here was the no-bureaucracy option. We can move it later

ctrueden commented 8 years ago

We can move it into SciJava any time if that's what you and @tinevez want. Just say the word.