com.crystaldecisions.sdk.occa.report.definition
Class FontStyle

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.report.definition.FontStyle

public final class FontStyle
extends java.lang.Object

Defines styles that can be applied to a Font, such as bold and italic.

See Also:
Font.setFontStyle(FontStyle)

Field Summary
static int _bold
           
static int _boldItalic
           
static int _italic
           
static int _normal
           
static int _unknown
           
static FontStyle Bold
           
static FontStyle BoldItalic
           
static FontStyle Italic
           
static FontStyle Normal
           
static FontStyle Unknown
           
 
Method Summary
static FontStyle from_int(int value)
          Gets the FontStyle that matches the specified integer value.
static FontStyle from_string(java.lang.String sVal)
          Gets the FontStyle that matches the specified name.
 java.lang.String toString()
          Returns the String value of the FontStyle.
 int value()
          Returns the integer value of the FontStyle.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_normal

public static final int _normal
See Also:
Constant Field Values

_bold

public static final int _bold
See Also:
Constant Field Values

_italic

public static final int _italic
See Also:
Constant Field Values

_boldItalic

public static final int _boldItalic
See Also:
Constant Field Values

_unknown

public static final int _unknown
See Also:
Constant Field Values

Normal

public static final FontStyle Normal

Bold

public static final FontStyle Bold

Italic

public static final FontStyle Italic

BoldItalic

public static final FontStyle BoldItalic

Unknown

public static final FontStyle Unknown
Method Detail

value

public int value()
Returns the integer value of the FontStyle.

Returns:
an int that identifies the font style

from_int

public static FontStyle from_int(int value)
Gets the FontStyle that matches the specified integer value.

Parameters:
value - an int that identifies a font style
Returns:
the constant that matches the specified integer

from_string

public static FontStyle from_string(java.lang.String sVal)
Gets the FontStyle that matches the specified name.

Parameters:
sVal - the name of a font style
Returns:
the constant that matches the specified name

toString

public java.lang.String toString()
Returns the String value of the FontStyle.

Overrides:
toString in class java.lang.Object
Returns:
a String that identifies the font style