org.intermine.web.logic.widget
Interface GraphCategoryURLGenerator

All Superinterfaces:
org.jfree.chart.urls.CategoryURLGenerator

public interface GraphCategoryURLGenerator
extends org.jfree.chart.urls.CategoryURLGenerator

Methods used to construct the links used on the graph widgets


Method Summary
 PathQuery generatePathQuery(ObjectStore os, InterMineBag bag, java.lang.String category, java.lang.String series)
          generates the path query
 java.lang.String generateURL(org.jfree.data.category.CategoryDataset dataset, int series, int category)
          builds the url used by the graph widgets.
 

Method Detail

generateURL

java.lang.String generateURL(org.jfree.data.category.CategoryDataset dataset,
                             int series,
                             int category)
builds the url used by the graph widgets. Simply concatenates the variables to create a URL.

Specified by:
generateURL in interface org.jfree.chart.urls.CategoryURLGenerator
Parameters:
dataset - dataset represented by the entire graph
category - specific category (eg employee type: manager, etc)
series - specific series (eg part-time, full-time)
Returns:
url that sends the user to the results page containing data represented by the bar on the graph they clicked on

generatePathQuery

PathQuery generatePathQuery(ObjectStore os,
                            InterMineBag bag,
                            java.lang.String category,
                            java.lang.String series)
generates the path query

Parameters:
os - object store
bag - bag that this widget is displaying
series - key to constrain the query
category - category to constrain the query
Returns:
PathQuery