|
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
com.citra.pivot.olap.DefaultOlapStyleModel
public class DefaultOlapStyleModel
DefaultOlapStyleModel is a PivotStyleModel that allows different styles depending on OlapCells.
Field Summary | |
---|---|
protected Map |
dataStyleMap
a map holding olap cells vs styles |
Fields inherited from class com.citra.pivot.DefaultPivotStyleModel |
---|
defaultColumnHeaderStyle, defaultDataStyle, defaultRowHeaderStyle |
Constructor Summary | |
---|---|
DefaultOlapStyleModel()
Constructs a DefaultOlapStyleModel. |
Method Summary | |
---|---|
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 |
clearDataStyles()
Clears any custom data styles that were based on a specific OlapCell. |
PivotStyle |
getDataStyle(OlapCell cell)
Retrieves the style for the given olap cell. |
void |
setDataStyle(OlapCell cell,
PivotStyle style)
Assigns the style to use for the given olap cell. |
Methods inherited from class com.citra.pivot.DefaultPivotStyleModel |
---|
applyColumnHeaderStyle, applyRowHeaderStyle, applyStyle, getDefaultColumnHeaderStyle, getDefaultDataStyle, getDefaultRowHeaderStyle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map dataStyleMap
Constructor Detail |
---|
public DefaultOlapStyleModel()
Method Detail |
---|
public void applyDataStyle(Component c, PivotTable table, PivotRowAdapter[] rowAdapters, TreePath[] rowPaths, PivotColumnAdapter[] columnAdapters, TreePath[] columnPaths, int row, int column, Object value)
applyDataStyle
in interface PivotStyleModel
applyDataStyle
in class DefaultPivotStyleModel
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 clearDataStyles()
public PivotStyle getDataStyle(OlapCell cell)
cell
- the olap cell whose style is returned
public void setDataStyle(OlapCell cell, PivotStyle style)
cell
- the olap cell whose style is assignedstyle
- the cell's style to assign
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |