[ImageJ-devel] Overriding min, max and choices at runtime
Curtis Rueden
ctrueden at wisc.edu
Mon Jun 20 14:43:52 CDT 2011
Hi Grant, Barry et. al,
At the meeting today we discussed how there is currently no way to override
an annotated parameter's min, max or choices settings. It would be nice to
be able to set them based on the current state upon plugin execution.
One way is to have option callback methods for min, max and choices. So
rather than a constant value, the min, max and choices are computed by a
method dynamically. For min and max, there could be a notation like putting
"#" in front of the string to indicate it's a callback, since min and max of
Parameter are already strings. For choices, it's a String, so you'd have to
write it as: 'choices = {"#nameOfCallback"}'.
Do you think that's too awkward? Anyone have any better ideas?
-Curtis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20110620/1f3e13b6/attachment.html>
More information about the ImageJ-devel
mailing list