ini.trakem2.display
Class FakeImagePlus

java.lang.Object
  extended by ij.ImagePlus
      extended by ini.trakem2.display.FakeImagePlus
All Implemented Interfaces:
ij.measure.Measurements, java.awt.image.ImageObserver

public class FakeImagePlus
extends ij.ImagePlus

Need a non-null ImagePlus for the ImageCanvas, even if fake.


Field Summary
 
Fields inherited from class ij.ImagePlus
changes, CLOSED, COLOR_256, COLOR_RGB, compositeImage, currentSlice, GRAY16, GRAY32, GRAY8, height, img, ip, locked, nChannels, nFrames, nSlices, OPENED, roi, UPDATED, 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, 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, SCIENTIFIC_NOTATION, SHAPE_DESCRIPTORS, SKEWNESS, SLICE, STACK_POSITION, STD_DEV
 
Constructor Summary
FakeImagePlus(int width, int height, Display display)
           
 
Method Summary
 void flush()
           
 ij.measure.Calibration getCalibration()
           
protected  Display getDisplay()
           
 int getHeight()
           
 int[] getPixel(int x, int y)
           
 ij.process.ImageProcessor getProcessor()
          Returns the super, which is a dummy 4x4
 ij.ImageStack getStack()
          Returns a virtual stack made of boxes with the dimension of the ROI or the whole layer, so that pixels are retrieved on the fly.
 int getStackCount()
          Returns 1.
 ij.process.ImageStatistics getStatistics(int mOptions, int nBins, double histMin, double histMax)
           
 int getType()
           
 int getWidth()
           
 boolean isVirtual()
           
 void killRoi()
          Forward kill roi to the last_temp of the associated Display.
 void mouseMoved(int x, int y)
           
 void setCalibration(ij.measure.Calibration cal)
          Forward to LayerSet.
 void setCalibrationSuper(ij.measure.Calibration cal)
           
 void setDimensions(int width, int height)
          Used to resize the canvas.
 void setProcessor(java.lang.String title, ij.process.ImageProcessor ip)
           
 void setSlice(int slice)
           
 void updateAndRepaintWindow()
           
 
Methods inherited from class ij.ImagePlus
addImageListener, close, convertIndexToPosition, copy, copyScale, createEmptyStack, createHyperStack, createImagePlus, createLut, createNewRoi, draw, draw, duplicate, flatten, getBitDepth, getBufferedImage, getBytesPerPixel, getCanvas, getChannel, getChannelProcessor, getClipboard, getCurrentSlice, getDefault16bitRange, getDimensions, getDisplayList, getDisplayRangeMax, getDisplayRangeMin, getFileInfo, getFrame, getGlobalCalibration, getHideOverlay, getID, getImage, getImageStack, getImageStackSize, getLocalCalibration, getLocationAsString, getLuts, getMask, getNChannels, getNDimensions, getNFrames, getNSlices, getOpenAsHyperStack, getOriginalFileInfo, getOverlay, getProperties, getProperty, getRoi, getShortTitle, getSlice, getStackIndex, getStackSize, getStartTime, getStatistics, getStatistics, getStatistics, getTitle, getWindow, hide, imageUpdate, isComposite, isDisplayedHyperStack, isHyperStack, isInvertedLut, isLocked, isProcessor, isVisible, killProcessor, killStack, lock, lockSilently, notifyListeners, paste, removeImageListener, repaintWindow, resetClipboard, resetDisplayRange, resetStack, restoreRoi, revert, saveRoi, setActivated, setColor, setDefault16bitRange, setDimensions, setDisplayList, setDisplayList, setDisplayRange, setDisplayRange, setFileInfo, setGlobalCalibration, setHideOverlay, setIgnoreFlush, setImage, setOpenAsHyperStack, setOverlay, setOverlay, setOverlay, setPosition, setPosition, setPositionWithoutUpdate, setProcessor, setProperty, setRoi, setRoi, setRoi, setRoi, setSliceWithoutUpdate, setStack, setStack, setStack, setTitle, setType, setWindow, show, show, startTiming, toString, trimProcessor, unlock, updateAndDraw, updateChannelAndDraw, updateImage, updatePosition, updateStatusbarValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FakeImagePlus

public FakeImagePlus(int width,
                     int height,
                     Display display)
Method Detail

setProcessor

public void setProcessor(java.lang.String title,
                         ij.process.ImageProcessor ip)
Overrides:
setProcessor in class ij.ImagePlus

flush

public void flush()
Overrides:
flush in class ij.ImagePlus

getDisplay

protected Display getDisplay()

getType

public int getType()
Overrides:
getType in class ij.ImagePlus

getWidth

public int getWidth()
Overrides:
getWidth in class ij.ImagePlus

getHeight

public int getHeight()
Overrides:
getHeight in class ij.ImagePlus

setDimensions

public void setDimensions(int width,
                          int height)
Used to resize the canvas.


getPixel

public int[] getPixel(int x,
                      int y)
Overrides:
getPixel in class ij.ImagePlus

mouseMoved

public void mouseMoved(int x,
                       int y)
Overrides:
mouseMoved in class ij.ImagePlus

getStatistics

public ij.process.ImageStatistics getStatistics(int mOptions,
                                                int nBins,
                                                double histMin,
                                                double histMax)
Overrides:
getStatistics in class ij.ImagePlus

getStack

public ij.ImageStack getStack()
Returns a virtual stack made of boxes with the dimension of the ROI or the whole layer, so that pixels are retrieved on the fly.

Overrides:
getStack in class ij.ImagePlus

getStackCount

public int getStackCount()
Returns 1.


isVirtual

public boolean isVirtual()

getProcessor

public ij.process.ImageProcessor getProcessor()
Returns the super, which is a dummy 4x4

Overrides:
getProcessor in class ij.ImagePlus

setCalibration

public void setCalibration(ij.measure.Calibration cal)
Forward to LayerSet.

Overrides:
setCalibration in class ij.ImagePlus

setCalibrationSuper

public void setCalibrationSuper(ij.measure.Calibration cal)

getCalibration

public ij.measure.Calibration getCalibration()
Overrides:
getCalibration in class ij.ImagePlus

killRoi

public void killRoi()
Forward kill roi to the last_temp of the associated Display.

Overrides:
killRoi in class ij.ImagePlus

setSlice

public void setSlice(int slice)
Overrides:
setSlice in class ij.ImagePlus

updateAndRepaintWindow

public void updateAndRepaintWindow()
Overrides:
updateAndRepaintWindow in class ij.ImagePlus