JIDE 3.5.15

com.jidesoft.chart.servlet
Class DefaultHttpChartFactory

java.lang.Object
  extended by com.jidesoft.chart.servlet.DefaultHttpChartFactory
All Implemented Interfaces:
HttpComponentFactory<Chart>

public class DefaultHttpChartFactory
extends Object
implements HttpComponentFactory<Chart>

The base URL causes a chart servlet to be called and the chart servlet delegates control to this class to create a suitable chart object from the URL and its parameters. The base URL might be something like:

http://localhost:8080/Charts/chart?

After that, there follows a series of key-value pairs, where each key is expected to use a particular syntax for the information that it provides. A lot of information needs to be packed into a small number of characters, but it's not as bad as it sounds and it should be possible to start generating charts from the servlet within the space of a few minutes.

The parameters are as follows:

size
The width and height of the chart in pixels. For example, for a chart 600 pixels wide and 400 pixels high, use
size=600x400
axes
A list of semi-colon separated axes and their ranges
xyd
A list of XY points. The x and y points of a pair are separated by a comma and the pairs are separated by a semi-colon. The whole list is enclosed in brackets [].


Constructor Summary
DefaultHttpChartFactory()
          Default Constructor
 
Method Summary
 Chart getInstance(HttpServletRequest request)
          The main factory method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHttpChartFactory

public DefaultHttpChartFactory()
Default Constructor

Method Detail

getInstance

public Chart getInstance(HttpServletRequest request)
The main factory method

Specified by:
getInstance in interface HttpComponentFactory<Chart>
Parameters:
request - the HTTP request
Returns:
an instance of a Component

JIDE 3.5.15