com.endeca.navigation.charting
Class CordaChartBuilder

java.lang.Object
  extended by com.endeca.navigation.charting.CordaChartBuilder

public class CordaChartBuilder
extends Object

A helper class to build Corda PopChart charts from Endeca data. It builds the Corda PCXML string that can be used to create the chart.


Constructor Summary
CordaChartBuilder(String graphName, Grid grid)
          Constructor.
 
Method Summary
 String getPCXML()
          Returns the PCXML for the chart.
 void setDrilldown(Drilldown drilldown, HttpServletRequest request)
          Enables drilldown for this chart.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CordaChartBuilder

public CordaChartBuilder(String graphName,
                         Grid grid)
Constructor.

Parameters:
graphName - The name of the graph object. (Usually this will be "graph".)
grid - The data to display. The grid may have either one axis (for a standard "2-D" chart) or 2 axes (for a "3-D" cross-tab chart).
Method Detail

setDrilldown

public void setDrilldown(Drilldown drilldown,
                         HttpServletRequest request)
Enables drilldown for this chart.

Parameters:
drilldown - The Drilldown object which will return the URL to use when a value and/or label are clicked on.
request - The current HTTP request, for use it building the new URL.

getPCXML

public String getPCXML()
Returns the PCXML for the chart.



© 2008 Endeca Technologies, Inc.
Endeca Confidential