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

org.zodiac.autoconfigure.ureport.UReportFontAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.autoconfigure.ureport;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.zodiac.autoconfigure.ureport.condition.ConditionalOnUReportEnabled;

//@SpringBootConfiguration
@ConditionalOnUReportEnabled
@ConditionalOnClass(value = {com.bstek.ureport.CellRenderer.class, org.zodiac.ureport.UReport.class})
public class UReportFontAutoConfiguration {

    public UReportFontAutoConfiguration() {
    }

    @ConditionalOnMissingBean
    @Bean(value = {org.zodiac.ureport.costants.UReportFontBeanConstants.ARIAL_FONT_REGISTER_NAME})
    protected com.bstek.ureport.font.arial.ArialFontRegister arialFontRegister() {
        return new com.bstek.ureport.font.arial.ArialFontRegister();
    }

    @ConditionalOnMissingBean
    @Bean(value = {org.zodiac.ureport.costants.UReportFontBeanConstants.COMIC_SANS_MS_FONT_REGISTER_NAME})
    protected com.bstek.ureport.font.comicsansms.ComicSansMSFontRegister comicSansMSFontRegister() {
        return new com.bstek.ureport.font.comicsansms.ComicSansMSFontRegister();
    }

    @ConditionalOnMissingBean
    @Bean(value = {org.zodiac.ureport.costants.UReportFontBeanConstants.COURIER_NEW_FONT_REGISTER_NAME})
    protected com.bstek.ureport.font.couriernew.CourierNewFontRegister courierNewFontRegister() {
        return new com.bstek.ureport.font.couriernew.CourierNewFontRegister();
    }

    @ConditionalOnMissingBean
    @Bean(value = {org.zodiac.ureport.costants.UReportFontBeanConstants.FANG_SONG_FONT_REGISTER_NAME})
    protected com.bstek.ureport.font.fangsong.FangSongFontRegister fangSongFontRegister() {
        return new com.bstek.ureport.font.fangsong.FangSongFontRegister();
    }

    @ConditionalOnMissingBean
    @Bean(value = {org.zodiac.ureport.costants.UReportFontBeanConstants.HEITI_FONT_REGISTER_NAME})
    protected com.bstek.ureport.font.heiti.HeiTiFontRegister heiTiFontRegister() {
        return new com.bstek.ureport.font.heiti.HeiTiFontRegister();
    }

    @ConditionalOnMissingBean
    @Bean(value = {org.zodiac.ureport.costants.UReportFontBeanConstants.KAITI_FONT_REGISTER_NAME})
    protected com.bstek.ureport.font.kaiti.KaiTiFontRegister kaiTiFontRegister() {
        return new com.bstek.ureport.font.kaiti.KaiTiFontRegister();
    }

    @ConditionalOnMissingBean
    @Bean(value = {org.zodiac.ureport.costants.UReportFontBeanConstants.SONGTI_FONT_REGISTER_NAME})
    protected com.bstek.ureport.font.songti.SongTiFontRegister songTiFontRegister() {
        return new com.bstek.ureport.font.songti.SongTiFontRegister();
    }

    @ConditionalOnMissingBean
    @Bean(value = {org.zodiac.ureport.costants.UReportFontBeanConstants.TIMES_NEW_ROMAN_FONT_REGISTER_NAME})
    protected com.bstek.ureport.font.timesnewroman.TimesNewRomanFontRegister timesNewRomanFontRegister() {
        return new com.bstek.ureport.font.timesnewroman.TimesNewRomanFontRegister();
    }

    @ConditionalOnMissingBean
    @Bean(value = {org.zodiac.ureport.costants.UReportFontBeanConstants.YAHEI_FONT_REGISTER_NAME})
    protected com.bstek.ureport.font.yahei.YaheiFontRegister yaheiFontRegister() {
        return new com.bstek.ureport.font.yahei.YaheiFontRegister();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy