<commit_before>/*******************************************************************************
 * Copyright (c) 2017 Eurotech and/or its affiliates and others
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Eurotech - initial API and implementation
 *******************************************************************************/
package org.eclipse.kapua.app.console.module.api.client.resources.icons;

import org.eclipse.kapua.app.console.module.api.client.ui.color.Color;

import com.extjs.gxt.ui.client.widget.Text;
import com.google.gwt.user.client.Element;

public class KapuaIcon extends Text {

    IconSet icon;
    Color color;
    Integer emSize;

    public KapuaIcon(IconSet icon) {
        super();

        this.icon = icon;
        this.color = Color.BLUE_KAPUA;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public void setEmSize(Integer emSize) {
        this.emSize = emSize;
    }

    @Override<commit_msg>Allow customization of default KapuaIcon color<commit_after>/*******************************************************************************
 * Copyright (c) 2017 Eurotech and/or its affiliates and others
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Eurotech - initial API and implementation
 *******************************************************************************/
package org.eclipse.kapua.app.console.module.api.client.resources.icons;

import org.eclipse.kapua.app.console.module.api.client.ui.color.Color;

import com.extjs.gxt.ui.client.widget.Text;
import com.google.gwt.user.client.Element;

public class KapuaIcon extends Text {

    IconSet icon;
    Color color;
    Integer emSize;

    private static Color defaultColor = Color.BLUE_KAPUA;

    public KapuaIcon(IconSet icon) {
        super();

        this.icon = icon;
        this.color = defaultColor;
    }

    public static Color getDefaultColor() {
        return defaultColor;
    }

    public static void setDefaultColor(Color defaultColor) {
        KapuaIcon.defaultColor = defaultColor;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public void setEmSize(Integer emSize) {
        this.emSize = emSize;
    }

    @Override
{'fraction_non_alphanumeric': 0.1964886066492342, 'fraction_numerical': 0.005976839745984311, 'mean_word_length': 3.554421768707483, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2567961', 'n_tokens_mistral': 737, 'n_tokens_neox': 694, 'n_words': 194}