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

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

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

Data I/O provider for GUI-OpRunner supporting MiToBo container classes

Provides data I/O for the following classes:
MTBRegion2DSetBag
MTBRegion2DSet
MTBRegion3DSet
MTBPolygon2DSet
MTBContour2DSet
MTBBorder2DSet

Note that some of the classes allow for interaction with the ROI manager of ImageJ, i.e. the class MTBPolygon2DSet. It can be initialized with selections from the ROI manager, and resulting polygons can also be added to the ROI manager.

Author:
moeller, misiak

Nested Class Summary
static class MTBDataIOFileSwing.InputMode
          Input mode for data.
static class MTBDataIOFileSwing.OutputMode
          Output mode for data.
 
Constructor Summary
MTBDataIOFileSwing()
           
 
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)
           
 Collection<Class<?>> providedClasses()
           
 Object readData(Field field, Class<?> cl, de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent guiElem)
           
 void setValue(Field field, Class<?> cl, de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent guiElement, 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
 

Constructor Detail

MTBDataIOFileSwing

public MTBDataIOFileSwing()
Method Detail

providedClasses

public Collection<Class<?>> providedClasses()
Specified by:
providedClasses in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIO

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 field,
                     Class<?> cl,
                     de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent guiElement,
                     Object value)
              throws de.unihalle.informatik.Alida.exceptions.ALDDataIOProviderException
Specified by:
setValue in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwing
Throws:
de.unihalle.informatik.Alida.exceptions.ALDDataIOProviderException

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


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