Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot
Interface PivotDataModel

All Known Implementing Classes:
AbstractPivotDataModel, DefaultPivotDataModel, OlapDataModel, RemoteOlapModel

public interface PivotDataModel

PivotDataModel defines methods for retrieving the data values of a pivoted model. The model's cells have a number of coordinates which are actually TreePaths, each corresponding to a row in the model's row and column headers.


Method Summary
 void addDataModelListener(PivotDataModelListener x)
          Adds a listener that is notified when the data of the model has changed.
 Class getColumnClass(TreePath[] rowPaths, TreePath[] columnPaths)
          Determines the class of the model's cell at the specified row and column paths.
 PivotColumnAdapter getPivotColumnAdapter()
          Retrieves the model's pivot column header.
 PivotRowAdapter getPivotRowAdapter()
          Retrieves the model's pivot row header.
 Object getValueAt(TreePath[] rowPaths, TreePath[] columnPaths)
          Retrieves the value of the data at the specfied row and column paths.
 void removeDataModelListener(PivotDataModelListener x)
          Removes a listener that is notified when the data of the model has changed.
 

Method Detail

addDataModelListener

void addDataModelListener(PivotDataModelListener x)
Adds a listener that is notified when the data of the model has changed.

Parameters:
x - the listener to be added

getColumnClass

Class getColumnClass(TreePath[] rowPaths,
                     TreePath[] columnPaths)
Determines the class of the model's cell at the specified row and column paths.

Parameters:
rowPaths - the cell's row header paths
columnPaths - the cell's column header paths
Returns:
the class for the specified cell

getPivotColumnAdapter

PivotColumnAdapter getPivotColumnAdapter()
Retrieves the model's pivot column header.

Returns:
the column header

getPivotRowAdapter

PivotRowAdapter getPivotRowAdapter()
Retrieves the model's pivot row header.

Returns:
the row header

getValueAt

Object getValueAt(TreePath[] rowPaths,
                  TreePath[] columnPaths)
Retrieves the value of the data at the specfied row and column paths.

Parameters:
rowPaths - the cell's row header paths
columnPaths - the cell's column header paths
Returns:
the value for the specified cell

removeDataModelListener

void removeDataModelListener(PivotDataModelListener x)
Removes a listener that is notified when the data of the model has changed.

Parameters:
x - the listener to be removed

Copyright © 2011 Citra Technologies. All Rights Reserved.