Interface IImageStackTrace
- All Superinterfaces:
IAxesTrace,ICoordinateSystemTrace,IDownsampledTrace,IImageTrace,org.eclipse.january.INameable,IPaletteTrace,ITrace
- All Known Implementing Classes:
ImageStackTrace
Class which extends IImageTrace and allows a stack
of images to be plotted in 2D with a scale widget.
The scale appears in the plot and can be moved by the user.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.dawnsci.plotting.api.trace.IImageTrace
IImageTrace.DownsampleType -
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies of stack position.intThe current location out of the stack which we are plotting.intThe size of the stack we are editing or -1 if something went wrong loading the stack.voidRemoves notification of stack position.voidsetStack(org.eclipse.january.dataset.ILazyDataset stack) Set the ILazyDataset to use for the stack.voidsetStackIndex(int index) Set the location in the stack which we plot.Methods inherited from interface org.eclipse.dawnsci.plotting.api.trace.IAxesTrace
getAxes, getAxesNames, isActiveMethods inherited from interface org.eclipse.dawnsci.plotting.api.trace.ICoordinateSystemTrace
getAxes, getPointInAxisCoordinates, getPointInImageCoordinates, getRegionInAxisCoordinatesMethods inherited from interface org.eclipse.dawnsci.plotting.api.trace.IDownsampledTrace
addDownsampleListener, getBin, removeDownsampleListenerMethods inherited from interface org.eclipse.dawnsci.plotting.api.trace.IImageTrace
getAlpha, getDownsampleBin, getDownsampled, getDownsampledMask, getDownsampleType, getGlobalRange, getHistoType, getImage, getImageOrigin, getMask, getRGBData, hasTrueAxes, rehistogram, repaint, setAlpha, setAxes, setData, setDownsampleType, setDynamicData, setGlobalRange, setHistoType, setImageOrigin, setImageUpdateActive, setMask, sleepMethods inherited from interface org.eclipse.january.INameable
getName, setNameMethods inherited from interface org.eclipse.dawnsci.plotting.api.trace.IPaletteTrace
addPaletteListener, getImageServiceBean, getMax, getMaxCut, getMin, getMinCut, getNanBound, getPaletteData, getPaletteName, isRescaleHistogram, removePaletteListener, setMax, setMaxCut, setMin, setMinCut, setNanBound, setPalette, setPaletteData, setPaletteName, setRescaleHistogramMethods inherited from interface org.eclipse.dawnsci.plotting.api.trace.ITrace
dispose, getData, getDataName, getRank, getUserObject, initialize, is3DTrace, isUserTrace, isVisible, setDataName, setUserObject, setUserTrace, setVisible
-
Method Details
-
setStack
void setStack(org.eclipse.january.dataset.ILazyDataset stack) Set the ILazyDataset to use for the stack. Normally 3D where the first index is the stack the other two are the- Parameters:
stack-- See Also:
-
getStackSize
int getStackSize()The size of the stack we are editing or -1 if something went wrong loading the stack.- Returns:
-
getStackIndex
int getStackIndex()The current location out of the stack which we are plotting.- Returns:
-
setStackIndex
void setStackIndex(int index) Set the location in the stack which we plot. Updates the plot to the new index.- Parameters:
index-
-
addStackPositionListener
Notifies of stack position.- Parameters:
l-
-
removeStackPositionListener
Removes notification of stack position.- Parameters:
l-
-