[ImageJ-devel] Overriding min, max and choices at runtime

Barry DeZonia bdezonia at wisc.edu
Mon Jun 20 15:06:48 CDT 2011


I have created a ticket to track this issue:
http://dev.imagejdev.org/trac/imagej/ticket/623. Note that it does not yet
include anything from this discussion.

In regards to the proposal note that I see that the issue is more than just
allowing us to populate choices and min/max at runtime. In the ReorderAxes
plugin I'd like to have 3 parameters each of which has 3 choices for an XYZ
Dataset. And 5 parameters each with 5 choices for an XYCZT Dataset. So I
should be able to specify the number of parameters at runtime also. Or make
the plugin have the max possible but only enable and display/use a subset of
the parameters present.

On Mon, Jun 20, 2011 at 2:43 PM, Curtis Rueden <ctrueden at wisc.edu> wrote:

> 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
>
>
> _______________________________________________
> ImageJ-devel mailing list
> ImageJ-devel at imagejdev.org
> http://imagejdev.org/mailman/listinfo/imagej-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20110620/9ebb671b/attachment.html>


More information about the ImageJ-devel mailing list