com.businessobjects.rebean.wi
Interface Decoration

All Known Subinterfaces:
Cell, FreeCell, Graph, GraphAxisValues, GraphData, GraphTitle, Legend, PageHeaderFooter, ReportBody, ReportCell, SectionContainer, TableCell

public interface Decoration

Decoration interface defines the graphical decorations of an element. All settings in this interface can inherit from an element higher in the hierarchy. For example, a Table has a default decoration for all headers Table.getHeaderDecoration(), which will be applied to all header cells, who's decoration inherits from the default decoration. When setting values to specific cells (using the TableCell interface), these will be overruled.


Method Summary
 Alignment getAlignment()
          Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.
 Attributes getAttributes()
          Returns the non font or alignment settings.
 Alignment getBackgroundAlignment()
          Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.
 Font getFont()
          Returns the font settings.
 void setAlignment(Alignment alignment)
          Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.
 void setAttributes(Attributes attr)
          Copies the non font or alignment settings of another element.
 void setBackgroundAlignment(Alignment alignment)
          Warning: This method is no longer functional from the SAP BusinessObjects 4.0 release onwards.
 void setFont(Font font)
          Copies the font settings of another element.
 

Method Detail

getFont

Font getFont()
Returns the font settings. These can be modified directly, no call to setFont(Font) is needed.

Returns:
the font settings

setFont

void setFont(Font font)
Copies the font settings of another element.

Parameters:
font - the font settings to copy, or when null, all font settings will be inherited from the parent element
Throws:
java.lang.NullPointerException - when font is null and there is no parent

getAlignment

Alignment getAlignment()

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

Returns the alignment settings. These can be modified directly, no call to setAlignment(Alignment) is needed.

Returns:
the alignment settings

setAlignment

void setAlignment(Alignment alignment)

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

Copies the alignment settings of another element.

Parameters:
alignment - the alignment settings to copy, or when null, all alignment settings will be inherited from the parent element
Throws:
java.lang.NullPointerException - when alignment is null and there is no parent

getAttributes

Attributes getAttributes()
Returns the non font or alignment settings. These can be modified directly, no call to setAttributes(Attributes) is needed.

Returns:
The non font or alignment settings.

setAttributes

void setAttributes(Attributes attr)
Copies the non font or alignment settings of another element.

Parameters:
attr - the non font or alignment settings to copy, or when null, all non font or alignment settings will be inherited from the parent element
Throws:
java.lang.NullPointerException - when attr is null and there is no parent

setBackgroundAlignment

void setBackgroundAlignment(Alignment alignment)

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

Copies the background horizontal/vertical alignment setting.

Parameters:
alignment - - the alignment horizontal/vertical settings.
Throws:
java.lang.IllegalArgumentException - when alignment isn't get by getBackgroundAlignment.
Since:
11.5
See Also:
Decoration.getBackgroundAlignment()

getBackgroundAlignment

Alignment getBackgroundAlignment()

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

Returns the background alignment setting.

The default background alignment settings are HAlignmentType.CENTER and VAlignmentType.CENTER if the current report element has not any background image settings.

Returns:
The background alignment.
Since:
11.5