Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move ImgPanel into imglib2-tests project

  • Loading branch information...
commit 7338fa13c1624d5aca709b6e87119cb231a584d2 1 parent ba930a8
@ctrueden ctrueden authored
View
9 ...ib2/ui/src/main/java/net/imglib2/ui/ImgPanel.java → imglib2/tests/src/test/java/tests/ImgPanel.java
@@ -34,7 +34,7 @@
* #L%
*/
-package net.imglib2.ui;
+package tests;
import java.awt.Adjustable;
import java.awt.Dimension;
@@ -55,11 +55,11 @@
import loci.common.StatusEvent;
import loci.common.StatusListener;
-
import net.imglib2.display.ARGBScreenImage;
import net.imglib2.display.RealARGBConverter;
import net.imglib2.display.XYProjector;
import net.imglib2.exception.IncompatibleTypeException;
+import net.imglib2.img.Img;
import net.imglib2.img.ImgPlus;
import net.imglib2.io.ImgIOException;
import net.imglib2.io.ImgIOUtils;
@@ -69,8 +69,9 @@
import net.imglib2.type.numeric.RealType;
/**
- * TODO
+ * A simple UI that demonstrates display of {@link Img}s.
*
+ * @author Curtis Rueden
*/
public class ImgPanel extends JPanel {
@@ -119,7 +120,6 @@ public void adjustmentValueChanged(final AdjustmentEvent e) {
final int value = bar.getValue();
imgData.projector.setPosition(value, dim);
imgData.projector.map();
- System.out.println("dim #" + dim + ": value->" + value);// TEMP
imgData.owner.repaint();
}
});
@@ -164,7 +164,6 @@ public Dimension getPreferredSize() {
final String[] args)
{
final String[] urls = {
- "http://loci.wisc.edu/files/software/data/mitosis-test.zip",
"http://loci.wisc.edu/files/software/ome-tiff/z-series.zip"
};
final JFrame frame = new JFrame("ImgPanel Test Frame");
Please sign in to comment.
Something went wrong with that request. Please try again.