class PartitionLabelColorTransformerUI implements TransformerUI {

    private PartitionColorTransformerPanel panel;

    @Override
    public TransformerCategory getCategory() {
        return DefaultCategory.LABEL_COLOR;
    }

    @Override
    public String getDisplayName() {
        return NbBundle.getMessage(PartitionLabelColorTransformerUI.class, "Attribute.partition.name");
    }

    @Override
    public Icon getIcon() {
        return null;
    }

    @Override
    public String getDescription() {
        return null;
    }

    @Override
    public synchronized JPanel getPanel(Function function) {
        if (panel == null) {
            panel = new PartitionColorTransformerPanel();
        }
        panel.setup((PartitionFunction) function);
        return panel;
    }

    @Override
    public synchronized AbstractButton[] getControlButton() {<FILL_FUNCTION_BODY>}

    @Override
    public Class<? extends PartitionTransformer> getTransformerClass() {
        return PartitionLabelColorTransformer.class;
    }
}

        if (panel == null) {
            panel = new PartitionColorTransformerPanel();
        }
        return new AbstractButton[] {panel.getPaletteButton()};
    
<no_super_class>