@@ -0,0 +1,1748 @@
+package imagej.core.plugins.debug;%0A%0Aimport java.util.Arrays;%0A%0Aimport net.imglib2.meta.Axes;%0Aimport net.imglib2.meta.AxisType;%0Aimport imagej.ImageJ;%0Aimport imagej.data.ChannelCollection;%0Aimport imagej.data.Dataset;%0Aimport imagej.data.DatasetService;%0Aimport imagej.data.DrawingTool;%0Aimport imagej.data.DrawingTool.TextJustification;%0Aimport imagej.ext.module.ItemIO;%0Aimport imagej.ext.plugin.ImageJPlugin;%0Aimport imagej.ext.plugin.Parameter;%0Aimport imagej.ext.plugin.Plugin;%0A%0A%0A@Plugin(menuPath = %22Plugins%3ESandbox%3EMultidimensional Test Image%22)%0Apublic class MultidimImage implements ImageJPlugin %7B%0A%0A%09@Parameter%0A%09ImageJ context;%0A%09%0A%09@Parameter%0A%09DatasetService service;%0A%09%0A%0A%09@Parameter(type=ItemIO.OUTPUT)%0A%09Dataset ds;%0A%09%0A%09@Override%0A%09public void run() %7B%0A%09%09long%5B%5D dims = new long%5B%5D%7B80,30,4,5,6,7%7D;%0A%09%09String name = %22Multidimensional Example%22;%0A%09%09AxisType%5B%5D axes = new AxisType%5B%5D%7BAxes.X, Axes.Y, Axes.CHANNEL, Axes.FREQUENCY, Axes.Z, Axes.TIME%7D;%0A%09%09int bitsPerPixel = 8;%0A%09%09boolean signed = false;%0A%09%09boolean floating = false;%0A%09%09ds = service.create(dims, name, axes, bitsPerPixel, signed, floating);%0A%09%09long%5B%5D pos = new long%5Bdims.length%5D;%0A%09%09DrawingTool tool = new DrawingTool(ds);%0A%09%09ChannelCollection channels = new ChannelCollection(Arrays.asList(new Double%5B%5D%7B255.0,255.0,255.0,255.0%7D));%0A%09%09tool.setChannels(channels);%0A%09%09for (int c = 0; c %3C dims%5B2%5D; c++) %7B%0A%09%09%09for (int f = 0; f %3C dims%5B3%5D; f++) %7B%0A%09%09%09%09for (int z = 0; z %3C dims%5B4%5D; z++) %7B%0A%09%09%09%09%09for (int t = 0; t %3C dims%5B5%5D; t++) %7B%0A%09%09%09%09%09%09pos%5B2%5D = c;%0A%09%09%09%09%09%09pos%5B3%5D = f;%0A%09%09%09%09%09%09pos%5B4%5D = z;%0A%09%09%09%09%09%09pos%5B5%5D = t;%0A%09%09%09%09%09%09tool.setPosition(pos);%0A%09%09%09%09%09%09tool.setPreferredChannel(c);%0A%09%09%09%09%09%09String label = %22c %22 + c + %22 f %22 + f + %22 z %22 + z + %22 t %22 + t;%0A%09%09%09%09%09%09tool.drawText(0, 0, label, TextJustification.LEFT);%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Make a multidim test image plugin