hudson.plugins.plot
Class SeriesFactory

java.lang.Object
  extended by hudson.plugins.plot.SeriesFactory

public class SeriesFactory
extends Object

This class creates a Series class based on the data source

Author:
areese, Alan.Harder@sun.com

Constructor Summary
SeriesFactory()
           
 
Method Summary
static Series createSeries(net.sf.json.JSONObject formData, org.kohsuke.stapler.StaplerRequest req)
          Using file and label and the Stapler request, create a subclass of series that can process the type selected.
static Series[] createSeriesList(Object data, org.kohsuke.stapler.StaplerRequest req)
           
static net.sf.json.JSONArray getArray(Object data)
          Get data as JSONArray (wrap single JSONObject in array if needed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeriesFactory

public SeriesFactory()
Method Detail

createSeries

public static Series createSeries(net.sf.json.JSONObject formData,
                                  org.kohsuke.stapler.StaplerRequest req)
Using file and label and the Stapler request, create a subclass of series that can process the type selected.

Parameters:
formData - JSON data for series

createSeriesList

public static Series[] createSeriesList(Object data,
                                        org.kohsuke.stapler.StaplerRequest req)

getArray

public static net.sf.json.JSONArray getArray(Object data)
Get data as JSONArray (wrap single JSONObject in array if needed).



Copyright © 2004-2011. All Rights Reserved.