protected class SegmentationInitializerDataIOSwing.ConfigureSegmentationButton extends de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent implements ActionListener, de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeListener
This button has a configuration window attached to it where data to initialize a segmentation object can be specified.
Modifier and Type | Field and Description |
---|---|
protected JButton |
configButton
Configuration button.
|
protected SegmentationInitializerDataIOSwing.SegmentationConfigWin |
confWin
Configuration window.
|
Modifier | Constructor and Description |
---|---|
protected |
ConfigureSegmentationButton(Field field,
Class<?> cl,
Object obj,
de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
disableComponent() |
void |
dispose() |
void |
enableComponent() |
JComponent |
getJComponent() |
void |
handleValueChangeEvent(de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeEvent event) |
protected Object |
readData(Field field,
Class<?> cl)
Gets the data from the configuration window.
|
protected void |
setValue(Object value)
Set new values.
|
protected JButton configButton
protected SegmentationInitializerDataIOSwing.SegmentationConfigWin confWin
protected ConfigureSegmentationButton(Field field, Class<?> cl, Object obj, de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException
field
- Field of associated parameter.cl
- Class of associated parameter.obj
- Initial value.descr
- Associated parameter descriptor.de.unihalle.informatik.Alida.exceptions.ALDDataIOException
- Thrown in case of failure.protected Object readData(Field field, Class<?> cl) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException, de.unihalle.informatik.Alida.exceptions.ALDOperatorException
field
- Field of collection.cl
- Class of collection.de.unihalle.informatik.Alida.exceptions.ALDDataIOException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
protected void setValue(Object value) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException
value
- New object data.de.unihalle.informatik.Alida.exceptions.ALDDataIOException
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public JComponent getJComponent()
getJComponent
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
public void disableComponent()
disableComponent
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
public void enableComponent()
enableComponent
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
public void dispose()
dispose
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
public void handleValueChangeEvent(de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeEvent event)
handleValueChangeEvent
in interface de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeListener
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.