All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mdlaf.utils.WrapperJIconFont Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
package mdlaf.utils;

import jiconfont.IconCode;
import jiconfont.IconFont;

import java.io.InputStream;

public enum WrapperJIconFont implements IconCode {

    TOGGLE_ON('\uE9F6'),
    TOGGLE_OFF('\uE9F5'),
    MINIMIZE('\uE931');

    private final char character;

    WrapperJIconFont(char character) {
        this.character = character;
    }

    @Override
    public char getUnicode() {
        return character;
    }

    @Override
    public String getFontFamily() {
        return "Wrapper Material Icons";
    }

    public static IconFont getIconFont() {
        return new IconFont() {
            @Override
            public String getFontFamily() {
                return "Wrapper Material Icons";
            }

            @Override
            public InputStream getFontInputStream() {
                return MaterialFontFactory.class.getResourceAsStream("/fonts/icons/MaterialIcons-Regular.ttf");
            }
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy