You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IconService exists to make it possible to paint icons in a UI-agnostic way. Unfortunately, the current architecture has some problems:
There is no default or dummy IconService implementation. So if something depends on IconService, but does not include another dependency with an actual concrete implementation, then it will not be possible to create an ImageJ context with an IconService. We avoid this issue in other cases by having a dummy service (e.g., with RenderingService) that performs no-ops.
The architecture needs more consideration and testing with respect to UIs besides Swing, with multiple UIs, and when running without a UI. Right now, if you create a headless ImageJ context, the SwingIconService is still used for icon drawing, when it may not be the most appropriate solution. It may be simpler to integrate the icon drawing logic into the UIService and/or UserInterface interfaces more directly. Regardless, further thought is needed.
The IconService exists to make it possible to paint icons in a UI-agnostic way. Unfortunately, the current architecture has some problems:
Migrated-From: http://trac.imagej.net/ticket/1627
The text was updated successfully, but these errors were encountered: