Skip navigation links
oracle.dss.gauge
Class BaseText
java.lang.Object
oracle.dss.gauge.BaseGaugeComponent
oracle.dss.gauge.BaseText
- All Implemented Interfaces:
- FontAttribute
- Direct Known Subclasses:
- BaseLabel, GaugeSetTitle, LegendText, LegendTitle, TickLabel, ToolTips
-
public abstract class BaseText
- extends BaseGaugeComponent
- implements FontAttribute
- Since:
- 11.0
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_fontKey
protected java.lang.String m_fontKey
m_fontColorKey
protected java.lang.String m_fontColorKey
m_defaultFont
protected java.awt.Font m_defaultFont
m_defaultFontColor
protected java.awt.Color m_defaultFontColor
m_isGaugeSetComponent
protected boolean m_isGaugeSetComponent
BaseText
public BaseText(CommonGauge gauge,
int compType)
getFont
public java.awt.Font getFont()
- Retrieves a
Font
object for this text component. This is the awt
object with properties such as name, style, and absolute size.
-
- Specified by:
getFont
in interface FontAttribute
-
- Returns:
- A
Font
object for the object.
setFont
public void setFont(java.awt.Font f)
- Specifies a
Font
object for this text component. This is the awt
object with properties such as name, style, and absolute size.
-
- Specified by:
setFont
in interface FontAttribute
-
- Parameters:
f
- A Font
object for this object.
getFontColor
public java.awt.Color getFontColor()
- Retrieves a
Color
object.
-
- Returns:
- A
Color
object.
setFontColor
public void setFontColor(java.awt.Color color)
- Specifies a
Color
object for this font.
-
- Parameters:
color
- A Color
object.
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.