class PartitionLabelColorTransformer implements PartitionTransformer<Element> {

    @Override
    public void transform(Element element, Partition partition, Object value) {<FILL_FUNCTION_BODY>}

    @Override
    public boolean isNode() {
        return true;
    }

    @Override
    public boolean isEdge() {
        return true;
    }

    public PaletteManager getPaletteManager() {
        return PaletteManager.getInstance();
    }
}

        Color color = partition.getColor(value);
        if (color == null) {
            color = Partition.DEFAULT_COLOR;
        }
        element.getTextProperties().setColor(color);
    
<no_super_class>