}
private void refreshTransformerPanel(Ranking selectedRanking) {
Transformer transformer = model.getCurrentTransformer();
boolean autoTransformer = model.isAutoTransformer(transformer);
TransformerUI transformerUI = controller.getUI(transformer);
if (!Double.isNaN(selectedRanking.getMinimumValue().doubleValue())
&& !Double.isNaN(selectedRanking.getMaximumValue().doubleValue())
&& selectedRanking.getMinimumValue() != selectedRanking.getMaximumValue()) {
applyButton.setEnabled(true);
} else {
applyButton.setEnabled(false);
}
centerPanel = transformerUI.getPanel(transformer, selectedRanking);
centerPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5, 5, 0, 5), BorderFactory.createEtchedBorder()));
centerPanel.setOpaque(false);
add(centerPanel, BorderLayout.CENTER);
splineButton.setVisible(true);
if (autoTransformer) {