|
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.GraphFont
public class GraphFont
Allows you to specify and retrieve font properties such as name, color, style, and size.
Field Summary | |
---|---|
protected static java.lang.String |
a_graphProportionalFontSize
|
protected static java.lang.String |
a_style
|
protected java.awt.Color |
fontColor
|
protected int |
fontSize
|
protected int |
fontStyle
|
protected java.lang.String |
fontTypeface
|
protected int |
graphProportionalFontSize
|
protected CommonGraph |
m_commonGraph
|
protected oracle.dss.graph.pfj.draw.IdentObj |
m_identObj
|
protected oracle.dss.graph.pfj.draw.IdentObj |
m_identObj2
|
protected PFJ |
m_pfj
|
Fields inherited from class oracle.dss.dataView.BaseComponentXML |
---|
m_jsfHashMap |
Constructor Summary | |
---|---|
GraphFont(CommonGraph graph,
oracle.dss.graph.pfj.draw.IdentObj identObj)
|
Method Summary | |
---|---|
protected int |
convertStyleToInt(java.lang.String str)
|
protected java.lang.String |
getComponentName()
|
java.awt.Font |
getFont()
Retrieves a Font object. |
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 |
getStyleXML(boolean allProperties,
oracle.dss.util.xml.ObjectNode node)
|
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. |
protected void |
resetStyle()
|
void |
setFont(java.awt.Font f)
Specifies a Font object. |
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 |
setNonstyleXML(oracle.dss.util.xml.ObjectNode node)
|
protected void |
setObjectId(oracle.dss.graph.pfj.draw.IdentObj id)
|
void |
setStyleXML(oracle.dss.util.xml.ObjectNode node)
|
void |
setStyleXML(oracle.dss.util.xml.ObjectNode node,
java.util.HashMap map)
|
void |
setUnderline(boolean underline)
Specifies whether the text is underlined. |
Methods inherited from class oracle.dss.dataView.BaseComponentXML |
---|
getNonstyleXML, 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 |
Field Detail |
---|
protected java.lang.String fontTypeface
protected int fontStyle
protected int fontSize
protected java.awt.Color fontColor
protected int graphProportionalFontSize
protected CommonGraph m_commonGraph
protected PFJ m_pfj
protected oracle.dss.graph.pfj.draw.IdentObj m_identObj
protected oracle.dss.graph.pfj.draw.IdentObj m_identObj2
protected static final java.lang.String a_style
protected static final java.lang.String a_graphProportionalFontSize
Constructor Detail |
---|
public GraphFont(CommonGraph graph, oracle.dss.graph.pfj.draw.IdentObj identObj)
graph
- The graph that this object belongs to.identObj
- The Perspective for Java object that represents the
identity of this object.
Perspective for Java is a third party package of objects that are used
and manipulated by the BI Beans.Method Detail |
---|
public java.awt.Color getGraphFontColor()
getGraphFontColor
in interface DataviewFont
public void setGraphFontColor(java.awt.Color newColor)
setGraphFontColor
in interface DataviewFont
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. Values less than 1 are ignored.
If size
is greater than 128, then the
property is set to 128.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()
getGraphFontStyle
in interface DataviewFont
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)
setGraphFontStyle
in interface DataviewFont
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)
isItalic
- 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.public void setFont(java.awt.Font f)
FontAttribute
Font
object.
A Font
object is an awt
object with attributes such as name, style, and absolute size.
setFont
in interface FontAttribute
f
- A Font
object that specifies font properties.Font
object that specifies font properties.
The font size in the Font
must be a value from 1 to 128.
If you pass a value smaller than 1 or greater than 128, this method
logs a message with the error handler, and the font remains the
same size as it was before the call.public java.awt.Font getFont()
FontAttribute
Font
object.
A Font
object is an awt
object with attributes such as name, style, and absolute size.
getFont
in interface FontAttribute
protected int convertStyleToInt(java.lang.String str)
protected java.lang.String getComponentName()
getComponentName
in class BaseComponentXML
protected void setObjectId(oracle.dss.graph.pfj.draw.IdentObj id)
public boolean getStyleXML(boolean allProperties, oracle.dss.util.xml.ObjectNode node)
getStyleXML
in class BaseComponentXML
public void setNonstyleXML(oracle.dss.util.xml.ObjectNode node)
setNonstyleXML
in class BaseComponentXML
public void setStyleXML(oracle.dss.util.xml.ObjectNode node, java.util.HashMap map)
public void setStyleXML(oracle.dss.util.xml.ObjectNode node)
setStyleXML
in class BaseComponentXML
protected void resetStyle()
|
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 |