Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot
Interface PivotStyleModel

All Known Implementing Classes:
DefaultOlapStyleModel, DefaultPivotStyleModel

public interface PivotStyleModel

PivotStyleModel visually modifies a component in the row, header or data area of a pivot table. The modification depends on the model's implementation. There are three distinct methods defined, each referring to the three areas of the pivot table (row, column and data areas).


Method Summary
 void applyColumnHeaderStyle(Component c, PivotTable table, PivotColumnAdapter adapter, TreePath path, int level, int column)
          Visually modifies a given component, that appears in the column header of a pivot table.
 void applyDataStyle(Component c, PivotTable table, PivotRowAdapter[] rowAdapters, TreePath[] rowPaths, PivotColumnAdapter[] columnAdapters, TreePath[] columnPaths, int row, int column, Object value)
          Visually modifies a given component, that appears in the data area of a pivot table.
 void applyRowHeaderStyle(Component c, PivotTable table, PivotRowAdapter adapter, TreePath path, int row, int column)
          Visually modifies a given component, that appears in the row header of a pivot table.
 

Method Detail

applyColumnHeaderStyle

void applyColumnHeaderStyle(Component c,
                            PivotTable table,
                            PivotColumnAdapter adapter,
                            TreePath path,
                            int level,
                            int column)
Visually modifies a given component, that appears in the column header of a pivot table.

Parameters:
c - the component to modify
table - the pivot table
adapter - the column header model
path - the path to the displayed value in the model
level - the group level that the component appears in the column header
column - the component's column

applyDataStyle

void applyDataStyle(Component c,
                    PivotTable table,
                    PivotRowAdapter[] rowAdapters,
                    TreePath[] rowPaths,
                    PivotColumnAdapter[] columnAdapters,
                    TreePath[] columnPaths,
                    int row,
                    int column,
                    Object value)
Visually modifies a given component, that appears in the data area of a pivot table.

Parameters:
c - the component to modify
table - the pivot table
rowAdapters - the row header models from left to right that define the cell
rowPaths - the row paths of the row header models from left to right, that define the cell
columnAdapters - the column header models from top to bottom that define the cell
columnPaths - the column paths of the column header models from top to bottom, that define the cell
row - the component's row in the pivot table
column - the component's column in the pivot table
value - the data value

applyRowHeaderStyle

void applyRowHeaderStyle(Component c,
                         PivotTable table,
                         PivotRowAdapter adapter,
                         TreePath path,
                         int row,
                         int column)
Visually modifies a given component, that appears in the row header of a pivot table.

Parameters:
c - the component to modify
table - the pivot table
adapter - the row header model
path - the path to the displayed value in the model
row - the component's row in the pivot table
column - the component's column in the pivot table

Copyright © 2011 Citra Technologies. All Rights Reserved.