NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #1495 (new enhancement)

Opened 2012-09-21T13:40:58-05:00

Last modified 2012-09-21T13:41:19-05:00

Generalize JHotDrawAdapters to link any DataView to a Figure

Reported by: curtis Owned by: curtis
Priority: major Milestone: imagej2-b9-rois
Component: Data Model Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1399

Description (last modified by curtis)

Currently, it is only possible to create a JHotDrawAdapter that binds an OverlayView to a JHotDraw Figure. It might be better to also allow binding e.g. a DatasetView to an ImageFigure (i.e., rework DatasetFigureView as a JHotDrawAdapter). This requires further investigation and thought before committing further down this road.

This change would eliminate the case logic in JHotDrawImageCanvas#rebuild() where we explicitly test for a DatasetView and then construct a DatasetFigureView. Instead we would need only a DataFigureView and everything would be handled by the JHotDrawAdapter layer.

See also ticket #1496 regarding deconflation of JHotDrawAdapters from Tools.

Change History

comment:1 Changed 2012-09-21T13:41:19-05:00 by curtis

  • Description modified