ij.plugin
Class TextReader

java.lang.Object
  extended by ij.plugin.TextReader
All Implemented Interfaces:
PlugIn

public class TextReader
extends java.lang.Object
implements PlugIn

This plugin opens a tab-delimeted text file as an image.


Field Summary
(package private)  int chars
           
(package private)  java.lang.String directory
           
(package private)  boolean hideErrorMessages
           
(package private)  int lines
           
(package private)  java.lang.String name
           
(package private)  java.lang.String path
           
(package private)  int width
           
(package private)  int words
           
 
Constructor Summary
TextReader()
           
 
Method Summary
(package private)  void countLines(java.io.Reader r)
           
 java.lang.String getName()
          Returns the file name.
 void hideErrorMessages()
           
 ImageProcessor open()
          Displays a file open dialog and opens the specified text file as a float image.
 ImageProcessor open(java.lang.String path)
          Opens the specified text file as a float image.
(package private)  void read(java.io.Reader r, int size, float[] pixels)
           
 void run(java.lang.String arg)
          This method is called when the plugin is loaded.
(package private)  boolean showDialog()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

words

int words

chars

int chars

lines

int lines

width

int width

directory

java.lang.String directory

name

java.lang.String name

path

java.lang.String path

hideErrorMessages

boolean hideErrorMessages
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 plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.

Specified by:
run in interface PlugIn

showDialog

boolean showDialog()

open

public ImageProcessor open()
Displays a file open dialog and opens the specified text file as a float image.


open

public ImageProcessor open(java.lang.String path)
Opens the specified text file as a float image.


hideErrorMessages

public void hideErrorMessages()

getName

public java.lang.String getName()
Returns the file name.


countLines

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

read

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