public abstract class BaseText extends BaseGaugeComponent implements FontAttribute
Modifier and Type | Field and Description |
---|---|
protected java.awt.Font |
m_defaultFont |
protected java.awt.Color |
m_defaultFontColor |
protected java.lang.String |
m_fontColorKey |
protected java.lang.String |
m_fontKey |
protected boolean |
m_isGaugeSetComponent |
m_commonGauge, m_compType
Constructor and Description |
---|
BaseText(CommonGauge gauge,
int compType) |
Modifier and Type | Method and Description |
---|---|
java.awt.Font |
getFont()
Retrieves a
Font object for this text component. |
java.awt.Color |
getFontColor()
Retrieves a
Color object. |
void |
setFont(java.awt.Font f)
Specifies a
Font object for this text component. |
void |
setFontColor(java.awt.Color color)
Specifies a
Color object for this font. |
getComponentName, getComponentType, selectObject
protected java.lang.String m_fontKey
protected java.lang.String m_fontColorKey
protected java.awt.Font m_defaultFont
protected java.awt.Color m_defaultFontColor
protected boolean m_isGaugeSetComponent
public BaseText(CommonGauge gauge, int compType)
public java.awt.Font getFont()
Font
object for this text component.
This is the awt
object with properties such as name, style,
and absolute size.getFont
in interface FontAttribute
Font
object for the object.public void setFont(java.awt.Font f)
Font
object for this text component.
This is the awt
object with properties such as name, style,
and absolute size.setFont
in interface FontAttribute
f
- A Font
object for this object.public java.awt.Color getFontColor()
Color
object.Color
object.public void setFontColor(java.awt.Color color)
Color
object for this font.color
- A Color
object.