@ALDDataIOProvider public class ALDNativeArray1DDataIOSwing extends ALDDataIOSwingInitialGUIValueDefaultHandler
Modifier and Type | Class and Description |
---|---|
private class |
ALDNativeArray1DDataIOSwing.ArrayConfigPanel
GUI element for configuring 1D arrays of native data types and
wrapper.
|
private class |
ALDNativeArray1DDataIOSwing.ArrayConfigWindow
Graphical user interface window for displaying tables.
|
private class |
ALDNativeArray1DDataIOSwing.ArrayShowButton
GUI element for displaying 2D arrays.
|
Modifier and Type | Field and Description |
---|---|
private static LinkedList<Class<?>> |
classes
List of supported classes.
|
Constructor and Description |
---|
ALDNativeArray1DDataIOSwing()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ALDSwingComponent |
createGUIElement(Field field,
Class<?> cl,
Object obj,
ALDParameterDescriptor descr)
Generic reading of 1D arrays.
|
Collection<Class<?>> |
providedClasses()
Interface method to announce class for which IO is provided for.
|
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.
|
JComponent |
writeData(Object obj,
ALDParameterDescriptor descr)
Interface method for displaying an object in the GUI.
|
getInitialGUIValue
private static LinkedList<Class<?>> classes
public ALDNativeArray1DDataIOSwing()
public Collection<Class<?>> providedClasses()
public ALDSwingComponent createGUIElement(Field field, Class<?> cl, Object obj, ALDParameterDescriptor descr)
field
- Field of the parameter the GUI element is linked to.cl
- Class of object to be returned.obj
- The value of this object to be set as inital value.descr
- Optional descriptor to provide additional information.public void setValue(Field field, Class<?> cl, ALDSwingComponent guiElement, Object value) throws ALDDataIOProviderException
ALDDataIOSwing
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.ALDDataIOProviderException
- Thrown in case of failure.public Object readData(Field field, Class<?> cl, ALDSwingComponent guiElement) throws ALDDataIOProviderException
ALDDataIOSwing
field
- Field associated with object to be returned.cl
- Class of object to be returned.guiElement
- Component from where to read data.null
.ALDDataIOProviderException
- Thrown in case of failure.public JComponent writeData(Object obj, ALDParameterDescriptor descr) throws ALDDataIOProviderException
ALDDataIOSwing
obj
- Object to be displayed or saved.descr
- Optional descriptor to hand over additional information.ALDDataIOProviderException
- Thrown in case of failure.Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.