Ticket #1495 (new enhancement)

Opened 7 years ago

Last modified 7 years ago

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) (diff)

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 7 years ago by curtis

  • Description modified (diff)
Note: See TracTickets for help on using tickets.