JRubik v0.6

es.aeat.eett.plugins.chart
Class ChartComponent.jpivotPieURLGenerator

java.lang.Object
  extended byorg.jfree.chart.urls.StandardPieURLGenerator
      extended byes.aeat.eett.plugins.chart.ChartComponent.jpivotPieURLGenerator
All Implemented Interfaces:
org.jfree.chart.urls.PieURLGenerator, java.io.Serializable
Enclosing class:
ChartComponent

public class ChartComponent.jpivotPieURLGenerator
extends org.jfree.chart.urls.StandardPieURLGenerator

A URLGenerator class to generate pie urls that work with jpivot

Author:
ati
See Also:
Serialized Form

Field Summary
private  java.util.List cells
           
private  org.jfree.util.TableOrder order
           
private  java.lang.String prefix
          Prefix to the URL
private  int rowCount
           
 
Fields inherited from class org.jfree.chart.urls.StandardPieURLGenerator
 
Constructor Summary
(package private) ChartComponent.jpivotPieURLGenerator()
           
(package private) ChartComponent.jpivotPieURLGenerator(java.lang.String prefix)
           
(package private) ChartComponent.jpivotPieURLGenerator(org.jfree.util.TableOrder order, org.jfree.data.category.DefaultCategoryDataset dataset)
           
 
Method Summary
 java.lang.String generateURL(org.jfree.data.general.PieDataset data, java.lang.Comparable key, int pieIndex)
          Implementation of generateURL that integrates with jpivot/wcf framework.
 
Methods inherited from class org.jfree.chart.urls.StandardPieURLGenerator
equals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

private java.lang.String prefix
Prefix to the URL


cells

private java.util.List cells

rowCount

private int rowCount

order

private org.jfree.util.TableOrder order
Constructor Detail

ChartComponent.jpivotPieURLGenerator

ChartComponent.jpivotPieURLGenerator()

ChartComponent.jpivotPieURLGenerator

ChartComponent.jpivotPieURLGenerator(java.lang.String prefix)

ChartComponent.jpivotPieURLGenerator

ChartComponent.jpivotPieURLGenerator(org.jfree.util.TableOrder order,
                                     org.jfree.data.category.DefaultCategoryDataset dataset)
Method Detail

generateURL

public java.lang.String generateURL(org.jfree.data.general.PieDataset data,
                                    java.lang.Comparable key,
                                    int pieIndex)
Implementation of generateURL that integrates with jpivot/wcf framework. A request handler is added for each cell/item. No test is done to see if a cell is drillable, since the url has to added (I think, like an all or nothing ?) Generates a URL for a particular item within a series.

Parameters:
data - the dataset.
key - the data item key.
pieIndex - the index of the pie containing key (zero-based).
Returns:
the generated URL

JRubik v0.6

JRubik v0.6