de.unihalle.informatik.MiToBo.segmentation.basics
Class SegmentationInitializerDataIOSwing

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.segmentation.basics.SegmentationInitializerDataIOSwing
All Implemented Interfaces:
de.unihalle.informatik.Alida.dataio.provider.ALDDataIO, de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwing

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

Class for loading/saving objects of type SegmentationInitializer.

If no concrete class is requested, the type of the returned data object depends on the input data (e.g. 3D data yields an object of type MTBSegmentation3D to be returned, 2D data results in an object of type MTBSegmentation3D). If a concrete class is given an object of a corresponding class is returned, if available. In case that the dimensions of input data and desired class are not consistent, the input data is automatically converted if possible. This might result in a loss of data.

Author:
moeller

Nested Class Summary
protected  class SegmentationInitializerDataIOSwing.ConfigureSegmentationButton
          GUI element for configuring segmentations.
protected  class SegmentationInitializerDataIOSwing.SegmentationConfigWin
          Segmentation configuration window.
 
Constructor Summary
SegmentationInitializerDataIOSwing()
           
 
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)
          Generic reading of segmentation objects.
 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 field, 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
 

Constructor Detail

SegmentationInitializerDataIOSwing

public SegmentationInitializerDataIOSwing()
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)
                                                                                                 throws de.unihalle.informatik.Alida.exceptions.ALDDataIOProviderException
Generic reading of segmentation objects.

Specified by:
createGUIElement in interface de.unihalle.informatik.Alida.dataio.provider.ALDDataIOSwing
Throws:
de.unihalle.informatik.Alida.exceptions.ALDDataIOProviderException

setValue

public void setValue(Field field,
                     Class<?> cl,
                     de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent guiElem,
                     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.