com.businessobjects.rebean.wi
Interface Font


public interface Font

The Font interface defines font settings. Note that whenever changing one of these values, none of the other values will be inherited from the parent. For example, after changing the font size from 12 to 13, changing the font name of the parent element has no longer any affect on this font name. This can be undone by calling Decoration.setFont(null).

See Also:
Decoration

Method Summary
 java.lang.String getName()
          Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.
 int getSize()
          Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.
 int getStyle()
          Returns the style of the font.
 void setName(java.lang.String fontName)
          Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.
 void setSize(int size)
          Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.
 void setStyle(int style)
          Changes the font style.
 

Method Detail

getName

java.lang.String getName()

Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.

Returns the font name.

Returns:
the font name

setName

void setName(java.lang.String fontName)

Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.

Changes the font name. This has to be one of the names as returned by ReportEngine.getInstalledFontNames().

Parameters:
fontName - the new font name, or null to inherit the font name from the parent element
Throws:
java.lang.NullPointerException - when fontName is null and there is no parent
java.lang.IllegalArgumentException - when fontName is not in the font names as returned by ReportEngine.getInstalledFontNames()

getSize

int getSize()

Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.

Returns the font size, in points.

Returns:
the font size

setSize

void setSize(int size)

Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.

Changes the font size.

Parameters:
size - the new size, in points, or when size < 0, the size will be inherited from the parent element
Throws:
java.lang.IllegalArgumentException - when size < 0 and there is no parent

getStyle

int getStyle()
Returns the style of the font. This is a bitwise-OR combination of the values defined in StyleType.

Returns:
the font style

setStyle

void setStyle(int style)
Changes the font style. All bitflags defined in StyleType are checked; any other bits are ignored.

Parameters:
style - the new style