Skip to content

TimePointListener - not the same API for BVV and BDV #27

@NicoKiaru

Description

@NicoKiaru

Hi @tpietzsch,

I'm trying to simplify a bit bdv-playground by using the AbstractViewerPanel interface instead of my own ViewerAdapter. That dates from the time when BdvHandle and BvvHandle did not implement this interface.

It mostly works, except for timepoint listeners. Indeed, the access to timepointListeners is not part of AbstractViewerPanel interface. And there is currently a difference between the way to add a timepoint listener between bvv and bdv:

			BdvHandle bdvh = null;
			bdvh.getViewerPanel().timePointListeners().add(listener);
			
			BvvHandle bvvh = null;
			bvvh.getViewerPanel().addTimePointListener(listener);
			
			AbstractViewerPanel avp = null;
			avp.timepointListeners does not exist

Do you think you could homogeneize this ? I can try to do a PR if you want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions