|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.dss.graph.BaseGraphComponent | +--oracle.dss.graph.BaseText | +--oracle.dss.graph.BaseTitle
The abstract base class for the Graph title components.
Method Summary | |
int |
getHorizontalAlignment() Retrieves the horizontal alignment for the text within the rectangle of the title. |
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. |
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 |
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. |
void |
setVisible(boolean yesNo) Specifies whether the title is visible. |
Methods inherited from class oracle.dss.graph.BaseText |
getDataviewFont, getFont, getGraphFont, isFontSizeAbsolute, setFont, setFontSizeAbsolute |
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.
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.
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()
public java.lang.String getUnParseText()
public void setText(java.lang.String str)
Visible
property of the title is automatically set to true
.
If you use token substitution, pass a key string to this method, not a token string.
str
- The text of this title.TokenSubstitution.getKeyString(java.lang.String)
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 Visible
true
if it is visible, false
if it is invisible.public void setVisible(boolean yesNo)
setVisible
in interface Visible
yesNo
- true
to make it visible, false
to make it invisible.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |