Ticket #377 (closed enhancement: fixed)

Opened 9 years ago

Last modified 9 years ago

Support for color parameters

Reported by: curtis Owned by: curtis
Priority: minor Milestone:
Component: Plugin Framework Version:
Severity: non-issue Keywords:
Cc: bene.schmid@… Blocked By:


The plugin framework needs to support @Parameters of type java.awt.Color (or non-AWT equivalent). In particular, we need to support harvesting the color in the user dialog, using a color chooser widget. Hopefully we can find a good one rather than writing our own.

Change History

comment:1 Changed 9 years ago by curtis

  • Status changed from new to closed
  • Resolution set to fixed

Added in 4c2a819d5a11904148756c09a61c8379ef453b8d, and fully working as of c68f2e91cc6f42b439cb362eafa257bb27199846. See source:trunk/core/core-plugins/src/main/java/imagej/core/plugins/roi/OverlayProperties.java for an example.

To convert between java.awt.Color and imagej.util.ColorRGB, you can use the imagej.awt.AWTColors utility class in ij-awt-common.

Note: See TracTickets for help on using tickets.