| 
 | Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1.4.0) E12063-05 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.dss.dataView.BaseComponentXML
oracle.dss.graph.BaseGraphComponent
oracle.dss.graph.BaseText
oracle.dss.graph.BaseLegendText
public class BaseLegendText
Text in the legend of the graph.
LegendArea| Field Summary | |
|---|---|
| static java.lang.String | a_minLength | 
| Fields inherited from class oracle.dss.graph.BaseText | 
|---|
| m_font | 
| Fields inherited from class oracle.dss.dataView.BaseComponentXML | 
|---|
| m_jsfHashMap | 
| Constructor Summary | |
|---|---|
| BaseLegendText(CommonGraph graph) | |
| Method Summary | |
|---|---|
|  int | getHorizontalAlignment()Retrieves the horizontal alignment for the text within the rectangle of the legend text. | 
|  int | getMaxAutoFontSize()Retrieves the maximum font size for legend text that is automatically sized to fit in the legend. | 
|  int | getMinAutoFontSize()Retrieves the minimum font size for legend text that is automatically sized to fit in the legend. | 
|  int | getMinLength()Retrieves the minimum length of text to display before truncation when there is no room to display all the text. | 
|  boolean | getNonstyleXML(boolean allProperties,
               oracle.dss.util.xml.ObjectNode node)Retrieves Non style properties of this component to XML returns whether if the node exists | 
|  boolean | getStyleXML(boolean allProperties,
            oracle.dss.util.xml.ObjectNode node) | 
|  boolean | isTextFittingAutomatic()Indicates whether the legend text is automatically moved and resized to fit in the legend area. | 
|  boolean | isWordWrapEnabled()Indicates whether word wrap is enabled for all of the legend text. | 
| protected  void | resetStyle() | 
|  void | setHorizontalAlignment(int a)Specifies the horizontal alignment of the text within the rectangle of the legend text. | 
|  void | setMaxAutoFontSize(int size)Specifies the maximum font size for legend text that is automatically sized to fit in the legend. | 
|  void | setMinAutoFontSize(int size)Specifies the minimum font size for legend text that is automatically sized to fit in the legend. | 
|  void | setMinLength(int min)Specifies the minimum length of text to display before truncation when there is no room to display all the text. | 
|  void | setNonstyleXML(oracle.dss.util.xml.ObjectNode node) | 
|  void | setStyleXML(oracle.dss.util.xml.ObjectNode node) | 
|  void | setTextFittingAutomatic(boolean yesNo)Specifies whether the legend text is automatically moved and resized to fit in the legend area. | 
|  void | setWordWrapEnabled(boolean yesNo)Specifies whether word wrap is enabled for all of the legend text. | 
|  void | setXML(oracle.dss.util.xml.ObjectNode node) | 
| Methods inherited from class oracle.dss.graph.BaseText | 
|---|
| _getGraphFont, getDataviewFont, getFont, getGraphFont, isFontSizeAbsolute, setFont, setFontSizeAbsolute, truncateText | 
| Methods inherited from class oracle.dss.dataView.BaseComponentXML | 
|---|
| getComponentName, getStyleXML, getXML, setNonstyleXML, setXML, setXML, setXML | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String a_minLength
| Constructor Detail | 
|---|
public BaseLegendText(CommonGraph graph)
graph - The graph that this object belongs to.| Method Detail | 
|---|
public boolean isTextFittingAutomatic()
FontSizeAbsolute attribute 
 is set to false and when automatic graph layout is
 disabled (when the AutoLayout property of the graph
 is AL_NEVER).
true if it is automatically moved and resized,
 false if it is not.BaseText.isFontSizeAbsolute(), 
Graph.setAutoLayout(int)public void setTextFittingAutomatic(boolean yesNo)
TextFittingAutomatic to true instructs
 the graph to resize the text when appropriate.
 
 In order for this method to take effect, the FontSizeAbsolute
 attribute must be set to false, and the
 AutoLayout property of the graph must be set to
 AL_NEVER.
yesNo - true to make the legend text automatically
 move and resize, false prevent resizing.BaseText.isFontSizeAbsolute(), 
BaseText.setFontSizeAbsolute(boolean), 
Graph.setAutoLayout(int)public int getHorizontalAlignment()
swing constant that represents the horizontal
 alignment for this legend text.public void setHorizontalAlignment(int a)
a - A swing constant that represents the horizontal
 alignment of this legend text.public int getMaxAutoFontSize()
