public abstract class BaseFont extends BIComplexAttributeBase
| Modifier and Type | Field and Description |
|---|---|
static org.apache.myfaces.trinidad.bean.PropertyKey |
BOLD_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
COLOR_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
ITALIC_KEY |
protected java.awt.Color |
m_defaultFontColor |
protected int |
m_defaultFontSize |
protected int |
m_defaultFontStyle |
protected java.lang.String |
m_defaultFontTypeface |
static org.apache.myfaces.trinidad.bean.PropertyKey |
NAME_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
SIZE_KEY |
static org.apache.myfaces.trinidad.bean.FacesBean.Type |
TYPE |
static org.apache.myfaces.trinidad.bean.PropertyKey |
UNDERLINE_KEY |
ID_KEY, m_parent, TRANSIENT_KEY| Constructor and Description |
|---|
BaseFont() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyProperties(java.util.HashMap map)
Applications do not need to call this method.
|
protected org.apache.myfaces.trinidad.bean.FacesBean.Type |
getBeanType() |
java.awt.Color |
getColor()
Retrieves the font color.
|
java.lang.String |
getName()
Retrieves the name of the font.
|
int |
getSize()
Retrieves the font size.
|
boolean |
isBold()
Indicates whether this font is bold.
|
boolean |
isItalic()
Indicates whether this font is italic.
|
boolean |
isUnderline()
Indicates whether the text is underlined with one line.
|
void |
resetStyleProperties()
Applications do not need to call this method.
|
void |
setBold(boolean bold)
Specifies whether this fond is bold.
|
void |
setColor(java.awt.Color newColor)
Specifies the font color.
|
void |
setDefaultValues(java.lang.String fontTypeFace,
int fontStyle,
int fontSize,
java.awt.Color fontColor)
Application developers do not need to call this method.
|
void |
setItalic(boolean isItalic)
Specifies whether this font is italic.
|
void |
setName(java.lang.String name)
Specifies the name of the font.
|
void |
setSize(int size)
Specifies the font size.
|
void |
setUnderline(boolean underline)
Specifies whether the text is underlined.
|
getBooleanProperty, getFacesBean, getId, getParent, getProperty, getPropertyKey, getSetAttributeIndex, isTransient, isUpdated, processSetAttribute, processSetAttributeAndAdd, registerAttachedObjectKey, restoreState, saveState, setBooleanProperty, setId, setParent, setProperty, setTransient, setUpdatedprotected java.lang.String m_defaultFontTypeface
protected int m_defaultFontStyle
protected int m_defaultFontSize
protected java.awt.Color m_defaultFontColor
public static final org.apache.myfaces.trinidad.bean.FacesBean.Type TYPE
public static final org.apache.myfaces.trinidad.bean.PropertyKey COLOR_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey NAME_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey SIZE_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey BOLD_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey ITALIC_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey UNDERLINE_KEY
public java.awt.Color getColor()
public void setColor(java.awt.Color newColor)
newColor - The font color.public java.lang.String getName()
public void setName(java.lang.String name)
name - The name of the font.public int getSize()
awt.Font.public void setSize(int size)
awt.Font.
If you set the FontSizeAbsolute property of the graph to
false, then calls to this method do nothing.
size - The font size in points. Valid values are from 1 to 128,
inclusive. Values less than 1 are ignored.
If size is greater than 128, then the
property is set to 128.Graph#setFontSizeAbsolutepublic void setBold(boolean bold)
bold - true to make the font bold,
false to make it not bold.public boolean isBold()
true if the font is bold,
false if it is not.public boolean isItalic()
true if the font is italic,
false if it is not.public void setItalic(boolean isItalic)
isItalic - true to make this font italic,
false to make this font not italic.public void setUnderline(boolean underline)
underline - true to underline the text with one line,
false to remove underlining.public boolean isUnderline()
true if the text is underlined,
false if it is not.public void applyProperties(java.util.HashMap map)
applyProperties in class BIComplexAttributeBasemap - hashMap that contains property value pairs.public void resetStyleProperties()
public void setDefaultValues(java.lang.String fontTypeFace,
int fontStyle,
int fontSize,
java.awt.Color fontColor)
protected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
getBeanType in class BIComplexAttributeBase