|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.pivot.DefaultPivotStyleModel
public class DefaultPivotStyleModel
DefaultPivotStyleModel is the default PivotStyleModel implementation that
uses a PivotStyle
to modify the table's cells.
Field Summary | |
---|---|
protected PivotStyle |
defaultColumnHeaderStyle
a style that is used as the default style for the column header area |
protected PivotStyle |
defaultDataStyle
a style that is used as the default style for the data area |
protected PivotStyle |
defaultRowHeaderStyle
a style that is used as the default style for the row header area |
Constructor Summary | |
---|---|
DefaultPivotStyleModel()
Constructs a DefaultPivotStyleModel. |
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. |
void |
applyStyle(Component c,
PivotTable table,
int row,
int column,
PivotStyle style,
boolean isSelected)
Applies the style to a component, by using the styles parameters, such as background color, font and font style. |
PivotStyle |
getDefaultColumnHeaderStyle()
Returns the default column header style. |
PivotStyle |
getDefaultDataStyle()
Returns the default data area style. |
PivotStyle |
getDefaultRowHeaderStyle()
Returns the default row header style. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PivotStyle defaultDataStyle
protected PivotStyle defaultColumnHeaderStyle
protected PivotStyle defaultRowHeaderStyle
Constructor Detail |
---|
public DefaultPivotStyleModel()
Method Detail |
---|
public void applyColumnHeaderStyle(Component c, PivotTable table, PivotColumnAdapter adapter, TreePath path, int level, int column)
applyColumnHeaderStyle
in interface PivotStyleModel
c
- the component to modifytable
- the pivot tableadapter
- the column header modelpath
- the path to the displayed value in the modellevel
- the group level that the component appears in the column headercolumn
- the component's columnpublic void applyDataStyle(Component c, PivotTable table, PivotRowAdapter[] rowAdapters, TreePath[] rowPaths, PivotColumnAdapter[] columnAdapters, TreePath[] columnPaths, int row, int column, Object value)
applyDataStyle
in interface PivotStyleModel
c
- the component to modifytable
- the pivot tablerowAdapters
- the row header models from left to right that define the cellrowPaths
- the row paths of the row header models from left to right, that define the cellcolumnAdapters
- the column header models from top to bottom that define the cellcolumnPaths
- the column paths of the column header models from top to bottom, that define the cellrow
- the component's row in the pivot tablecolumn
- the component's column in the pivot tablevalue
- the data valuepublic void applyRowHeaderStyle(Component c, PivotTable table, PivotRowAdapter adapter, TreePath path, int row, int column)
applyRowHeaderStyle
in interface PivotStyleModel
c
- the component to modifytable
- the pivot tableadapter
- the row header modelpath
- the path to the displayed value in the modelrow
- the component's row in the pivot tablecolumn
- the component's column in the pivot tablepublic PivotStyle getDefaultColumnHeaderStyle()
public PivotStyle getDefaultDataStyle()
public PivotStyle getDefaultRowHeaderStyle()
public void applyStyle(Component c, PivotTable table, int row, int column, PivotStyle style, boolean isSelected)
c
- the component the style is applied totable
- the pivot tablerow
- the component's row in the pivot tablecolumn
- the component's column in the pivot tablestyle
- the style to applyisSelected
- true if the selection colors are applied, false otherwise
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |