Class FontLookupBean
- java.lang.Object
-
- com.levigo.jadice.server.core.conf.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 Summary
Constructors Constructor Description FontLookupBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.levigo.jadice.document.font.attribute.FontAttributeSet
createFontAttributeSet()
protected <A extends com.levigo.jadice.document.font.attribute.api.Attribute>
AgetAttribute(Class<A> attributeClass)
protected <B extends Serializable,A extends com.levigo.jadice.document.font.attribute.api.Attribute<B>>
BgetAttributeValue(Class<A> attributeClass)
protected <B extends Serializable,A extends com.levigo.jadice.document.font.attribute.api.Attribute<B>>
BgetAttributeValue(Class<A> attributeClass, B defaultValue)
String
getFamilyName()
String
getFontName()
com.levigo.jadice.document.font.Font
getObject()
Class<?>
getObjectType()
String
getPostScriptName()
boolean
isBold()
boolean
isFailOnLastResortTypeface()
boolean
isItalic()
boolean
isMonospaced()
boolean
isPlain()
boolean
isSerif()
boolean
isSingleton()
boolean
isSymbolic()
protected <A extends com.levigo.jadice.document.font.attribute.api.Attribute>
AremoveAttribute(Class<A> attributeClass)
protected <B extends Serializable,A extends com.levigo.jadice.document.font.attribute.api.Attribute<B>>
voidsetAttributeValue(Class<A> attributeClass, B value, Function<B,A> attributeFactory)
void
setBold(boolean bold)
void
setFailOnLastResortTypeface(boolean failOnLastResortTypeface)
void
setFamilyName(String familyName)
void
setFontName(String fontName)
void
setItalic(boolean italic)
void
setMonospaced(boolean monospaced)
void
setPlain(boolean plain)
void
setPostScriptName(String postScriptFontName)
void
setSerif(boolean serif)
void
setSymbolic(boolean symbolic)
-
-
-
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 interfaceorg.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 interfaceorg.springframework.beans.factory.FactoryBean<com.levigo.jadice.document.font.Font>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<com.levigo.jadice.document.font.Font>
-
-