public class ImageTitleToImagePlusConverter extends AbstractLegacyConverter<ImageTitleToImagePlusConverter.ImageTitle,ij.ImagePlus>
ImagePlus object.
This converter is a hack to expose available ImagePlus objects as
choices for the widget framework. It allows ObjectWidget
implementations to display the available ImagePlus objects by title.
Note that unlike most other classes in the ImageJ Legacy project, this one
needs typed references to classes in the ij package,
particularly ImagePlus, so that the conversion logic works as
intended. It seems to work without side effects in the standard case...
ConvertService.getCompatibleInputs(Class),
WidgetModel.getObjectPool()| Modifier and Type | Class and Description |
|---|---|
static class |
ImageTitleToImagePlusConverter.ImageTitle
Adapter for
ImagePlus that emits the image title when
ImageTitleToImagePlusConverter.ImageTitle.toString() is called. |
legacyService| Constructor and Description |
|---|
ImageTitleToImagePlusConverter() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(Object src,
Class<T> dest) |
Class<ImageTitleToImagePlusConverter.ImageTitle> |
getInputType() |
Class<ij.ImagePlus> |
getOutputType() |
void |
populateInputCandidates(Collection<Object> objects) |
canConvert, legacyEnabledcanConvert, canConvert, canConvert, canConvert, convert, convert, getType, supportsgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic void populateInputCandidates(Collection<Object> objects)
populateInputCandidates in interface Converter<ImageTitleToImagePlusConverter.ImageTitle,ij.ImagePlus>populateInputCandidates in class AbstractConverter<ImageTitleToImagePlusConverter.ImageTitle,ij.ImagePlus>public Class<ij.ImagePlus> getOutputType()
public Class<ImageTitleToImagePlusConverter.ImageTitle> getInputType()
Copyright © 2014–2022 ImageJ. All rights reserved.