sos.reports
Interface TableFormat

All Known Implementing Classes:
DefaultTableFormat, TableFormatAdapter

public interface TableFormat

An object that controls the formatting of report tables. It supplies the attributes for table, tier, and cell elements.

Table formatting may include header rows are bold, tables have a border, and footer cells have font size 12, for example.

Since:
1.0
See Also:
TableFormats, ReportStyleConstants, TableElement

Method Summary
 javax.swing.text.AttributeSet getCellAttributes(CellElement cellElement)
          Returns the attributes to use for the specified cell element.
 javax.swing.text.AttributeSet getTableAttributes(TableElement tableElement)
          Returns the attributes to use for the table element.
 javax.swing.text.AttributeSet getTierAttributes(TierElement tierElement)
          Returns the attributes to use for the specified tier element.
 

Method Detail

getTierAttributes

public javax.swing.text.AttributeSet getTierAttributes(TierElement tierElement)
Returns the attributes to use for the specified tier element.

Parameters:
tierElement - row or column for which the attributes are desired
Returns:
a set of attributes for tierElement
Throws:
java.lang.NullPointerException - if tierElement is null

getCellAttributes

public javax.swing.text.AttributeSet getCellAttributes(CellElement cellElement)
Returns the attributes to use for the specified cell element.

Parameters:
cellElement - cell for which the attributes are desired
Returns:
a set of attributes for cellElement
Throws:
java.lang.NullPointerException - if cellElement is null

getTableAttributes

public javax.swing.text.AttributeSet getTableAttributes(TableElement tableElement)
Returns the attributes to use for the table element.

Parameters:
tableElement - table for which the attributes are desired
Returns:
a set of attributes for tableElement
Throws:
java.lang.NullPointerException - if tableElement is null


Copyright 2003, 2004 Side of Software (SOS). All rights reserved.