it.eng.spagobi.engines.chart.bo.charttypes.utils
Class MyCategoryUrlGenerator

java.lang.Object
  extended by org.jfree.chart.urls.StandardCategoryURLGenerator
      extended by it.eng.spagobi.engines.chart.bo.charttypes.utils.MyCategoryUrlGenerator
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.jfree.chart.urls.CategoryURLGenerator

public class MyCategoryUrlGenerator
extends org.jfree.chart.urls.StandardCategoryURLGenerator

Extends StandardCategoryURLGenerator: the purpose of this class is to add a postfix in the case of document-composition and to substitute in the URL serie anc category parameter, addedd by JFreeCharts function, with label chosen by the user

See Also:
Serialized Form

Constructor Summary
MyCategoryUrlGenerator()
          Instantiates a new my category url generator.
MyCategoryUrlGenerator(java.lang.String prefix)
          Instantiates a new my category url generator.
MyCategoryUrlGenerator(java.lang.String prefix, java.lang.String seriesParameterName, java.lang.String categoryParameterName)
          Instantiates a new my category url generator.
 
Method Summary
 java.lang.String generateURL(org.jfree.data.category.CategoryDataset dataset, int series, int category)
           
 java.lang.String getCategoryUrlLabel()
          Gets the category url label.
 java.lang.String getSerieUrlLabel()
          Gets the serie url label.
 boolean isDocument_composition()
          Checks if is document_composition.
 void setCategoryUrlLabel(java.lang.String categoryUrlLabel)
          Sets the category url label.
 void setDocument_composition(boolean document_composition)
          Sets the document_composition.
 void setSerieUrlLabel(java.lang.String serieUrlLabel)
          Sets the serie url label.
 
Methods inherited from class org.jfree.chart.urls.StandardCategoryURLGenerator
clone, equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyCategoryUrlGenerator

public MyCategoryUrlGenerator()
Instantiates a new my category url generator.


MyCategoryUrlGenerator

public MyCategoryUrlGenerator(java.lang.String prefix,
                              java.lang.String seriesParameterName,
                              java.lang.String categoryParameterName)
Instantiates a new my category url generator.

Parameters:
prefix - the prefix
seriesParameterName - the series parameter name
categoryParameterName - the category parameter name

MyCategoryUrlGenerator

public MyCategoryUrlGenerator(java.lang.String prefix)
Instantiates a new my category url generator.

Parameters:
prefix - the prefix
Method Detail

generateURL

public java.lang.String generateURL(org.jfree.data.category.CategoryDataset dataset,
                                    int series,
                                    int category)
Specified by:
generateURL in interface org.jfree.chart.urls.CategoryURLGenerator
Overrides:
generateURL in class org.jfree.chart.urls.StandardCategoryURLGenerator

getSerieUrlLabel

public java.lang.String getSerieUrlLabel()
Gets the serie url label.

Returns:
the serie url label

setSerieUrlLabel

public void setSerieUrlLabel(java.lang.String serieUrlLabel)
Sets the serie url label.

Parameters:
serieUrlLabel - the new serie url label

getCategoryUrlLabel

public java.lang.String getCategoryUrlLabel()
Gets the category url label.

Returns:
the category url label

setCategoryUrlLabel

public void setCategoryUrlLabel(java.lang.String categoryUrlLabel)
Sets the category url label.

Parameters:
categoryUrlLabel - the new category url label

isDocument_composition

public boolean isDocument_composition()
Checks if is document_composition.

Returns:
true, if is document_composition

setDocument_composition

public void setDocument_composition(boolean document_composition)
Sets the document_composition.

Parameters:
document_composition - the new document_composition