org.openi.xmla
Class DatasetAdapter
java.lang.Object
org.openi.xmla.DatasetAdapter
public class DatasetAdapter
- extends java.lang.Object
Takes an olap model, adapts it to a jfreechart dataset
|
Method Summary |
org.jfree.data.category.DefaultCategoryDataset |
buildCategoryDataset(com.tonbeller.jpivot.olap.model.OlapModel olapModel)
|
org.jfree.data.xy.XYDataset |
buildXYDataset(com.tonbeller.jpivot.olap.model.OlapModel olapModel)
Very experimental, notice that the time dimension needs to be on the rows,
and there can be no other dimensions on rows. |
java.text.NumberFormat |
getNumberFormatter()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatasetAdapter
public DatasetAdapter(java.util.Locale locale)
- Parameters:
locale -
buildCategoryDataset
public org.jfree.data.category.DefaultCategoryDataset buildCategoryDataset(com.tonbeller.jpivot.olap.model.OlapModel olapModel)
throws com.tonbeller.jpivot.olap.model.OlapException
- Parameters:
dataset -
- Returns:
-
- Throws:
com.tonbeller.jpivot.olap.model.OlapException
buildXYDataset
public org.jfree.data.xy.XYDataset buildXYDataset(com.tonbeller.jpivot.olap.model.OlapModel olapModel)
throws com.tonbeller.jpivot.olap.model.OlapException
- Very experimental, notice that the time dimension needs to be on the rows,
and there can be no other dimensions on rows.
Each dimension on the column will have it's own series, added to the TimeSeriesCollection
- Throws:
com.tonbeller.jpivot.olap.model.OlapException
getNumberFormatter
public java.text.NumberFormat getNumberFormatter()