|
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.GraphFont
Allows you to specify and retrieve font properties such as name, color, style, and size.
Method Summary | |
java.awt.Color |
getGraphFontColor() Retrieves the font color. |
int |
getGraphFontSize() Retrieves the font size. |
int |
getGraphFontStyle() Retrieves the font style. |
java.lang.String |
getGraphFontTypeface() Retrieves the name of the font. |
int |
getGraphProportionalFontSize() Retrieves the font size, in proportion to the graph size. |
boolean |
isFontBold() Indicates whether this font is bold. |
boolean |
isFontItalic() Indicates whether this font is italic. |
boolean |
isUnderline() Indicates whether the text is underlined with one line. |
void |
setFontBold(boolean bold) Specifies whether this fond is bold. |
void |
setFontItalic(boolean isItalic) Specifies whether this font is italic. |
void |
setGraphFontColor(java.awt.Color newColor) Specifies the font color. |
void |
setGraphFontSize(int size) Specifies the font size. |
void |
setGraphFontStyle(int style) Specifies the font style. |
void |
setGraphFontTypeface(java.lang.String name) Specifies the name of the font. |
void |
setGraphProportionalFontSize(int size) Specifies the font size, in proportion to the graph size. |
void |
setUnderline(boolean underline) Specifies whether the text is underlined. |
Method Detail |
public java.awt.Color getGraphFontColor()
public void setGraphFontColor(java.awt.Color newColor)
newColor
- The font color.public int getGraphFontSize()
awt.Font
.public int getGraphProportionalFontSize()
FontSizeAbsolute
property of the graph is set to false
.
The graph uses a virtual-coordinate system to keep its components in proportion when the graph size changes. In the virtual-coordinate system, 32000 represents the full height of the graph. A proportional font size of 3200 is 1/10 the height of the graph.
Graph.setFontSizeAbsolute(boolean)
public void setGraphFontSize(int size)
awt.Font
. If you set the FontSizeAbsolute
property of the graph to false
, then calls to this method do nothing.size
- The font size in points. Valid values are from 1 to 128, inclusive. Invalid values are ignored.Graph.setFontSizeAbsolute(boolean)
public void setGraphProportionalFontSize(int size)
FontSizeAbsolute
property of the graph is set to false
.
The graph uses a virtual-coordinate system to keep its components in proportion when the graph size changes. In the virtual-coordinate system, 32000 represents the full height of the graph. A proportional font size of 32000 is 1/10 the height of the graph.
size
- The size of the font, in virtual coordinates.Graph.setFontSizeAbsolute(boolean)
public int getGraphFontStyle()
BaseGraphComponent.FS_BOLD
, BaseGraphComponent.FS_BOLD_ITALIC_UNDERLINE
, BaseGraphComponent.FS_BOLD_UNDERLINE
, BaseGraphComponent.FS_ITALIC
, BaseGraphComponent.FS_ITALIC_BOLD
, BaseGraphComponent.FS_ITALIC_UNDERLINE
, BaseGraphComponent.FS_PLAIN
, BaseGraphComponent.FS_UNDERLINE
public void setGraphFontStyle(int style)
style
- A constant that represents the font style. Valid constants are listed in the See Also section.BaseGraphComponent.FS_BOLD
, BaseGraphComponent.FS_BOLD_ITALIC_UNDERLINE
, BaseGraphComponent.FS_BOLD_UNDERLINE
, BaseGraphComponent.FS_ITALIC
, BaseGraphComponent.FS_ITALIC_BOLD
, BaseGraphComponent.FS_ITALIC_UNDERLINE
, BaseGraphComponent.FS_PLAIN
, BaseGraphComponent.FS_UNDERLINE
public boolean isFontBold()
true
if the font is bold, false
if it is not.public boolean isFontItalic()
true
if the font is italic, false
if it is not.public boolean isUnderline()
true
if the text is underlined, false
if it is not.public void setFontBold(boolean bold)
bold
- true
to make the font bold, false
to make it not bold.public void setFontItalic(boolean isItalic)
italic
- true
to make this font italic, false
to make this font not italic.public void setUnderline(boolean underline)
underline
- true
to underline the text with one line, false
to remove underlining.public java.lang.String getGraphFontTypeface()
public void setGraphFontTypeface(java.lang.String name)
name
- The name of the font.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |