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, legacyEnabled
canConvert, canConvert, canConvert, canConvert, convert, convert, getType, supports
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public 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.