FontSizeAbsolute property is set to false and
 TextFittingAutomatic is set to true.
 The AutoLayout property of the graph must also be
 set to AL_NEVER.
BaseText.isFontSizeAbsolute(), 
isTextFittingAutomatic(), 
getMinAutoFontSize(), 
setMaxAutoFontSize(int), 
setMinAutoFontSize(int), 
Graph.getMaxTickLabelAutoFontSize(), 
Graph.getMinTickLabelAutoFontSize(), 
Graph.setMaxTickLabelAutoFontSize(int), 
Graph.setMinTickLabelAutoFontSize(int), 
Graph.setAutoLayout(int)public void setMaxAutoFontSize(int size)
FontSizeAbsolute property is set to false and
 TextFittingAutomatic is set to true.
 The AutoLayout property of the graph must also be
 set to AL_NEVER.
size - The maximum font size for autofit legend text,
             in virtual coordinate units. Values less than 1 are not valid.
             If you pass an invalid value, this method logs a message
             with the error handler and does not change the property value.BaseText.setFontSizeAbsolute(boolean), 
setTextFittingAutomatic(boolean), 
getMaxAutoFontSize(), 
getMinAutoFontSize(), 
setMinAutoFontSize(int), 
Graph.getMaxTickLabelAutoFontSize(), 
Graph.getMinTickLabelAutoFontSize(), 
Graph.setMaxTickLabelAutoFontSize(int), 
Graph.setMinTickLabelAutoFontSize(int), 
Graph.setAutoLayout(int)public int getMinAutoFontSize()
FontSizeAbsolute property is set to false and
 the TextFittingAutomatic property is set to true.
 The AutoLayout property of the graph must also be
 set to AL_NEVER.
BaseText.isFontSizeAbsolute(), 
isTextFittingAutomatic(), 
getMaxAutoFontSize(), 
setMaxAutoFontSize(int), 
setMinAutoFontSize(int), 
Graph.getMaxTickLabelAutoFontSize(), 
Graph.getMinTickLabelAutoFontSize(), 
Graph.setMaxTickLabelAutoFontSize(int), 
Graph.setMinTickLabelAutoFontSize(int), 
Graph.setAutoLayout(int)public void setMinAutoFontSize(int size)
FontSizeAbsolute
 property is set to false and the
 TextFittingAutomatic property is set to true.
 The AutoLayout property of the graph must also be
 set to AL_NEVER.
size - The minimum font size for autofit legend text,
             in virtual coordinate units. Values less than 1 are not valid.
             If you pass an invalid value, this method logs a message
             with the error handler and does not change the property value.BaseText.setFontSizeAbsolute(boolean), 
setTextFittingAutomatic(boolean), 
getMaxAutoFontSize(), 
getMinAutoFontSize(), 
setMaxAutoFontSize(int), 
Graph.getMaxTickLabelAutoFontSize(), 
Graph.getMinTickLabelAutoFontSize(), 
Graph.setMaxTickLabelAutoFontSize(int), 
Graph.setMinTickLabelAutoFontSize(int), 
Graph.setAutoLayout(int)public boolean isWordWrapEnabled()
doAutoLayout
 sets it as needed.
isWordWrapEnabled in interface WordWrapEnabledtrue if it is enabled, false if it is not.Graph.setAutoLayout(int), 
Graph.doAutoLayout(int)public void setWordWrapEnabled(boolean yesNo)
doAutoLayout
 sets it as needed.
setWordWrapEnabled in interface WordWrapEnabledyesNo - true to wrap words, false to
 prohibit wrapping.Graph.setAutoLayout(int), 
Graph.doAutoLayout(int)public void setMinLength(int min)
min - the minimum length of textpublic int getMinLength()
public void setXML(oracle.dss.util.xml.ObjectNode node)
setXML in class BaseComponentXML
public boolean getNonstyleXML(boolean allProperties,
                              oracle.dss.util.xml.ObjectNode node)
BaseComponentXML
getNonstyleXML in class BaseComponentXML
public boolean getStyleXML(boolean allProperties,
                           oracle.dss.util.xml.ObjectNode node)
getStyleXML in class BaseTextpublic void setNonstyleXML(oracle.dss.util.xml.ObjectNode node)
setNonstyleXML in class BaseTextpublic void setStyleXML(oracle.dss.util.xml.ObjectNode node)
setStyleXML in class BaseTextprotected void resetStyle()
resetStyle in class BaseText| 
 | Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components 11g Release 1 (11.1.1.4.0) E12063-05 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||