|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
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.BaseTitle
public abstract class BaseTitle
The abstract base class for the Graph title components.
Field Summary | |
---|---|
protected java.lang.String |
m_text
|
protected java.util.ResourceBundle |
rBundle
|
protected java.lang.String |
text
|
protected boolean |
visible
|
Fields inherited from class oracle.dss.graph.BaseText |
---|
m_font |
Fields inherited from class oracle.dss.dataView.BaseComponentXML |
---|
m_jsfHashMap |
Constructor Summary | |
---|---|
BaseTitle(CommonGraph graph)
|
Method Summary | |
---|---|
protected int |
convertTextRotationToInt(java.lang.String str)
|
protected java.lang.String |
convertTextRotationToString(int rotation)
|
int |
getHorizontalAlignment()
Retrieves the horizontal alignment for the text within the rectangle of the title. |
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)
|
java.lang.String |
getText()
Retrieves the text for the title. |
int |
getTextRotation()
Retrieves the angle of rotation for the text within the rectangle of the title. |
java.lang.String |
getUnParseText()
Retrieves the unparsed text for the title. |
boolean |
isVisible()
Indicates whether the title is visible. |
void |
resetStyle()
|
void |
resetToDefault()
|
boolean |
selectObject(int series,
int group)
Selects the title in the graph. |
void |
setHorizontalAlignment(int a)
Specifies the horizontal alignment of the text within the rectangle of the title. |
void |
setNonstyleXML(oracle.dss.util.xml.ObjectNode node)
|
void |
setStyleXML(oracle.dss.util.xml.ObjectNode node)
|
void |
setText(java.lang.String str)
Specifies the text for the title. |
void |
setTextRotation(int rotate)
Specifies the angle of rotation for the text within the rectangle of the title. |
protected abstract void |
setTitleString(java.lang.String text)
|
void |
setUnParseText(java.lang.String str)
|
void |
setVisible(boolean yesNo)
Specifies whether the title is visible. |
void |
updateResourceBundle()
|
Methods inherited from class oracle.dss.graph.BaseText |
---|
_getGraphFont, getDataviewFont, getFont, getGraphFont, isFontSizeAbsolute, setFont, setFontSizeAbsolute |
Methods inherited from class oracle.dss.dataView.BaseComponentXML |
---|
getComponentName, getStyleXML, getXML, setNonstyleXML, setXML, setXML, setXML, setXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.dss.dataView.FontAttribute |
---|
getFont, setFont |
Field Detail |
---|
protected boolean visible
protected java.lang.String text
protected java.lang.String m_text
protected java.util.ResourceBundle rBundle
Constructor Detail |
---|
public BaseTitle(CommonGraph graph)
graph
- The graph that the title belongs to.Method Detail |
---|
public boolean selectObject(int series, int group)
selectObject
in class BaseGraphComponent
series
- Any integer.group
- Any integer.
true
if successful, false
if not.public int getHorizontalAlignment()
SwingConstants.LEFT
,
SwingConstants.CENTER
, and SwingConstants.RIGHT
.
When the text has been rotated to a vertical position, the horizontal
alignment properties appear to move the text up and down, rather than left
and right.
Automatic layout and doAutoLayout
change the size of the
rectangles for the GraphTitle
, GraphSubtitle
,
and GraphFootnote
so that they are just big enough for the
text.
Automatic layout and doAutoLayout
then align the titles
with the graph, based on the value of this property.
getHorizontalAlignment
in interface HorizontalAlignment
swing
constant that represents the horozontal alignment
for the text of this title.public void setHorizontalAlignment(int a)
This method has no effect on axis titles in a 3-D graph.
Automatic layout and doAutoLayout
change the size of the
rectangles for the GraphTitle
, GraphSubtitle
,
and GraphFootnote
so that they are just big enough for the
text.
Automatic layout and doAutoLayout
then align the titles
with the graph, based on the value of this property.
setHorizontalAlignment
in interface HorizontalAlignment
a
- A Swing
constant that represents the horizontal
alignment for the text of the title.
Valid constants are SwingConstants.LEFT
,
SwingConstants.CENTER
, and
SwingConstants.RIGHT
.public java.lang.String getText()
getText
in interface Titles
public java.lang.String getUnParseText()
getUnParseText
in interface Titles
TokenSubstitution
public void setText(java.lang.String str)
If you use token substitution, pass a key string to this method, not a token string.
setText
in interface Titles
str
- The text of this title.BaseTokenSubstitution.getKeyString(java.lang.String)
public void setUnParseText(java.lang.String str)
str
- The unparsed text for the title.protected abstract void setTitleString(java.lang.String text)
public void resetToDefault()
public void resetStyle()
resetStyle
in class BaseText
public int getTextRotation()
public void setTextRotation(int rotate)
rotate
- A constant that represents the angle of rotation of the
text within the rectangle of the title.
When you pass an invalid value, the graph does not set the
TextRotation
attibute. It logs a message with the
error handler.public boolean isVisible()
isVisible
in interface Titles
isVisible
in interface Visible
true
if it is visible, false
if it is
invisible.public void setVisible(boolean yesNo)
setVisible
in interface Titles
setVisible
in interface Visible
yesNo
- true
to make it visible, false
to make it invisible.public void updateResourceBundle()
protected java.lang.String convertTextRotationToString(int rotation)
protected int convertTextRotationToInt(java.lang.String str)
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 BaseText
public void setNonstyleXML(oracle.dss.util.xml.ObjectNode node)
setNonstyleXML
in class BaseText
public void setStyleXML(oracle.dss.util.xml.ObjectNode node)
setStyleXML
in class BaseText
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |