Class FontLookupBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean<com.levigo.jadice.document.font.Font>

    public class FontLookupBean
    extends Object
    implements org.springframework.beans.factory.FactoryBean<com.levigo.jadice.document.font.Font>
    • Constructor Detail

      • FontLookupBean

        public FontLookupBean()
    • Method Detail

      • getAttributeValue

        protected <B extends Serializable,​A extends com.levigo.jadice.document.font.attribute.api.Attribute<B>> B getAttributeValue​(Class<A> attributeClass,
                                                                                                                                          B defaultValue)
      • getAttributeValue

        protected <B extends Serializable,​A extends com.levigo.jadice.document.font.attribute.api.Attribute<B>> B getAttributeValue​(Class<A> attributeClass)
      • getAttribute

        protected <A extends com.levigo.jadice.document.font.attribute.api.Attribute> A getAttribute​(Class<A> attributeClass)
      • removeAttribute

        protected <A extends com.levigo.jadice.document.font.attribute.api.Attribute> A removeAttribute​(Class<A> attributeClass)
      • setAttributeValue

        protected <B extends Serializable,​A extends com.levigo.jadice.document.font.attribute.api.Attribute<B>> void setAttributeValue​(Class<A> attributeClass,
                                                                                                                                             B value,
                                                                                                                                             Function<B,​A> attributeFactory)
      • getPostScriptName

        public String getPostScriptName()
      • setPostScriptName

        public void setPostScriptName​(String postScriptFontName)
      • getFontName

        public String getFontName()
      • setFontName

        public void setFontName​(String fontName)
      • getFamilyName

        public String getFamilyName()
      • setFamilyName

        public void setFamilyName​(String familyName)
      • isSerif

        public boolean isSerif()
      • setSerif

        public void setSerif​(boolean serif)
      • isItalic

        public boolean isItalic()
      • setItalic

        public void setItalic​(boolean italic)
      • isSymbolic

        public boolean isSymbolic()
      • setSymbolic

        public void setSymbolic​(boolean symbolic)
      • isMonospaced

        public boolean isMonospaced()
      • setMonospaced

        public void setMonospaced​(boolean monospaced)
      • isBold

        public boolean isBold()
      • setBold

        public void setBold​(boolean bold)
      • isPlain

        public boolean isPlain()
      • setPlain

        public void setPlain​(boolean plain)
      • createFontAttributeSet

        protected com.levigo.jadice.document.font.attribute.FontAttributeSet createFontAttributeSet()
      • getObject

        public com.levigo.jadice.document.font.Font getObject()
                                                       throws Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<com.levigo.jadice.document.font.Font>
        Throws:
        Exception
      • isFailOnLastResortTypeface

        public boolean isFailOnLastResortTypeface()
      • setFailOnLastResortTypeface

        public void setFailOnLastResortTypeface​(boolean failOnLastResortTypeface)
      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<com.levigo.jadice.document.font.Font>
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<com.levigo.jadice.document.font.Font>