FlowJ
Class FlowJUserInterface

java.lang.Object
  extended by ij.ImagePlus
      extended by FlowJ.FlowJUserInterface
All Implemented Interfaces:
ij.measure.Measurements, java.awt.datatransfer.ClipboardOwner, java.awt.event.ActionListener, java.awt.image.ImageObserver, java.util.EventListener

public class FlowJUserInterface
extends ij.ImagePlus
implements java.awt.event.ActionListener, java.awt.datatransfer.ClipboardOwner

This class links the FlowJ classes to the ImageJ interface.
Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.


Field Summary
 
Fields inherited from class ij.ImagePlus
changes, COLOR_256, COLOR_RGB, GRAY16, GRAY32, GRAY8, pixelHeight, pixelWidth, sCalibrated, unit, units
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Fields inherited from interface ij.measure.Measurements
AREA, AREA_FRACTION, CENTER_OF_MASS, CENTROID, CIRCULARITY, ELLIPSE, FERET, INTEGRATED_DENSITY, INVERT_Y, KURTOSIS, LABELS, LIMIT, MAX_STANDARDS, MEAN, MEDIAN, MIN_MAX, MODE, PERIMETER, RECT, SKEWNESS, SLICE, STD_DEV
 
Constructor Summary
FlowJUserInterface()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void computeSingleFrame(int frame)
          Compute the flow from the current stack.
 void doCompute(boolean all)
          Compute the flow for a single or a range of frames in the stack.
static void error(java.lang.String s)
           
 void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
           
 void show()
          Shows Dialog.
static void showProgress(float d)
           
static void showStatus(java.lang.String s)
           
static void write(java.lang.String s)
           
 
Methods inherited from class ij.ImagePlus
addImageListener, close, copy, copyScale, createEmptyStack, createImagePlus, createLut, createNewRoi, draw, draw, flush, getBitDepth, getCalibration, getCanvas, getChannelProcessor, getClipboard, getCurrentSlice, getDimensions, getFileInfo, getGlobalCalibration, getHeight, getID, getImage, getImageStack, getImageStackSize, getLocalCalibration, getLocationAsString, getMask, getNChannels, getNFrames, getNSlices, getOriginalFileInfo, getPixel, getProcessor, getProperties, getProperty, getRoi, getShortTitle, getStack, getStackSize, getStartTime, getStatistics, getStatistics, getStatistics, getStatistics, getTitle, getType, getWidth, getWindow, hide, imageUpdate, isInvertedLut, isLocked, isProcessor, killProcessor, killRoi, killStack, lock, lockSilently, mouseMoved, paste, removeImageListener, repaintWindow, resetClipboard, restoreRoi, revert, saveRoi, setActivated, setCalibration, setColor, setDimensions, setFileInfo, setGlobalCalibration, setIgnoreFlush, setImage, setProcessor, setProperty, setRoi, setRoi, setRoi, setSlice, setStack, setTitle, setWindow, show, startTiming, toString, trimProcessor, unlock, updateAndDraw, updateAndRepaintWindow, updateChannelAndDraw, updateImage, updateStatusbarValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlowJUserInterface

public FlowJUserInterface()
Method Detail

show

public void show()
Shows Dialog. Sets all parameter entries. Overrides ImagePlus.show().

Overrides:
show in class ij.ImagePlus

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

doCompute

public void doCompute(boolean all)
Compute the flow for a single or a range of frames in the stack. The parameters are read from the dialog window. The flows are left in the flow object.

Parameters:
all - indicates whether to compute only for a single frame or for all possible frames in the stack.

computeSingleFrame

public void computeSingleFrame(int frame)
                        throws FlowJException
Compute the flow from the current stack. The parameters are read from the dialog window. The flows are left in the flow object.

Parameters:
frame - the frame for which to compute the flow.
Throws:
FlowJException - if there were problems (including frame out of bounds).

lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
                          java.awt.datatransfer.Transferable contents)
Specified by:
lostOwnership in interface java.awt.datatransfer.ClipboardOwner

showStatus

public static void showStatus(java.lang.String s)

write

public static void write(java.lang.String s)

showProgress

public static void showProgress(float d)

error

public static void error(java.lang.String s)