private class MTBImageDataIOSwing.JComboBoxImage extends de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent implements ij.ImageListener, ItemListener
Modifier and Type | Field and Description |
---|---|
private de.unihalle.informatik.Alida.operator.ALDParameterDescriptor |
paramDescr
(Operator) parameter descriptor of associated parameter.
|
private JComboBox |
selectBox
Combobox to select images.
|
private String |
selectedImage
Recently selected image.
|
Constructor and Description |
---|
JComboBoxImage(String objName,
de.unihalle.informatik.Alida.operator.ALDParameterDescriptor d)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
disableComponent() |
void |
dispose() |
void |
enableComponent() |
JComponent |
getJComponent() |
void |
imageClosed(ij.ImagePlus arg0) |
void |
imageOpened(ij.ImagePlus arg0) |
private boolean |
imageTypeIsOk(ij.ImagePlus img) |
void |
imageUpdated(ij.ImagePlus img) |
void |
itemStateChanged(ItemEvent e) |
Object |
readData(Field field,
Class<?> cl)
Function to get selected image from GUI.
|
void |
setValue(Object value)
Selects the given image object in combobox.
|
private boolean |
updateImageList(String preselect)
Updates image list and GUI.
|
private JComboBox selectBox
private String selectedImage
private de.unihalle.informatik.Alida.operator.ALDParameterDescriptor paramDescr
public JComboBoxImage(String objName, de.unihalle.informatik.Alida.operator.ALDParameterDescriptor d)
objName
- Optional name of default object, may be null.d
- (Operator) parameter descriptor.public JComponent getJComponent()
getJComponent
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
public void setValue(Object value)
value
- Image object to be selected.public Object readData(Field field, Class<?> cl)
field
- Field of requested object.cl
- Class of selected object.private boolean updateImageList(String preselect)
preselect
- Optional name of object to be pre-selected.private boolean imageTypeIsOk(ij.ImagePlus img)
public void imageClosed(ij.ImagePlus arg0)
imageClosed
in interface ij.ImageListener
public void imageOpened(ij.ImagePlus arg0)
imageOpened
in interface ij.ImageListener
public void imageUpdated(ij.ImagePlus img)
imageUpdated
in interface ij.ImageListener
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
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
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.