private class MTBSet_ActiveContourEnergyDataIOSwing.MTBSet_ActiveContourEnergyConfigWindow extends de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeReporter implements ActionListener, TableModelListener, de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeListener
Modifier and Type | Class and Description |
---|---|
private class |
MTBSet_ActiveContourEnergyDataIOSwing.MTBSet_ActiveContourEnergyConfigWindow.MTBSet_SnkEnergyPDEGUITableModel
Internal PDE snake energy GUI table model.
|
Modifier and Type | Field and Description |
---|---|
private JButton |
addEnergyButton
Add button for energies.
|
private Collection<Class> |
availableClasses
List of available energies.
|
private HashMap<String,Class> |
classNameMapping
Mapping of short names to class objects.
|
private JButton |
closeButton
Close button.
|
private JButton |
confEnergyButton
Config button for energies.
|
private HashMap<String,de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDParametrizedClassConfigWindow> |
energyConfWins
Mapping of short names to configuration windows.
|
private JList |
energySelection
Combobox for selecting energies.
|
(package private) JTable |
energyTab
List of selected energies.
|
(package private) MTBSet_ActiveContourEnergyDataIOSwing.MTBSet_ActiveContourEnergyConfigWindow.MTBSet_SnkEnergyPDEGUITableModel |
energyTabModel
Model for the energy table.
|
(package private) Vector<Double> |
energyWeights
Individual energy weights.
|
private int |
frameHeight
Fixed height of window.
|
private int |
frameWidth
Fixed width of window.
|
private JPanel |
mainPanel
Main panel of main frame.
|
private de.unihalle.informatik.Alida.operator.ALDParameterDescriptor |
paramDescr
(Operator) parameter descriptor of associated parameter.
|
private JButton |
removeEnergyButton
Remove button for energies.
|
private LinkedList<String> |
selectedEnergies
List of currently selected energies.
|
private JFrame |
window
Main frame.
|
Constructor and Description |
---|
MTBSet_ActiveContourEnergyConfigWindow(Field field,
Class<?> cl,
Object obj,
de.unihalle.informatik.Alida.operator.ALDParameterDescriptor d)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
private void |
buildMainPanel(Class<?> targetClass)
Build the main panel for configuring the list of energies.
|
void |
disableComponent()
Disables graphical elements to prohibit value changes.
|
void |
dispose()
Releases all graphical components associcated with this provider.
|
void |
enableComponent()
Enables graphical elements to allow for value changes.
|
void |
handleValueChangeEvent(de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeEvent event) |
private void |
openWindow()
Displays configuration window.
|
MTBSet_ActiveContourEnergy |
readData(Field field,
Class<?> cl)
Extracts current collection data.
|
void |
setValue(Field field,
Class<?> cl,
Object value)
Extracts current collection data.
|
void |
tableChanged(TableModelEvent e) |
private JFrame window
private final int frameWidth
private final int frameHeight
private JPanel mainPanel
private Collection<Class> availableClasses
private HashMap<String,Class> classNameMapping
private LinkedList<String> selectedEnergies
private HashMap<String,de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDParametrizedClassConfigWindow> energyConfWins
private JButton addEnergyButton
private JButton removeEnergyButton
private JButton confEnergyButton
private JButton closeButton
private JList energySelection
JTable energyTab
MTBSet_ActiveContourEnergyDataIOSwing.MTBSet_ActiveContourEnergyConfigWindow.MTBSet_SnkEnergyPDEGUITableModel energyTabModel
private de.unihalle.informatik.Alida.operator.ALDParameterDescriptor paramDescr
public MTBSet_ActiveContourEnergyConfigWindow(Field field, Class<?> cl, Object obj, de.unihalle.informatik.Alida.operator.ALDParameterDescriptor d) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOProviderException
field
- Field.cl
- Class.o
- bj Preset object.d
- (Operator) parameter descriptor.de.unihalle.informatik.Alida.exceptions.ALDDataIOProviderException
public void disableComponent()
public void enableComponent()
public void dispose()
public void setValue(Field field, Class<?> cl, Object value) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException
field
- Field of collection elements.cl
- Class of collection elements.de.unihalle.informatik.Alida.exceptions.ALDDataIOException
public MTBSet_ActiveContourEnergy readData(Field field, Class<?> cl) throws de.unihalle.informatik.Alida.exceptions.ALDDataIOException
field
- Field of collection elements.cl
- Class of collection elements.de.unihalle.informatik.Alida.exceptions.ALDDataIOException
private void openWindow()
If a default collection is given, the collection is displayed.
private void buildMainPanel(Class<?> targetClass)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void tableChanged(TableModelEvent e)
tableChanged
in interface TableModelListener
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.