@ALDBatchInputProvider(priority=1) public class ALDBatchInputNativeArray1DSwing extends Object implements ALDBatchInputIteratorSwing
ALDBatchInputIteratorSwing
for native 1D arrays.Modifier and Type | Class and Description |
---|---|
(package private) class |
ALDBatchInputNativeArray1DSwing.ALDBatchIteratorNativeArray1D
Iterates row-wise over a 2D array.
|
Constructor and Description |
---|
ALDBatchInputNativeArray1DSwing() |
Modifier and Type | Method and Description |
---|---|
ALDSwingComponent |
createGUIElement(Field field,
Class<?> cl,
Object obj,
ALDParameterDescriptor descr)
Interface method to create a GUI element for batch data input.
|
Collection<Class<?>> |
providedClasses()
Interface method to announce class for which IO is provided for
field is ignored.
|
Iterator<Object> |
readData(Field field,
Class<?> cl,
ALDSwingComponent guiElement)
Interface method for getting parameter values via a GUI element.
|
void |
setValue(Field field,
Class<?> cl,
ALDSwingComponent guiElement,
Object value)
Interface method for setting new parameter values in GUI.
|
public Collection<Class<?>> providedClasses()
providedClasses
in interface ALDBatchInputIterator
public ALDSwingComponent createGUIElement(Field field, Class<?> cl, Object obj, ALDParameterDescriptor descr) throws ALDBatchIOProviderException
ALDBatchInputIteratorSwing
createGUIElement
in interface ALDBatchInputIteratorSwing
cl
- Class of object to be returned.obj
- The value of this object to be set as inital value.descr
- Optional descriptor for additional information.ALDBatchIOProviderException
public void setValue(Field field, Class<?> cl, ALDSwingComponent guiElement, Object value) throws ALDBatchIOProviderException
ALDBatchInputIteratorSwing
setValue
in interface ALDBatchInputIteratorSwing
field
- Field of parameter object to be handled.cl
- Class of parameter object to be handled.guiElement
- Corresponding GUI element.value
- New value of the parameter.ALDBatchIOProviderException
public Iterator<Object> readData(Field field, Class<?> cl, ALDSwingComponent guiElement)
ALDBatchInputIteratorSwing
readData
in interface ALDBatchInputIteratorSwing
field
- Field associated with object to be returned.cl
- Class of object to be returned.guiElement
- Component from where to read data.null
.Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.