Skip navigation links
oracle.adf.view.faces.bi.component.graph
Class LegendText
java.lang.Object
oracle.adf.view.faces.bi.component.BIComplexAttributeBase
oracle.adf.view.faces.bi.component.graph.BaseTextComponent
oracle.adf.view.faces.bi.component.graph.LegendText
- All Implemented Interfaces:
- javax.faces.component.StateHolder
-
public class LegendText
- extends BaseTextComponent
Defines properties for the legend text for a graph.
- Since:
- 11.0
Method Summary |
void |
applyProperties(java.util.HashMap map)
Applications do not need to call this method. |
protected org.apache.myfaces.trinidad.bean.FacesBean.Type |
getBeanType()
|
int |
getHorizontalAlignment()
Retrieves the horizontal alignment for the text within the rectangle of the legend text. |
int |
getMinLength()
Retrieves the minimum length of text to display before truncation when there is no room to display all the text. |
protected void |
resetStyleProperties()
|
void |
restoreState(javax.faces.context.FacesContext context, java.lang.Object stateObj)
|
void |
setHorizontalAlignment(int a)
Specifies the horizontal alignment of the text within the rectangle of the legend text. |
void |
setHorizontalAlignment(java.lang.String align)
Specifies the horizontal positioning of the text. |
void |
setMinLength(int min)
Specifies the minimum length of text to display before truncation when there is no room to display all the text. |
Methods inherited from class oracle.adf.view.faces.bi.component.BIComplexAttributeBase |
getBooleanProperty, getFacesBean, getId, getParent, getProperty, getPropertyKey, getSetAttributeIndex, isTransient, isUpdated, processSetAttribute, processSetAttributeAndAdd, saveState, setBooleanProperty, setId, setParent, setProperty, setTransient, setUpdated |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_defaultHorizontalAlignment
protected int m_defaultHorizontalAlignment
m_defaultFontTypeface
protected java.lang.String m_defaultFontTypeface
m_defaultFontStyle
protected int m_defaultFontStyle
m_defaultFontSize
protected int m_defaultFontSize
m_defaultFontColor
protected java.awt.Color m_defaultFontColor
TYPE
public static final org.apache.myfaces.trinidad.bean.FacesBean.Type TYPE
HORZ_ALIGN_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey HORZ_ALIGN_KEY
MIN_LENGTH_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey MIN_LENGTH_KEY
LegendText
public LegendText()
getHorizontalAlignment
public int getHorizontalAlignment()
- Retrieves the horizontal alignment for the text within the rectangle of the legend text. The constants are LEFT, CENTER and RIGHT.
-
- Returns:
- A
swing
constant that represents the horizontal alignment for this legend text.
setHorizontalAlignment
public void setHorizontalAlignment(int a)
- Specifies the horizontal alignment of the text within the rectangle of the legend text. The constants are LEFT, CENTER and RIGHT.
-
- Parameters:
a
- A swing
constant that represents the horizontal alignment of this legend text.
setHorizontalAlignment
public void setHorizontalAlignment(java.lang.String align)
- Specifies the horizontal positioning of the text.
-
- Parameters:
align
- Valid values are:
- CENTER
- LEADING
- LEFT (Default)
- RIGHT
setMinLength
public void setMinLength(int min)
- Specifies the minimum length of text to display before truncation when there is no room to display all the text.
-
- Parameters:
min
- the minimum length of text
getMinLength
public int getMinLength()
- Retrieves the minimum length of text to display before truncation when there is no room to display all the text.
-
- Returns:
- the minimum length of text
applyProperties
public void applyProperties(java.util.HashMap map)
- Applications do not need to call this method. This is for internal use.
-
- Overrides:
applyProperties
in class BIComplexAttributeBase
-
- Parameters:
map
- hashMap that contains property value pairs.
resetStyleProperties
protected void resetStyleProperties()
restoreState
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object stateObj)
-
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
- Overrides:
restoreState
in class BIComplexAttributeBase
getBeanType
protected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
-
- Specified by:
getBeanType
in class BIComplexAttributeBase
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.