@ALDDataIOProvider(priority=10) public class MTBImageDataIOSwing extends Object implements de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwing
ALDDataIOSwing interface for MiToBo images.| Modifier and Type | Class and Description |
|---|---|
protected class |
MTBImageDataIOSwing.ImageShowButton
Button to display an image on demand.
|
protected class |
MTBImageDataIOSwing.ImageShowPanel
Panel containing the button to display an image on demand.
|
private class |
MTBImageDataIOSwing.JComboBoxImage
Class for handling images opened in GUI.
|
| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
desiredImageClass
Class of image to be returned.
|
private static int |
idxUntitled
Index to number untitled images popped-up.
|
| Constructor and Description |
|---|
MTBImageDataIOSwing()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
createGUIElement(Field field,
Class<?> cl,
Object obj,
de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr) |
Object |
getInitialGUIValue(Field field,
Class<?> cl,
Object obj,
de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr) |
protected void |
popUpImage(Object obj)
Shows an image to the user.
|
Collection<Class<?>> |
providedClasses()
Interface method to announce class for which IO is provided for
|
Object |
readData(Field field,
Class<?> cl,
de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent guiElem) |
void |
setValue(Field f,
Class<?> cl,
de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent guiElem,
Object value) |
JComponent |
writeData(Object obj,
de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr) |
private static int idxUntitled
protected Class<?> desiredImageClass
public Collection<Class<?>> providedClasses()
providedClasses in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOpublic Object getInitialGUIValue(Field field, Class<?> cl, Object obj, de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr)
getInitialGUIValue in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwingpublic de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent createGUIElement(Field field, Class<?> cl, Object obj, de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr)
createGUIElement in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwingpublic void setValue(Field f, Class<?> cl, de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent guiElem, Object value)
setValue in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwingpublic Object readData(Field field, Class<?> cl, de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent guiElem) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOProviderException
readData in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwingde.unihalle.informatik.Alida.exceptions.ALDDataIOProviderExceptionpublic JComponent writeData(Object obj, de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr)
writeData in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwingprotected void popUpImage(Object obj)
obj - Image object to display.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.