public class SliceLabel extends BaseTextComponent
Modifier and Type | Field and Description |
---|---|
static org.apache.myfaces.trinidad.bean.PropertyKey |
AUTOPRECISION_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
CONVERTER_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 |
NUMBER_FORMAT_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
RENDERED_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
SCALING_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
TEXT_TYPE_KEY |
static org.apache.myfaces.trinidad.bean.FacesBean.Type |
TYPE |
GRAPH_FONT_KEY
ID_KEY, m_parent, TRANSIENT_KEY
Constructor and Description |
---|
SliceLabel() |
Modifier and Type | Method and Description |
---|---|
void |
applyProperties(java.util.HashMap map)
Applications should not 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 Retrieves the number format for data axis
|
java.lang.String |
getScaling()
Retrieves the scaling of this component.
|
int |
getTextType()
Retrieves a text type for this label.
|
boolean |
isRendered()
Indicates whether slice labels appear in the graph.
|
protected void |
resetStyleProperties() |
void |
restoreState(javax.faces.context.FacesContext context, java.lang.Object stateObj) |
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 Specifies the number format for data axis
|
void |
setRendered(boolean rendered)
Specifies whether slice labels appear in the graph.
|
void |
setScaling(java.lang.String scaling)
Specifies the scaling of this component.
|
void |
setTextType(int i)
Specifies a text type of this label.
|
void |
setTextType(java.lang.String i)
Specifies the type of contents to appear in a slice label.
|
getGraphFont, setGraphFont
getBooleanProperty, getFacesBean, getId, getParent, getProperty, getPropertyKey, getSetAttributeIndex, isTransient, isUpdated, processSetAttribute, processSetAttributeAndAdd, registerAttachedObjectKey, saveState, setBooleanProperty, setId, setParent, setProperty, setTransient, setUpdated
protected 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 TEXT_TYPE_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey NUMBER_FORMAT_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey CONVERTER_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey RENDERED_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 getTextType()
BaseGraphComponent.LD_TEXT
, BaseGraphComponent.LD_VALUE
, BaseGraphComponent.LD_PERCENT
, BaseGraphComponent.LD_TEXT_PERCENT
public void setTextType(int i)
i
- A constant that represents a text type of this label.BaseGraphComponent.LD_TEXT
, BaseGraphComponent.LD_VALUE
, BaseGraphComponent.LD_PERCENT
, BaseGraphComponent.LD_TEXT_PERCENT
public void setTextType(java.lang.String i)
i
- A constant that represents a text type of this label.
public boolean isRendered()
true
if it is rendered, false
if it is not rendered.public void setRendered(boolean rendered)
Rendered
property to false
rendered
- true
to display slice labels, false
to hide them.public void applyProperties(java.util.HashMap map)
applyProperties
in class BIComplexAttributeBase
map
-protected void resetStyleProperties()
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object stateObj)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class BIComplexAttributeBase
@Deprecated public NumberFormat getNumberFormat()
@Deprecated public void setNumberFormat(NumberFormat format)
format
- the number formatpublic 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 numberConverterprotected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
getBeanType
in class BIComplexAttributeBase