imagej / imagej/imagej-common

Decouple data events from display classes

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
data-model
Dominant language
Java
Stars
12
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Some of the display classes (AbstractImageDisplay, SwingImageDisplay) listen to data events and update their views. This is sort of backwards and poorly coupled.

Make views listen for data events and change their state appropriately. They should generate view events. Displays should listen for view events and update their state accordingly.

Migrated-From: http://trac.imagej.net/ticket/884

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading AbstractImageDisplay and SwingImageDisplay to trace how they currently listen for data events and update views. Then locate the related view and display event flow. Done means views handle data events and emit view events, while displays respond to those view events without directly coupling to data events.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.