public class MetricLabel extends BaseLabel
| Modifier and Type | Field and Description |
|---|---|
static org.apache.myfaces.trinidad.bean.PropertyKey |
AUTOPRECISION_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
CONVERTER_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
NUMBER_FORMAT_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
NUMBER_TYPE_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
SCALING_KEY |
static org.apache.myfaces.trinidad.bean.FacesBean.Type |
TYPE |
a_aboveGauge, a_belowGauge, a_insideGauge, a_insideGaugeLeft, a_insideGaugeRight, a_none, a_withBottomLabel, m_defaultPosition, POSITION_KEYFONT_COLOR_KEY, GAUGE_FONT_KEY, m_defaultFontColor, m_defaultFontSize, m_defaultFontStyle, m_defaultFontTypefaceID_KEY, m_parent, TRANSIENT_KEY| Constructor and Description |
|---|
MetricLabel() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyProperties(java.util.HashMap map)
Applications do not need to call this method.
|
java.lang.String |
getAutoPrecision()
Retrieves the precision of this component.
|
protected org.apache.myfaces.trinidad.bean.FacesBean.Type |
getBeanType() |
javax.faces.convert.Converter |
getConverter()
Retrieves the number converter
|
NumberFormat |
getNumberFormat()
Deprecated.
Use Converter
Gets the number format
|
int |
getNumberType()
Gets the type of number displayed in the tick label.
|
int |
getPosition()
Returns the position of the label.
|
java.lang.String |
getScaling()
Retrieves the scaling of this component.
|
void |
setAutoPrecision(java.lang.String precision)
Specifies the precision of this component.
|
void |
setConverter(javax.faces.convert.Converter converter)
Specifies the number converter
|
void |
setNumberFormat(NumberFormat format)
Deprecated.
Use Converter
Sets the number format
|
void |
setNumberType(int type)
Sets the type of number to be displayed in the tick label.
|
void |
setNumberType(java.lang.String type)
Format for numbers that are displayed in the metric label.
|
void |
setPosition(int position)
Specifies the position of the label.
|
void |
setPosition(java.lang.String position)
Specifies the location of the label.
|
void |
setScaling(java.lang.String scaling)
Specifies the scaling of this component.
|
resetStylePropertiesgetGaugeFont, restoreState, setGaugeFontgetBooleanProperty, getFacesBean, getId, getParent, getProperty, getPropertyKey, getSetAttributeIndex, isTransient, isUpdated, processSetAttribute, processSetAttributeAndAdd, registerAttachedObjectKey, saveState, setBooleanProperty, setId, setParent, setProperty, setTransient, setUpdatedpublic static final org.apache.myfaces.trinidad.bean.FacesBean.Type TYPE
public static final org.apache.myfaces.trinidad.bean.PropertyKey NUMBER_FORMAT_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey NUMBER_TYPE_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey CONVERTER_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey SCALING_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey AUTOPRECISION_KEY
public int getPosition()
getPosition in class BaseLabelGaugeAttributes.LP_NONE,
GaugeAttributes.LP_BELOW_GAUGE,
GaugeAttributes.LP_WITH_BOTTOM_LABEL,
GaugeAttributes.LP_INSIDE_GAUGE.
For statusmeter gauges, the following values are also supported:
GaugeAttributes.LP_INSIDE_GAUGE_LEFT,
GaugeAttributes.LP_INSIDE_GAUGE_RIGHT.public void setPosition(int position)
setPosition in class BaseLabelposition - the integer constant that represents where the label is placed. The following values
are supported for all gauge types:
GaugeAttributes.LP_NONE,
GaugeAttributes.LP_BELOW_GAUGE,
GaugeAttributes.LP_WITH_BOTTOM_LABEL,
GaugeAttributes.LP_INSIDE_GAUGE.
For statusmeter gauges, the following values are also supported:
GaugeAttributes.LP_INSIDE_GAUGE_LEFT,
GaugeAttributes.LP_INSIDE_GAUGE_RIGHT.public void setPosition(java.lang.String position)
setPosition in class BaseLabelposition - the String indicating where the labels are placed. The following values are supported for all gauge types: belowGauge, then both labels are displayed below the gauge. However, the bottom label is displayed above the metric label.none, the metric label will not be displayed. @Deprecated public NumberFormat getNumberFormat()
@Deprecated public void setNumberFormat(NumberFormat format)
format - public int getNumberType()
Gauge beginning with
NT_public void setNumberType(int type)
type - Integer representing the type of number intended
for display in this gauge; valid values are constants
in the Gauge class beginning with
NT_public void setNumberType(java.lang.String type)
type - Valid values are: public java.lang.String getScaling()
public void setScaling(java.lang.String scaling)
scaling - the scaling factorpublic java.lang.String getAutoPrecision()
public void setAutoPrecision(java.lang.String precision)
precision - the precisionpublic javax.faces.convert.Converter getConverter()
public void setConverter(javax.faces.convert.Converter converter)
converter - the numberConverterpublic void applyProperties(java.util.HashMap map)
BIComplexAttributeBaseapplyProperties in class BaseTextmap - hashMap that contains property value pairs.protected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
getBeanType in class BaseLabel