protected class SegmentationInitializerDataIOSwing.SegmentationConfigWin extends de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeReporter implements ActionListener, de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeListener
Modifier and Type | Field and Description |
---|---|
private JButton |
closeButton
Button to close the configuration window.
|
private int |
frameHeight
Fixed height of window.
|
private int |
frameWidth
Fixed width of window.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
labelIO
I/O component to read a label image.
|
private JPanel |
mainPanel
Main panel of main frame.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
maskIO
I/O component to read a binary image.
|
private JRadioButton |
modeSelectLabelImg
Button to select label image mode.
|
private JRadioButton |
modeSelectMask
Button to select binary mask mode.
|
private JRadioButton |
modeSelectRegions
Button to select region set mode.
|
private JRadioButton |
modeSelectShape
Button to select shape mode.
|
private JRadioButton |
modeSelectThreshold
Button to select image thresholding mode.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
regionIO
I/O component to read a region set.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
regionIObin
I/O component to configure binary mode for region sets.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
shapeIOShape
I/O component to select shape.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
shapeIOxDim
I/O component to set x dimension of shape mask.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
shapeIOxPos
I/O component to set x position of shape.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
shapeIOxSize
I/O component to set size of shape in x.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
shapeIOyDim
I/O component to set y dimension of shape mask.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
shapeIOyPos
I/O component to set y position of shape.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
shapeIOySize
I/O component to set size of shape in y.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
shapeIOzDim
I/O component to set z dimension of shape mask.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
shapeIOzPos
I/O component to set z position of shape.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
shapeIOzSize
I/O component to set size of shape in z.
|
private JButton |
showButton
Button to show currently configured segmentation.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
targetDimensionIO
I/O component to read the target dimension.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
thresholdIOImage
I/O component to read an image for thresholding.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent |
thresholdIOThresh
I/O component to read a threshold.
|
protected JFrame |
window
Main frame.
|
Modifier | Constructor and Description |
---|---|
protected |
SegmentationConfigWin(Field field,
Class<?> cl,
Object obj,
de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
private void |
configGUIModeLabel()
Enable GUI components for label mode.
|
private void |
configGUIModeMask()
Enable GUI components for mask mode.
|
private void |
configGUIModeRegion()
Enable GUI components for region mode.
|
private void |
configGUIModeShape()
Enable GUI components for shape mode.
|
private void |
configGUIModeThreshold()
Enable GUI components for threshold mode.
|
protected void |
disableComponent()
Deactivates the configuration window to prohibit value changes.
|
protected void |
dispose()
Disposes this window and all sub-components.
|
protected void |
enableComponent()
Reactivates the configuration window to allow for value changes.
|
protected SegmentationInitializer.InputMode |
getCurrentMode()
Extracts currently selected mode, i.e. data source.
|
void |
handleValueChangeEvent(de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeEvent event) |
protected SegmentationInitializer |
readData(Field field,
Class<?> cl)
Extracts current data.
|
protected void |
setValue(Object value)
Updates current initializer configuration.
|
protected JFrame window
private final int frameWidth
private final int frameHeight
private JPanel mainPanel
private JButton closeButton
private JButton showButton
private JRadioButton modeSelectMask
private JRadioButton modeSelectLabelImg
private JRadioButton modeSelectRegions
private JRadioButton modeSelectThreshold
private JRadioButton modeSelectShape
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent targetDimensionIO
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent labelIO
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent maskIO
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent regionIO
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent regionIObin
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent thresholdIOImage
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent thresholdIOThresh
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent shapeIOShape
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent shapeIOxDim
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent shapeIOyDim
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent shapeIOzDim
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent shapeIOxPos
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent shapeIOyPos
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent shapeIOzPos
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent shapeIOxSize
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent shapeIOySize
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent shapeIOzSize
protected SegmentationConfigWin(Field field, Class<?> cl, Object obj, de.unihalle.informatik.Alida.operator.ALDParameterDescriptor descr) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException
field
- Field to specify input data objects.cl
- Class of collection elements.obj
- Initial value of collection.descr
- Optional descriptor for additional information.de.unihalle.informatik.Alida.exceptions.ALDDataIOException
protected SegmentationInitializer readData(Field field, Class<?> cl) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException, de.unihalle.informatik.Alida.exceptions.ALDOperatorException
field
- Field.cl
- Class.de.unihalle.informatik.Alida.exceptions.ALDDataIOException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
protected SegmentationInitializer.InputMode getCurrentMode()
protected void setValue(Object value) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException
value
- New value.de.unihalle.informatik.Alida.exceptions.ALDDataIOException
protected void disableComponent()
protected void enableComponent()
protected void dispose()
private void configGUIModeMask()
private void configGUIModeLabel()
private void configGUIModeRegion()
private void configGUIModeThreshold()
private void configGUIModeShape()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
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.