public class BottomLabel extends BaseLabel
a_aboveGauge, a_belowGauge, a_insideGauge, a_insideGaugeLeft, a_insideGaugeRight, a_none, a_withBottomLabel, lp_abovegauge, lp_belowgauge, lp_insidegauge, lp_insidegauge_left, lp_insidegauge_right, lp_none, lp_withbottomlabel, m_defaultPosition, m_positionKey
m_defaultFont, m_defaultFontColor, m_fontColorKey, m_fontKey, m_isGaugeSetComponent
m_commonGauge, m_compType
Constructor and Description |
---|
BottomLabel(CommonGauge gauge) |
Modifier and Type | Method and Description |
---|---|
int |
getPosition()
Returns the position of the label.
|
java.lang.String |
getText()
Retrieves the text for the BottomLabel.
|
java.lang.String |
getText(int index)
Retrieves the bottom label override for the gauge at the specified index of a gauge set.
|
void |
setPosition(int position)
Specifies the position of the label.
|
void |
setText(int index, java.lang.String label)
Specifies the bottom label override for the gauge at the specified index of a gauge set.
|
void |
setText(java.lang.String str)
Specifies the text for the BottomLabel.
|
convertLabelPositionToInt, convertLabelPositionToString
getFont, getFontColor, setFont, setFontColor
getComponentName, getComponentType, selectObject
public BottomLabel(CommonGauge gauge)
public java.lang.String getText()
public void setText(java.lang.String str)
str
- The text of this BottomLabel.public void setText(int index, java.lang.String label)
index
- The index of the bottom label to override in a gauge set.label
- The label to to apply.public java.lang.String getText(int index)
index
- The index of the bottom label to return.public int getPosition()
getPosition
in class BaseLabel
GaugeAttributes.LP_NONE
, GaugeAttributes.LP_BELOW_GAUGE
, GaugeAttributes.LP_INSIDE_GAUGE
.public void setPosition(int position)
setPosition
in class BaseLabel
position
- the integer constant that represents where the label is placed: GaugeAttributes.LP_NONE
, GaugeAttributes.LP_BELOW_GAUGE
, GaugeAttributes.LP_INSIDE_GAUGE
.