de.unihalle.informatik.MiToBo.core.dataio.provider.swing
Class MTBImageDataIOSwing

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.core.dataio.provider.swing.MTBImageDataIOSwing
All Implemented Interfaces:
de.unihalle.informatik.Alida.dataio.provider.ALDDataIO, de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwing

@ALDDataIOProvider(priority=10)
public class MTBImageDataIOSwing
extends Object
implements de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwing

Implementation of ALDDataIOCmdline interface for MitoBo images.

Author:
moeller

Nested Class Summary
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.
 
Field Summary
protected  Class<?> desiredImageClass
          Class of image to be returned.
 
Constructor Summary
MTBImageDataIOSwing()
          Default constructor.
 
Method Summary
 de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent createGUIElement(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desiredImageClass

protected Class<?> desiredImageClass
Class of image to be returned.

Constructor Detail

MTBImageDataIOSwing

public MTBImageDataIOSwing()
Default constructor.

Method Detail

providedClasses

public Collection<Class<?>> providedClasses()
Interface method to announce class for which IO is provided for

Specified by:
providedClasses in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIO
Returns:
Collection of classes provided

createGUIElement

public de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent createGUIElement(Field field,
                                                                                                        Class<?> cl,
                                                                                                        Object obj,
                                                                                                        de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr)
Specified by:
createGUIElement in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwing

setValue

public void setValue(Field f,
                     Class<?> cl,
                     de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent guiElem,
                     Object value)
Specified by:
setValue in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwing

readData

public Object readData(Field field,
                       Class<?> cl,
                       de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent guiElem)
                throws de.unihalle.informatik.Alida.exceptions.ALDDataIOProviderException
Specified by:
readData in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwing
Throws:
de.unihalle.informatik.Alida.exceptions.ALDDataIOProviderException

writeData

public JComponent writeData(Object obj,
                            de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr)
Specified by:
writeData in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwing

popUpImage

protected void popUpImage(Object obj)
Shows an image to the user.

Parameters:
obj - Image object to display.


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.