Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.1.0)

E17492-02

oracle.adf.view.faces.bi.component.dataView
Class BaseFont

java.lang.Object
  extended by oracle.adf.view.faces.bi.component.BIComplexAttributeBase
      extended by oracle.adf.view.faces.bi.component.dataView.BaseFont
All Implemented Interfaces:
javax.faces.component.StateHolder
Direct Known Subclasses:
GaugeFont, GraphFont

public abstract class BaseFont
extends BIComplexAttributeBase

Since:
4.0

Field Summary
static org.apache.myfaces.trinidad.bean.PropertyKey BOLD_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey COLOR_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey ITALIC_KEY
           
protected  java.awt.Color m_defaultFontColor
           
protected  int m_defaultFontSize
           
protected  int m_defaultFontStyle
           
protected  java.lang.String m_defaultFontTypeface
           
static org.apache.myfaces.trinidad.bean.PropertyKey NAME_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey SIZE_KEY
           
static org.apache.myfaces.trinidad.bean.FacesBean.Type TYPE
           
static org.apache.myfaces.trinidad.bean.PropertyKey UNDERLINE_KEY
           
 
Fields inherited from class oracle.adf.view.faces.bi.component.BIComplexAttributeBase
ID_KEY, m_parent, TRANSIENT_KEY
 
Constructor Summary
BaseFont()
           
 
Method Summary
 void applyProperties(java.util.HashMap map)
          Applications do not need to call this method.
protected  org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
           
 java.awt.Color getColor()
          Retrieves the font color.
 java.lang.String getName()
          Retrieves the name of the font.
 int getSize()
          Retrieves the font size.
 boolean isBold()
          Indicates whether this font is bold.
 boolean isItalic()
          Indicates whether this font is italic.
 boolean isUnderline()
          Indicates whether the text is underlined with one line.
 void resetStyleProperties()
          Applications do not need to call this method.
 void setBold(boolean bold)
          Specifies whether this fond is bold.
 void setColor(java.awt.Color newColor)
          Specifies the font color.
 void setDefaultValues(java.lang.String fontTypeFace, int fontStyle, int fontSize, java.awt.Color fontColor)
          Application developers do not need to call this method.
 void setItalic(boolean isItalic)
          Specifies whether this font is italic.
 void setName(java.lang.String name)
          Specifies the name of the font.
 void setSize(int size)
          Specifies the font size.
 void setUnderline(boolean underline)
          Specifies whether the text is underlined.
 
Methods inherited from class oracle.adf.view.faces.bi.component.BIComplexAttributeBase
getBooleanProperty, getFacesBean, getId, getParent, getProperty, getPropertyKey, getSetAttributeIndex, isTransient, isUpdated, processSetAttribute, processSetAttributeAndAdd, restoreState, saveState, setBooleanProperty, setId, setParent, setProperty, setTransient, setUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_defaultFontTypeface

protected java.lang.String m_defaultFontTypeface

m_defaultFontStyle

protected int m_defaultFontStyle

m_defaultFontSize

protected int m_defaultFontSize

m_defaultFontColor

protected java.awt.Color m_defaultFontColor

TYPE

public static final org.apache.myfaces.trinidad.bean.FacesBean.Type TYPE

COLOR_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey COLOR_KEY

NAME_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey NAME_KEY

SIZE_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey SIZE_KEY

BOLD_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey BOLD_KEY

ITALIC_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey ITALIC_KEY

UNDERLINE_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey UNDERLINE_KEY
Constructor Detail

BaseFont

public BaseFont()
Method Detail

getColor

public java.awt.Color getColor()
Retrieves the font color.

Returns:
The font color.

setColor

public void setColor(java.awt.Color newColor)
Specifies the font color.

Parameters:
newColor - The font color.

getName

public java.lang.String getName()
Retrieves the name of the font.

Returns:
The name of the font.

setName

public void setName(java.lang.String name)
Specifies the name of the font.

Parameters:
name - The name of the font.

getSize

public int getSize()
Retrieves the font size. The font size is expressed as it is in the awt.Font.

Returns:
The font size in points.

setSize

public void setSize(int size)
Specifies the font size. The font size is the same as in the awt.Font. If you set the FontSizeAbsolute property of the graph to false, then calls to this method do nothing.

Parameters:
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.
See Also:
Graph#setFontSizeAbsolute

setBold

public void setBold(boolean bold)
Specifies whether this fond is bold.

Parameters:
bold - true to make the font bold, false to make it not bold.

isBold

public boolean isBold()
Indicates whether this font is bold.

Returns:
true if the font is bold, false if it is not.

isItalic

public boolean isItalic()
Indicates whether this font is italic.

Returns:
true if the font is italic, false if it is not.

setItalic

public void setItalic(boolean isItalic)
Specifies whether this font is italic.

Parameters:
isItalic - true to make this font italic, false to make this font not italic.

setUnderline

public void setUnderline(boolean underline)
Specifies whether the text is underlined.

Parameters:
underline - true to underline the text with one line, false to remove underlining.

isUnderline

public boolean isUnderline()
Indicates whether the text is underlined with one line.

Returns:
true if the text is underlined, false if it is not.

applyProperties

public void applyProperties(java.util.HashMap map)
Applications do not need to call this method. This is for internal use.

Overrides:
applyProperties in class BIComplexAttributeBase
Parameters:
map - hashMap that contains property value pairs.

resetStyleProperties

public void resetStyleProperties()
Applications do not need to call this method. This is for internal use.


setDefaultValues

public void setDefaultValues(java.lang.String fontTypeFace,
                             int fontStyle,
                             int fontSize,
                             java.awt.Color fontColor)
Application developers do not need to call this method.


getBeanType

protected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
Specified by:
getBeanType in class BIComplexAttributeBase

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 2 (11.1.2.1.0)

E17492-02

Copyright © 1997, 2011, Oracle. All rights reserved.