public class GraphFont extends BaseComponentXML implements FontAttribute, DataviewFont
| Modifier and Type | Field and Description |
|---|---|
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 |
m_jsfHashMap| Constructor and Description |
|---|
GraphFont(CommonGraph graph,
oracle.dss.graph.pfj.draw.IdentObj identObj) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getNonstyleXML, getStyleXML, getXML, setNonstyleXML, setXML, setXML, setXML, setXML@Concealed protected java.lang.String fontTypeface
@Concealed protected int fontStyle
@Concealed protected int fontSize
@Concealed protected java.awt.Color fontColor
@Concealed protected int graphProportionalFontSize
@Concealed protected CommonGraph m_commonGraph
@Concealed protected PFJ m_pfj
@Concealed protected oracle.dss.graph.pfj.draw.IdentObj m_identObj
@Concealed protected oracle.dss.graph.pfj.draw.IdentObj m_identObj2
@Concealed protected static final java.lang.String a_style
@Concealed protected static final java.lang.String a_graphProportionalFontSize
@Concealed 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.public java.awt.Color getGraphFontColor()
getGraphFontColor in interface DataviewFontpublic void setGraphFontColor(java.awt.Color newColor)
setGraphFontColor in interface DataviewFontnewColor - 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 DataviewFontBaseGraphComponent.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_UNDERLINEpublic void setGraphFontStyle(int style)
setGraphFontStyle in interface DataviewFontstyle - 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_UNDERLINEpublic 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.@Concealed public void setFont(java.awt.Font f)
FontAttributeFont object.
A Font object is an awt object with attributes such as name, style, and absolute size.setFont in interface FontAttributef - 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.@Concealed public java.awt.Font getFont()
FontAttributeFont object.
A Font object is an awt object with attributes such as name, style, and absolute size.getFont in interface FontAttribute@Concealed protected int convertStyleToInt(java.lang.String str)
@Concealed protected java.lang.String getComponentName()
getComponentName in class BaseComponentXML@Concealed protected void setObjectId(oracle.dss.graph.pfj.draw.IdentObj id)
@Concealed
public boolean getStyleXML(boolean allProperties,
oracle.dss.util.xml.ObjectNode node)
getStyleXML in class BaseComponentXML@Concealed public void setNonstyleXML(oracle.dss.util.xml.ObjectNode node)
setNonstyleXML in class BaseComponentXMLpublic void setStyleXML(oracle.dss.util.xml.ObjectNode node,
java.util.HashMap map)
@Concealed public void setStyleXML(oracle.dss.util.xml.ObjectNode node)
setStyleXML in class BaseComponentXML@Concealed protected void resetStyle()