if (transformerPanel != null) {
centerPanel.remove(transformerPanel);
transformerPanel = null;
}
if (model != null) {
TransformerUI ui = model.getSelectedTransformerUI();
if (ui != null) {
boolean attribute = model.isAttributeTransformerUI(ui);
attributePanel.setVisible(attribute);
if (attribute) {
Function function = model.getSelectedFunction();
if (function != null) {
ui = function.getUI();
transformerPanel = ui.getPanel(function);
}
} else {
Function function = model.getSelectedFunction();
transformerPanel = ui.getPanel(function);
}
if (transformerPanel != null) {
transformerPanel.setOpaque(false);
centerPanel.add(transformerPanel, BorderLayout.CENTER);