ij.plugin
Class TextReader

java.lang.Object
  extended by ij.ImagePlus
      extended by ij.plugin.TextReader
All Implemented Interfaces:
Measurements, PlugIn, java.awt.image.ImageObserver

public class TextReader
extends ImagePlus
implements PlugIn

This plug-in opens a tab-delimeted text file as an image. If 'arg' is empty, it displays a file open dialog and opens and displays the file. If 'arg' is a path, it opens the specified file and the calling routine can display it using "((ImagePlus)IJ.runPlugIn("ij.plugin.TextReader", path)).show()".


Field Summary
 
Fields inherited from class ij.ImagePlus
changes, COLOR_256, COLOR_RGB, GRAY16, GRAY32, GRAY8, height, img, ip, locked, pixelDepth, pixelHeight, pixelWidth, sCalibrated, unit, units, width, win
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Fields inherited from interface ij.measure.Measurements
AREA, CENTER_OF_MASS, CENTROID, LABELS, LIMIT, MAX_STANDARDS, MEAN, MIN_MAX, MODE, PERIMETER, RECT, STD_DEV
 
Constructor Summary
TextReader()
           
 
Method Summary
 void countLines(java.io.Reader r)
           
 ImageProcessor openFile(java.lang.String path)
           
 void read(java.io.Reader r, int size, float[] pixels)
           
 void run(java.lang.String arg)
          This method is called when the plug-in is loaded.
 
Methods inherited from class ij.ImagePlus
copyScale, createEmptyStack, createImagePlus, createLut, createNewRoi, draw, draw, flush, getCalibration, getCurrentSlice, getFileInfo, getHeight, getID, getImage, getMask, getOriginalFileInfo, getPixel, getProcessor, getProperties, getProperty, getRoi, getStack, getStackSize, getStartTime, getStatistics, getStatistics, getStatistics, getTitle, getType, getWidth, getWindow, hide, imageUpdate, isInvertedLut, isProcessor, killProcessor, killRoi, killStack, lock, lockSilently, mouseMoved, repaintWindow, setCalibration, setColor, setFileInfo, setGlobalCalibration, setImage, setProcessor, setProperty, setRoi, setRoi, setRoi, setSlice, setStack, setTitle, setType, setWindow, show, show, startTiming, trimProcessor, unlock, updateAndDraw, updateAndRepaintWindow, updateImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextReader

public TextReader()
Method Detail

run

public void run(java.lang.String arg)
Description copied from interface: PlugIn
This method is called when the plug-in is loaded. 'arg', which may be blank, is the argument specified for this plug-in in IJ_Props.txt.

Specified by:
run in interface PlugIn

openFile

public ImageProcessor openFile(java.lang.String path)
                        throws java.io.IOException
Throws:
java.io.IOException

countLines

public void countLines(java.io.Reader r)
                throws java.io.IOException
Throws:
java.io.IOException

read

public void read(java.io.Reader r,
                 int size,
                 float[] pixels)
          throws java.io.IOException
Throws:
java.io.IOException