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 #377 (closed enhancement: fixed)

Opened 2011-03-17T12:38:19-05:00

Last modified 2011-05-20T13:15:26-05:00

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:
Blocking:

Description

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 2011-05-20T13:15:26-05:00 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.